public class DatastoreIdImpl 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 |
---|
DatastoreIdImpl() |
DatastoreIdImpl(String str)
Constructs an identity from its string representation that is consistent with the output of toString().
|
DatastoreIdImpl(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 DatastoreIdImpl()
public DatastoreIdImpl(String str) throws IllegalArgumentException
str
- the string representation of an OIDIllegalArgumentException
- if the given string representation is not valid.toString
public Object getKeyAsObject()
DatastoreId
getKeyAsObject
in interface DatastoreId
public String getTargetClassName()
DatastoreId
getTargetClassName
in interface DatastoreId
public boolean equals(Object obj)
equals
in interface DatastoreId
equals
in class Object
public int compareTo(Object o)
compareTo
in interface Comparable
public int hashCode()
hashCode
in interface DatastoreId
hashCode
in class Object
public String toString()
3254[OID]mydomain.MyClass
toString
in interface DatastoreId
toString
in class Object
Copyright © 2017. All rights reserved.