public class EntityKey extends Object implements Comparable<EntityKey>
| Constructor and Description |
|---|
EntityKey(Class<?> entityClass,
Object primaryKey)
Create EntityKey object
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(EntityKey another)
Compares this object with the specified object for order.
|
boolean |
equals(Object another)
Indicates whether some other object is "equal to" this one.
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isDirty()
Returns true if updates need to be persisted on the entity identifed by this key
|
void |
setDirty(boolean dirty)
Set dirty flag
|
public int compareTo(EntityKey another)
compareTo in interface Comparable<EntityKey>another - The object to be compared.public boolean isDirty()
public void setDirty(boolean dirty)
dirty - booleanpublic int hashCode()
java.util.Hashtable.hashCode in class ObjectObject.equals(java.lang.Object),
Hashtablepublic boolean equals(Object another)
equals in class Objectanother - The reference object with which to compare.true if this object is the same as the obj
argument; false otherwise.hashCode(),
HashtableThis documentation is licensed by Andrew Bowley under the GPLv3 License.