|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.domain.AbstractEntity
public abstract class AbstractEntity
An AbstractEntity, used as a base class for all domain classes.
Adds an unique identified to a subclassed domain class that is created when the class is instantiated on the client tier. At least this uid is created before the instance is persisted the first time. The uid may not be mistaken with the id property that is usually used for database identity (primary key) or with a business key column.
This class has an inner static declared class that is registered as a JPA EntityListener and forces the creation of an uid if not already created before. This assures that each persisted entity has an uid.
The uid property is used by the ActionScript client application to synchronize client-side entity instances with server-side ones.
NOTE:equals(Object)
and
calculation of hashCode()
.
Nested Class Summary | |
---|---|
static class |
AbstractEntity.AbstractEntityListener
An AbstractEntityListener forces the creation of an uid before the entity is persisted. |
Field Summary | |
---|---|
static String |
FIND_ALL
Suffix for the FIND_ALL named query. |
static String |
FIND_BY_ID
Suffix for the FIND_BY_ID named query. |
Constructor Summary | |
---|---|
AbstractEntity()
|
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare the uid property field. |
int |
hashCode()
Use the uid to calculate the hashCode. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FIND_ALL
public static final String FIND_BY_ID
Constructor Detail |
---|
public AbstractEntity()
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
Object.equals(Object)
public int hashCode()
hashCode
in class Object
String.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |