public class OIDImplXcalia extends Object implements Serializable, OID, Comparable
Modifier and Type | Field and Description |
---|---|
int |
hashCode
pre-created hasCode to improve performance
|
protected static Localiser |
LOCALISER
Localiser for messages.
|
Object |
oid
The key value.
|
String |
pcClass
The persistable class name
|
String |
toString
pre-created toString to improve performance
|
Constructor and Description |
---|
OIDImplXcalia()
Creates an OID with no value.
|
OIDImplXcalia(String str)
Constructs an OID from its string representation that is consistent with the output of toString().
|
OIDImplXcalia(String pcClass,
Object object)
Create a string datastore identity.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o)
Comparator method.
|
boolean |
equals(Object obj)
Equality operator.
|
Object |
getKeyValue()
Accessor for the key value.
|
String |
getPcClass()
Accessor for the persistable class name.
|
int |
hashCode()
Accessor for the hashcode
|
String |
toString()
Creates a String representation of the datastore identity, formed from the PC class name
and the key value.
|
protected static final transient Localiser LOCALISER
public final Object oid
public final String pcClass
public final String toString
public final int hashCode
public OIDImplXcalia()
public OIDImplXcalia(String pcClass, Object object)
pcClass
- The persistable class that this representsobject
- The valuepublic OIDImplXcalia(String str) throws IllegalArgumentException
str
- the string representation of an OIDIllegalArgumentException
- if the given string representation is not valid.toString
public Object getKeyValue()
getKeyValue
in interface OID
public String getPcClass()
getPcClass
in interface OID
public boolean equals(Object obj)
public int compareTo(Object o)
compareTo
in interface Comparable
o
- The object to compare againstpublic int hashCode()
public String toString()
mydomain.MyClass:3254
Copyright © 2014. All Rights Reserved.