FileDocCategorySizeDatePackage
PersonIdentifierTyp.javaAPI DocExample4951Fri Feb 23 14:19:12 GMT 2001None

PersonIdentifierTyp

public class PersonIdentifierTyp 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 PersonIdentifierTyp
_PersonIdentifierTypFactory
Constructors Summary
public PersonIdentifierTyp()

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

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

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

    if (d == null) return null;
    PersonIdentifierTyp o = new PersonIdentifierTyp();
    o._struct = new MutableStruct((STRUCT) d, _sqlType, _factory);
    o._ctx = new _Ctx(((STRUCT) d).getConnection());
    return o;
  
public static oracle.sql.CustomDatumFactorygetFactory()

     
  
    return _PersonIdentifierTypFactory;
  
public java.lang.StringgetId()

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

 return (String) _struct.getAttribute(1); 
public voidsetId(java.lang.String id)

 _struct.setAttribute(0, id); 
public voidsetIdType(java.lang.String idType)

 _struct.setAttribute(1, idType); 
public oracle.sql.DatumtoDatum(oracle.jdbc.driver.OracleConnection c)

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