public interface IdentityManager
Modifier and Type | Method and Description |
---|---|
Object |
getApplicationId(ClassLoaderResolver clr,
AbstractClassMetaData acmd,
String keyToString)
Utility to create a new application identity when you know the metadata for the target class,
and the toString() output of the identity.
|
Object |
getApplicationId(Class cls,
Object key)
Method to return a new object identity for the specified class, and key (possibly toString() output).
|
Object |
getApplicationId(Object pc,
AbstractClassMetaData cmd)
Method to create a new object identity for the passed object with the supplied MetaData.
|
DatastoreId |
getDatastoreId(long value)
Method to return a datastore-unique datastore identity, with the specified value.
|
DatastoreId |
getDatastoreId(String oidString)
Method to return a datastore identity, for the specified string which comes from the output of toString().
|
DatastoreId |
getDatastoreId(String className,
Object value)
Method to return a datastore identity, representing the persistable object with specified class name and key value.
|
Class |
getDatastoreIdClass() |
IdentityKeyTranslator |
getIdentityKeyTranslator()
Accessor for the current identity key translator to use (if any).
|
IdentityStringTranslator |
getIdentityStringTranslator()
Accessor for the current identity string translator to use (if any).
|
SingleFieldId |
getSingleFieldId(Class idType,
Class pcType,
Object key)
Method to return a single-field identity, for the persistable type specified, and for the idType of SingleFieldId.
|
Class getDatastoreIdClass()
IdentityStringTranslator getIdentityStringTranslator()
IdentityKeyTranslator getIdentityKeyTranslator()
DatastoreId getDatastoreId(String className, Object value)
className
- The class name for the persistablevalue
- The key value for the persistableDatastoreId getDatastoreId(long value)
value
- The long value that is unique across the datastore.DatastoreId getDatastoreId(String oidString)
oidString
- The toString() valueSingleFieldId getSingleFieldId(Class idType, Class pcType, Object key)
idType
- Type of the idpcType
- Type of the Persistablekey
- The value for the identity (the Long, or Int, or ... etc).Object getApplicationId(ClassLoaderResolver clr, AbstractClassMetaData acmd, String keyToString)
clr
- ClassLoader resolveracmd
- MetaData for the target classkeyToString
- String form of the keyObject getApplicationId(Object pc, AbstractClassMetaData cmd)
pc
- The persistable objectcmd
- Its metadataCopyright © 2019. All rights reserved.