|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Entity
All model beans must implement this interface.
Method Summary | |
---|---|
java.lang.Object |
getChangedValue(java.lang.String propertyName)
|
java.util.Map |
getChangedValues()
|
java.lang.Long |
getId()
Subclasses should implement the 'id' property and map it to the right DB column.. |
java.lang.Object |
getOriginalValue(java.lang.String propertyName)
|
java.util.Map |
getOriginalValues()
Must return the *internal* hashmap that is used for storing original values This is important because Entity detection in the AutoSync mechanism excludes the original values maps when it traverses an object graph. |
boolean |
isChanged()
Returns true if any property has changed since it was loaded from the database. |
boolean |
isChanged(java.lang.String propertyName)
Returns true if the given property has changed since it was loaded from the database. |
java.lang.Boolean |
isUnsaved(Entity entity)
|
void |
onDelete(Entity entity,
java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
|
boolean |
onFlushDirty(Entity entity,
java.io.Serializable id,
java.lang.Object[] currentState,
java.lang.Object[] previousState,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
|
boolean |
onLoad(Entity entity,
java.io.Serializable id,
java.lang.Object[] state,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
|
boolean |
onSave(Entity entity,
java.io.Serializable arg1,
java.lang.Object[] state,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types)
|
void |
postFlush()
|
void |
preFlush()
|
void |
setId(java.lang.Long id)
|
void |
snapshot()
Store the current content of this entity, for difference analysis later. |
Method Detail |
---|
java.lang.Long getId()
Subclasses should implement the 'id' property and map it to the right DB column..
void setId(java.lang.Long id)
java.lang.Boolean isUnsaved(Entity entity)
void onDelete(Entity entity, java.io.Serializable id, java.lang.Object[] state, java.lang.String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException
org.hibernate.CallbackException
boolean onFlushDirty(Entity entity, java.io.Serializable id, java.lang.Object[] currentState, java.lang.Object[] previousState, java.lang.String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException
org.hibernate.CallbackException
boolean onLoad(Entity entity, java.io.Serializable id, java.lang.Object[] state, java.lang.String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException
org.hibernate.CallbackException
boolean onSave(Entity entity, java.io.Serializable arg1, java.lang.Object[] state, java.lang.String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException
org.hibernate.CallbackException
void postFlush()
void preFlush()
void snapshot()
Store the current content of this entity, for difference analysis later. This operation is called after calling a business facade on all loaded objects by default.
java.util.Map getOriginalValues()
java.lang.Object getOriginalValue(java.lang.String propertyName)
java.util.Map getChangedValues()
java.lang.Object getChangedValue(java.lang.String propertyName)
boolean isChanged(java.lang.String propertyName)
Returns true if the given property has changed since it was loaded from the database.
boolean isChanged()
Returns true if any property has changed since it was loaded from the database.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |