wt.fc
Class IdOidObject

java.lang.Object
  extended bywt.fc.AbstractDatastoreStruct
      extended bywt.fc.IdOidObject
All Implemented Interfaces:
DatastoreElement, DatastoreStruct, DatastoreType, NetFactor, ObjectMappable, Serializable

public class IdOidObject
extends AbstractDatastoreStruct
implements DatastoreStruct

This class represents a Datastore struct for an ID and ObjectIdentifier pair.

Use the newIdOidObject static factory method(s), not the IdOidObject constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  long id
           
private  OidObject oid
           
private static String RESOURCE
           
 
Fields inherited from interface wt.fc.DatastoreType
VALUES
 
Constructor Summary
IdOidObject()
           
 
Method Summary
 String getConceptualClassname()
          Deprecated.  
 long getId()
          Gets the value of the attribute: id; This attribute represents an ID.
 OidObject getOid()
          Gets the value of the attribute: oid; This attribute represents an ObjectIdentifier.
protected  void initialize(long a_id, ObjectIdentifier a_oid)
          Supports initialization, following construction of an instance.
static IdOidObject newIdOidObject()
          Default Contstructor.
static IdOidObject newIdOidObject(long a_id, ObjectIdentifier a_oid)
          This constructor initializes the instance.
 void readExternal(PersistentRetrieveIfc input)
          Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.
 void setId(long a_Id)
          Sets the value of the attribute: id; This attribute represents an ID.
 void setOid(OidObject a_Oid)
          Sets the value of the attribute: oid; This attribute represents an ObjectIdentifier.
 void writeExternal(PersistentStoreIfc output)
          Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.
 
Methods inherited from class wt.fc.AbstractDatastoreStruct
getClassInfo, getValues, setValues, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wt.fc.NetFactor
getClassInfo
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

id

private long id

oid

private OidObject oid
Constructor Detail

IdOidObject

public IdOidObject()
Method Detail

writeExternal

public void writeExternal(PersistentStoreIfc output)
                   throws SQLException,
                          DatastoreException
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
writeExternal in interface ObjectMappable
Overrides:
writeExternal in class AbstractDatastoreStruct
Parameters:
output -
Throws:
SQLException
DatastoreException

readExternal

public void readExternal(PersistentRetrieveIfc input)
                  throws SQLException,
                         DatastoreException
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
readExternal in interface ObjectMappable
Overrides:
readExternal in class AbstractDatastoreStruct
Parameters:
input -
Throws:
SQLException
DatastoreException

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Returns:
String

getId

public long getId()
Gets the value of the attribute: id; This attribute represents an ID.

Supported API: false

Returns:
long

setId

public void setId(long a_Id)
           throws WTPropertyVetoException
Sets the value of the attribute: id; This attribute represents an ID.

Supported API: false

Parameters:
a_Id -
Throws:
WTPropertyVetoException

getOid

public OidObject getOid()
Gets the value of the attribute: oid; This attribute represents an ObjectIdentifier.

Supported API: false

Returns:
OidObject

setOid

public void setOid(OidObject a_Oid)
            throws WTPropertyVetoException
Sets the value of the attribute: oid; This attribute represents an ObjectIdentifier.

Supported API: false

Parameters:
a_Oid -
Throws:
WTPropertyVetoException

newIdOidObject

public static IdOidObject newIdOidObject()
                                  throws WTException
Default Contstructor.

Supported API: false

Returns:
IdOidObject
Throws:
WTException

newIdOidObject

public static IdOidObject newIdOidObject(long a_id,
                                         ObjectIdentifier a_oid)
                                  throws WTPropertyVetoException
This constructor initializes the instance.

Supported API: false

Parameters:
a_id - This argument specifies the ID.
a_oid - This argument specifies the ObjectIdentifier.
Returns:
IdOidObject
Throws:
WTPropertyVetoException

initialize

protected void initialize(long a_id,
                          ObjectIdentifier a_oid)
                   throws WTPropertyVetoException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: false

Parameters:
a_id - This argument specifies the ID.
a_oid - This argument specifies the ObjectIdentifier.
Throws:
WTPropertyVetoException