FileDocCategorySizeDatePackage
Location.javaAPI DocExample686Fri Feb 23 08:12:42 GMT 2001None

Location

public class Location extends JLocation

Fields Summary
private Connection
conn
Constructors Summary
public Location()


    
  super();
 
public Location(Connection conn)

 
  super();
  setConnection(conn);
 
Methods Summary
public java.math.BigDecimalgetId()

  BigDecimal id  = null;
  if (conn!=null) {
   Location thisLocation = this;
   CallableStatement cstmt = 
    conn.prepareCall("{ ? = call " + getSQLTypeName() + ".GET_ID( ) }");
   cstmt.registerOutParameter(1, Types.NUMERIC);
   cstmt.execute();
   id = cstmt.getBigDecimal(1);
  }
  return id;
 
public voidsetConnection(java.sql.Connection conn)

  this.conn = conn;