public class DatastoreIdImplXcalia extends Object implements Serializable, DatastoreId, Comparable
| Modifier and Type | Field and Description |
|---|---|
int |
hashCode
pre-created hasCode to improve performance
|
Object |
keyAsObject |
protected static String |
STRING_DELIMITER |
String |
targetClassName |
String |
toString
pre-created toString to improve performance
|
| Constructor and Description |
|---|
DatastoreIdImplXcalia() |
DatastoreIdImplXcalia(String str)
Constructs an OID from its string representation that is consistent with the output of toString().
|
DatastoreIdImplXcalia(String pcClass,
Object object) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
boolean |
equals(Object obj) |
Object |
getKeyAsObject()
Provides the identity in a form that can be used by the database as a key.
|
String |
getTargetClassName()
Accessor for the target class name for the persistable object this represents.
|
int |
hashCode() |
String |
toString()
Creates a String representation of the datastore identity, formed from the target class name and the key value.
|
protected static final transient String STRING_DELIMITER
public final Object keyAsObject
public final String targetClassName
public final String toString
public final int hashCode
public DatastoreIdImplXcalia()
public DatastoreIdImplXcalia(String str) throws IllegalArgumentException
str - the string representation of an OIDIllegalArgumentException - if the given string representation is not valid.toStringpublic Object getKeyAsObject()
DatastoreIdgetKeyAsObject in interface DatastoreIdpublic String getTargetClassName()
DatastoreIdgetTargetClassName in interface DatastoreIdpublic boolean equals(Object obj)
equals in interface DatastoreIdequals in class Objectpublic int compareTo(Object o)
compareTo in interface Comparablepublic int hashCode()
hashCode in interface DatastoreIdhashCode in class Objectpublic String toString()
mydomain.MyClass:3254
toString in interface DatastoreIdtoString in class ObjectCopyright © 2017. All rights reserved.