public class DatastoreIdImplKodo extends Object implements Serializable, DatastoreId, Comparable
Modifier and Type | Field and Description |
---|---|
int |
hashCode |
Object |
keyAsObject |
protected static String |
STRING_DELIMITER |
String |
targetClassName |
String |
toString |
Constructor and Description |
---|
DatastoreIdImplKodo(String str)
Constructs a DatastoreId from its string representation that is consistent with the output of toString().
|
DatastoreIdImplKodo(String pcClass,
Object key) |
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 DatastoreIdImplKodo(String str) throws IllegalArgumentException
str
- the string representation of the DatastoreIdIllegalArgumentException
- 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()
mydomain.MyClass-3254
toString
in interface DatastoreId
toString
in class Object
Copyright © 2019. All rights reserved.