public abstract class Entity
extends java.lang.Object
| Constructor and Description |
|---|
Entity() |
| Modifier and Type | Method and Description |
|---|---|
void |
detach()
Detaches entity by setting ID to
0. |
boolean |
equals(java.lang.Object o) |
protected abstract long |
getEntityId()
Returns entity ID.
|
int |
hashCode() |
boolean |
isPersistent()
Returns
true if entity is persisted, i.e. |
protected abstract void |
setEntityId(long id)
Sets entity ID.
|
java.lang.String |
toString() |
protected abstract long getEntityId()
protected abstract void setEntityId(long id)
public boolean isPersistent()
public void detach()
0.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2003-2013 Jodd Team