wt.fc
Class OidObject

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

public class OidObject
extends AbstractDatastoreStruct
implements DatastoreStruct

This class represents a Datastore struct for an ObjectIdentifier.

Use the newOidObject static factory method(s), not the OidObject 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 int CLASS_NAME_UPPER_LIMIT
           
private  String className
           
private static String CLASSNAME
           
private  long id
           
private static String RESOURCE
           
 
Fields inherited from interface wt.fc.DatastoreType
VALUES
 
Constructor Summary
OidObject()
           
 
Method Summary
private  void classNameValidate(String a_ClassName)
           
 String getClassName()
          Gets the value of the attribute: className.
 String getConceptualClassname()
          Deprecated.  
 long getId()
          Gets the value of the attribute: id; This attribute represents the ID of an ObjectIdentifier.
protected  void initialize(String a_classname, long a_id)
          Supports initialization, following construction of an instance.
static OidObject newOidObject()
          Default Contstructor.
static OidObject newOidObject(String a_classname, long a_id)
          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 setClassName(String a_ClassName)
          Sets the value of the attribute: className.
 void setId(long a_Id)
          Sets the value of the attribute: id; This attribute represents the ID of 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

CLASS_NAME_UPPER_LIMIT

private static int CLASS_NAME_UPPER_LIMIT

className

private String className

id

private long id
Constructor Detail

OidObject

public OidObject()
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

getClassName

public String getClassName()
Gets the value of the attribute: className.

Supported API: false

Returns:
String

setClassName

public void setClassName(String a_ClassName)
                  throws WTPropertyVetoException
Sets the value of the attribute: className.

Supported API: false

Parameters:
a_ClassName -
Throws:
WTPropertyVetoException

classNameValidate

private void classNameValidate(String a_ClassName)
                        throws WTPropertyVetoException
Parameters:
a_ClassName -
Throws:
WTPropertyVetoException

getId

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

Supported API: false

Returns:
long

setId

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

Supported API: false

Parameters:
a_Id -
Throws:
WTPropertyVetoException

newOidObject

public static OidObject newOidObject()
                              throws WTException
Default Contstructor.

Supported API: false

Returns:
OidObject
Throws:
WTException

newOidObject

public static OidObject newOidObject(String a_classname,
                                     long a_id)
                              throws WTPropertyVetoException
This constructor initializes the instance.

Supported API: false

Parameters:
a_classname - The ObjectIdentifier classname.
a_id - The ObjectIdentifier ID.
Returns:
OidObject
Throws:
WTPropertyVetoException

initialize

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

Supported API: false

Parameters:
a_classname - The ObjectIdentifier classname.
a_id - The ObjectIdentifier ID.
Throws:
WTPropertyVetoException