com.vordel.es.xes
Class PortableESPK
java.lang.Object
com.vordel.es.xes.PortableESPK
- All Implemented Interfaces:
- com.vordel.common.Dictionary, ESPK, java.lang.Comparable<PortableESPK>
public class PortableESPK
- extends java.lang.Object
- implements ESPK, java.lang.Comparable<PortableESPK>, com.vordel.common.Dictionary
Implementation of a portable or 'provider-neutral' ESPK. This ESPK can
be used to identify specific Entities in any given entity store, based on
their key field values. It is used specifically for importing/exporting data
and for comparing Entities between two stores.
Nested classes/interfaces inherited from interface com.vordel.common.Dictionary |
com.vordel.common.Dictionary.MapAs |
Fields inherited from interface com.vordel.common.Dictionary |
empty |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ROOT_KEY_NODE
protected static final PortableESPK.KeyNode ROOT_KEY_NODE
NULL_KEY_NODE
protected static final PortableESPK.KeyNode NULL_KEY_NODE
ROOT_KEY
public static final PortableESPK ROOT_KEY
topNode
protected PortableESPK.KeyNode topNode
PortableESPK
protected PortableESPK(PortableESPK.KeyNode node)
getTypeNameOfReferencedEntity
public java.lang.String getTypeNameOfReferencedEntity()
getFieldValuesOfReferencedEntity
public java.util.List<PortableESPK.NVPair> getFieldValuesOfReferencedEntity()
getFieldValueOfReferencedEntity
public java.lang.String getFieldValueOfReferencedEntity(java.lang.String field)
hashCode
public int hashCode()
- Description copied from interface:
ESPK
- Although the Object class in java guarantees the hashCode
method, capture it here for completeness
- Specified by:
hashCode
in interface ESPK
- Overrides:
hashCode
in class java.lang.Object
- Returns:
- A hashcode for the key
equals
public boolean equals(java.lang.Object other)
- Description copied from interface:
ESPK
- Although the Object class in java guarantees the equals
method, capture it here for completeness
- Specified by:
equals
in interface ESPK
- Overrides:
equals
in class java.lang.Object
- Returns:
- True if this key equals another one, false otherwise
toShorthandString
public java.lang.String toShorthandString()
getEntityKeyString
public java.lang.String getEntityKeyString()
terse
public java.lang.String terse()
getParentPK
public PortableESPK getParentPK()
serialize
public void serialize(java.io.Writer w)
throws java.io.IOException
- Throws:
java.io.IOException
compareTo
public int compareTo(PortableESPK o)
- Specified by:
compareTo
in interface java.lang.Comparable<PortableESPK>
toString
public java.lang.String toString()
- Description copied from interface:
ESPK
- Retrieve a string representation of the key.
- Specified by:
toString
in interface ESPK
- Overrides:
toString
in class java.lang.Object
- Returns:
- A String encoding of the key.
get
public java.lang.Object get(java.lang.String key)
- Specified by:
get
in interface com.vordel.common.Dictionary
toPortableKey
public static PortableESPK toPortableKey(EntityStore es,
ESPK pk)
reroot
public PortableESPK reroot(PortableESPK newPPK)
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel