Package wt.fc
Class ObjectIdentifier
java.lang.Object
wt.fc._ObjectIdentifier
wt.fc.ObjectIdentifier
- All Implemented Interfaces:
Externalizable,Serializable,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._QueryKey,NetFactor,ObjectMappable,QueryKey,Evolvable
@GenAsObjectMappable(interfaces=QueryKey.class,
serializable=EVOLVABLE,
versions=7335526960071533094L,
properties=@GeneratedProperty(name="id",type=long.class,supportedAPI=PUBLIC_PRIVATE,javaDoc="The unique identifier of this <code>ObjectIdentifier</code>.",accessors=@PropertyAccessors(setExceptions={})))
public final class ObjectIdentifier
extends _ObjectIdentifier
ObjectIdentifier represents a unique identifier assigned to the object
by the PersistenceManager when it saves a Persistable object to a datastore.
Use the newObjectIdentifier static factory method(s), not
the ObjectIdentifier 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: true
Extendable: false
- See Also:
-
Field Summary
Fields inherited from class wt.fc._ObjectIdentifier
ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription
Supported API: truebooleanCompare twoObjectIdentifierobjects for equality.Returns a string representation for thisObjectIdentifier.inthashCode()Returns a hash code for thisObjectIdentifier.Returns a string representation for thisObjectIdentifier.getId.protected void
Supported API: truebooleanReturn true if thisObjectIdentifierhas been assigned for aPersistableobject.booleanReturn true if thisObjectIdentifierhas NOT been assigned to anyPersistableobject.static ObjectIdentifiernewObjectIdentifier(Class aClass, long anIdValue)
Supported API: truestatic ObjectIdentifier
Supported API: truestatic ObjectIdentifiernewObjectIdentifier(String aClassName, long anIdValue)
Supported API: truetoString()Returns the conceptual (modeled) name for the class.Methods inherited from class wt.fc._ObjectIdentifier
getId
-
Constructor Details
-
ObjectIdentifier
public ObjectIdentifier()
Supported API: true
-
-
Method Details
-
toString
Returns the conceptual (modeled) name for the class.
Supported API: true- Overrides:
toStringin class_ObjectIdentifier- Returns:
- String
-
newObjectIdentifier
Supported API: true- Parameters:
aClass- type of the objectanIdValue- unique persistence identifier of the object- Returns:
- ObjectIdentifier
- Throws:
WTException
-
newObjectIdentifier
public static ObjectIdentifier newObjectIdentifier(String aClassName, long anIdValue) throws WTException
Supported API: true- Parameters:
aClassName- type of the objectanIdValue- unique persistence identifier of the object- Returns:
- ObjectIdentifier
- Throws:
WTException
-
newObjectIdentifier
Supported API: true- Parameters:
url- String representation of the identifier in the formatclassname:id - Returns:
- ObjectIdentifier
- Throws:
WTException
-
equals
Compare twoObjectIdentifierobjects for equality.
Supported API: true -
hashCode
public int hashCode()Returns a hash code for thisObjectIdentifier.
Supported API: true -
getStringValue
Returns a string representation for thisObjectIdentifier. This can be used to pass theObjectIdentifieras aStringvalue (such as on a URL parameter).
Supported API: true- Returns:
- String
-
idAsString
Returns a string representation for thisObjectIdentifier.getId.
Supported API: true- Returns:
- String
-
isAssigned
public boolean isAssigned()Return true if thisObjectIdentifierhas been assigned for aPersistableobject.
Supported API: true- Returns:
- boolean
-
isNotAssigned
public boolean isNotAssigned()Return true if thisObjectIdentifierhas NOT been assigned to anyPersistableobject.
Supported API: true- Returns:
- boolean
-
appendKeyCriteria
Supported API: true- Parameters:
qs-- Returns:
- QuerySpec
- Throws:
WTException
-
initialize
protected void initialize()
Supported API: true
-