Class DatastoreIdImplXcalia

  • All Implemented Interfaces:
    Serializable, Comparable, DatastoreId

    public class DatastoreIdImplXcalia
    extends Object
    implements Serializable, DatastoreId, Comparable
    Object identifier, typically used for datastore identity. The behaviour of this class is governed by JDO spec 5.4.3. Utilises a String form of the style "mydomain.MyClass:3258"; this is a form similar to Xcalia. Note : Xcalia also allows "{alias}:3258" but this isn't catered for here
    See Also:
    Serialized Form
    • Field Detail

      • keyAsObject

        public final Object keyAsObject
      • targetClassName

        public final String targetClassName
      • toString

        public final String toString
      • hashCode

        public final int hashCode
    • Constructor Detail

      • DatastoreIdImplXcalia

        public DatastoreIdImplXcalia​(String pcClass,
                                     Object key)
      • DatastoreIdImplXcalia

        public DatastoreIdImplXcalia​(String str)
                              throws IllegalArgumentException
        Constructs a DatastoreId from its string representation that is consistent with the output of toString().
        str - the string representation of a DatastoreId
        IllegalArgumentException - if the given string representation is not valid.
        See Also:
    • Method Detail

      • getKeyAsObject

        public Object getKeyAsObject()
        Description copied from interface: DatastoreId
        Provides the identity in a form that can be used by the database as a key.
        Specified by:
        getKeyAsObject in interface DatastoreId
        The key value
      • getTargetClassName

        public String getTargetClassName()
        Description copied from interface: DatastoreId
        Accessor for the target class name for the persistable object this represents.
        Specified by:
        getTargetClassName in interface DatastoreId
        the class name of the persistable
      • toString

        public String toString()
        Creates a String representation of the datastore identity, formed from the target class name and the key value. This will be something like
        Specified by:
        toString in interface DatastoreId
        toString in class Object
        The String form of the identity