Package org.datanucleus.identity
Class XcaliaIdentityStringTranslator
- java.lang.Object
-
- org.datanucleus.identity.XcaliaIdentityStringTranslator
-
- All Implemented Interfaces:
Serializable
,IdentityStringTranslator
public class XcaliaIdentityStringTranslator extends Object implements IdentityStringTranslator
Identity translator that allows for some combinations that Xcalia XIC allowed. This string form isn't necessarily the "id.toString()" form - it was added to allow migration from Xcalia XIC. Handles the following String forms :-- {fully-qualified-class-name}:{key}
- {discriminator}:{key}
- datastore-identity : the key of the object e.g 12345
- application-identity : the toString() output from the PK
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XcaliaIdentityStringTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getIdentity(ExecutionContext ec, String stringId)
Method to translate the object into the identity.
-
-
-
Method Detail
-
getIdentity
public Object getIdentity(ExecutionContext ec, String stringId)
Description copied from interface:IdentityStringTranslator
Method to translate the object into the identity.- Specified by:
getIdentity
in interfaceIdentityStringTranslator
- Parameters:
ec
- ExecutionContextstringId
- String form of the identity- Returns:
- The identity
-
-