Package org.datanucleus.identity
Class XcaliaIdentityStringTranslator
- java.lang.Object
-
- org.datanucleus.identity.XcaliaIdentityStringTranslator
-
- All Implemented Interfaces:
java.io.Serializable
,IdentityStringTranslator
public class XcaliaIdentityStringTranslator extends java.lang.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
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description XcaliaIdentityStringTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getIdentity(ExecutionContext ec, java.lang.String stringId)
Method to translate the object into the identity.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIdentity
public java.lang.Object getIdentity(ExecutionContext ec, java.lang.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
-
-