Class 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}
    The "key" is either
    • 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  
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XcaliaIdentityStringTranslator

        public XcaliaIdentityStringTranslator()
    • 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 interface IdentityStringTranslator
        Parameters:
        ec - ExecutionContext
        stringId - String form of the identity
        Returns:
        The identity