FileDocCategorySizeDatePackage
PersonLocationTyp.javaAPI DocExample5551Fri Feb 23 14:19:22 GMT 2001None

PersonLocationTyp

public class PersonLocationTyp extends Object implements oracle.sql.CustomDatumFactory, oracle.sql.CustomDatum

Fields Summary
public static final String
_SQL_NAME
public static final int
_SQL_TYPECODE
_Ctx
_ctx
oracle.jpub.runtime.MutableStruct
_struct
static int[]
_sqlType
static oracle.sql.CustomDatumFactory[]
_factory
static final PersonLocationTyp
_PersonLocationTypFactory
Constructors Summary
public PersonLocationTyp()

    _struct = new MutableStruct(new Object[4], _sqlType, _factory);
    try
    {
      _ctx = new _Ctx(DefaultContext.getDefaultContext());
    }
    catch (Exception e)
    {
      _ctx = null;
    }
  
public PersonLocationTyp(sqlj.runtime.ConnectionContext c)

    _struct = new MutableStruct(new Object[4], _sqlType, _factory);
    _ctx = new _Ctx(c == null ? DefaultContext.getDefaultContext()
                              : c);
  
public PersonLocationTyp(Connection c)

    _struct = new MutableStruct(new Object[4], _sqlType, _factory);
    _ctx = new _Ctx(c);
  
Methods Summary
public oracle.sql.CustomDatumcreate(oracle.sql.Datum d, int sqlType)

    if (d == null) return null;
    PersonLocationTyp o = new PersonLocationTyp();
    o._struct = new MutableStruct((STRUCT) d, _sqlType, _factory);
    o._ctx = new _Ctx(((STRUCT) d).getConnection());
    return o;
  
public java.sql.TimestampgetEndDate()

 return (java.sql.Timestamp) _struct.getAttribute(3); 
public static oracle.sql.CustomDatumFactorygetFactory()

     
  
    return _PersonLocationTypFactory;
  
public java.math.BigDecimalgetLocationId()

 return (java.math.BigDecimal) _struct.getAttribute(1); 
public java.math.BigDecimalgetPersonId()

 return (java.math.BigDecimal) _struct.getAttribute(0); 
public java.sql.TimestampgetStartDate()

 return (java.sql.Timestamp) _struct.getAttribute(2); 
public voidsetEndDate(java.sql.Timestamp endDate)

 _struct.setAttribute(3, endDate); 
public voidsetLocationId(java.math.BigDecimal locationId)

 _struct.setAttribute(1, locationId); 
public voidsetPersonId(java.math.BigDecimal personId)

 _struct.setAttribute(0, personId); 
public voidsetStartDate(java.sql.Timestamp startDate)

 _struct.setAttribute(2, startDate); 
public oracle.sql.DatumtoDatum(oracle.jdbc.driver.OracleConnection c)

    _ctx = new _Ctx(c);
    return _struct.toDatum(c, _SQL_NAME);