Package org.datanucleus.identity
Class XcaliaIdentityStringTranslator
java.lang.Object
org.datanucleus.identity.XcaliaIdentityStringTranslator
- All Implemented Interfaces:
Serializable
,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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIdentity
(ExecutionContext ec, String stringId) Method to translate the object into the identity.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
XcaliaIdentityStringTranslator
public XcaliaIdentityStringTranslator()
-
-
Method Details
-
getIdentity
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
-