org.persvr.data
Class ObjectId
java.lang.Object
org.persvr.data.Identification<Persistable>
org.persvr.data.ObjectId
- All Implemented Interfaces:
- TargetRetriever<Persistable>
- Direct Known Subclasses:
- AliasIds.AliasHandler, ObjectNotFoundId, Query
public class ObjectId
- extends Identification<Persistable>
Represents a unique identifier of a persistable object
- Author:
- Kris Zyp
|
Constructor Summary |
protected |
ObjectId()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DEFAULT_RADIX
public static final int DEFAULT_RADIX
- See Also:
- Constant Field Values
ObjectId
protected ObjectId()
hidden
public boolean hidden()
idForString
public static ObjectId idForString(java.lang.String value)
getOrCreateTarget
public Persistable getOrCreateTarget()
insertObjectForId
@Deprecated
public static void insertObjectForId(java.lang.String id,
Persistable obj)
- Deprecated.
persistIfNeeded
public void persistIfNeeded(NewObjectPersister newObjectPersister)
isPersisted
public boolean isPersisted()
isLocal
public boolean isLocal()
idForObject
public static ObjectId idForObject(DataSource source,
java.lang.String objectId)
assignId
public void assignId(DataSource source,
java.lang.String objectId)
resolveTarget
protected Persistable resolveTarget()
- Description copied from class:
Identification
- Implementations should implement this to resolve a target when it has not been loaded yet
- Specified by:
resolveTarget in class Identification<Persistable>
- Returns:
- object referred to by identification
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object