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()
DatastoreId
getKeyAsObject
in interface DatastoreId
public long getKey()
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
toString
in interface DatastoreId
toString
in class Object
Copyright © 2019. All rights reserved.