FileDocCategorySizeDatePackage
PersonIdentifierTypeTyp.javaAPI DocExample5295Fri Feb 23 14:19:08 GMT 2001None

PersonIdentifierTypeTyp

public class PersonIdentifierTypeTyp 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 PersonIdentifierTypeTyp
_PersonIdentifierTypeTypFactory
Constructors Summary
public PersonIdentifierTypeTyp()

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

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

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

    if (d == null) return null;
    PersonIdentifierTypeTyp o = new PersonIdentifierTypeTyp();
    o._struct = new MutableStruct((STRUCT) d, _sqlType, _factory);
    o._ctx = new _Ctx(((STRUCT) d).getConnection());
    return o;
  
public java.lang.StringgetCode()

 return (String) _struct.getAttribute(0); 
public java.lang.StringgetDescription()

 return (String) _struct.getAttribute(1); 
public static oracle.sql.CustomDatumFactorygetFactory()

     
  
    return _PersonIdentifierTypeTypFactory;
  
public java.sql.TimestampgetInactiveDate()

 return (java.sql.Timestamp) _struct.getAttribute(2); 
public voidsetCode(java.lang.String code)

 _struct.setAttribute(0, code); 
public voidsetDescription(java.lang.String description)

 _struct.setAttribute(1, description); 
public voidsetInactiveDate(java.sql.Timestamp inactiveDate)

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

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