public class DatastoreUniqueLongId extends Object implements Serializable, DatastoreId, Comparable
| Modifier and Type | Field and Description |
|---|---|
long |
key |
| Constructor and Description |
|---|
DatastoreUniqueLongId() |
DatastoreUniqueLongId(long key) |
DatastoreUniqueLongId(String str)
Constructs an OID from its string representation that is consistent with the output of toString().
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
boolean |
equals(Object obj) |
long |
getKey() |
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 key value.
|
public DatastoreUniqueLongId()
public DatastoreUniqueLongId(long key)
public DatastoreUniqueLongId(String str) throws IllegalArgumentException
str - the string representation of an OIDIllegalArgumentException - if the given string representation is not valid.toString()public Object getKeyAsObject()
DatastoreIdgetKeyAsObject in interface DatastoreIdpublic long getKey()
public 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()
3254
toString in interface DatastoreIdtoString in class ObjectCopyright © 2019. All rights reserved.