|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Entity
All database entities must implement this interface, which represents the minimum requirements to meet.
A database entity always has an Integer surrogate key
(system ID). It must also be Serializable and Cloneable.
A database entity class must also fulfill the following requirements, that cannot be expressed by a Java interface :
AbstractEntity| Method Summary | |
|---|---|
Date |
getCreateDate()
|
Integer |
getId()
Returns the system ID. |
Date |
getLastModifiedDate()
|
boolean |
isNew()
|
void |
setCreateDate(Date date)
|
void |
setId(Integer id)
Sets this entity's system ID. |
void |
setLastModifiedDate(Date date)
|
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
Integer getId()
void setId(Integer id)
id - ID > 0 for persistent entities,
null for transient onesvoid setLastModifiedDate(Date date)
Date getLastModifiedDate()
void setCreateDate(Date date)
Date getCreateDate()
boolean isNew()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||