K - type of primary keypublic interface GeneralBO<K extends Serializable> extends Serializable, rsbaselib.bean.IBean
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_CHANGE_DATE |
static String |
PROPERTY_CREATION_DATE |
| Modifier and Type | Method and Description |
|---|---|
rsbaselib.util.RsDate |
getChangeDate()
Returns the changeDate.
|
rsbaselib.util.RsDate |
getCreationDate()
Returns the creationDate.
|
GeneralDAO<K,? extends GeneralBO<K>> |
getDao()
Returns the responsible DAO.
|
K |
getId()
Returns the id.
|
LockInformation |
getLockInformation()
Get the current lock information.
|
void |
invalidate()
Invalidates all cached data and orders BO to reload
its data from underlying persistence store.
|
boolean |
isChanged()
Returns whether this object has changed.
|
boolean |
isInvalid()
Returns true when object was invalidated.
|
LockInformation |
lock(int timeout)
Try to lock this object.
|
void |
refresh()
Immediately refresh all values from persistence store.
|
LockInformation |
release()
Release the lock.
|
void |
setChanged(boolean changed)
Sets the change status of this object.
|
void |
setChangeDate(rsbaselib.util.RsDate changeDate)
Sets the changeDate.
|
void |
setCreationDate(rsbaselib.util.RsDate creationDate)
Sets the creationDate.
|
static final String PROPERTY_CREATION_DATE
static final String PROPERTY_CHANGE_DATE
GeneralDAO<K,? extends GeneralBO<K>> getDao()
K getId()
boolean isChanged()
void setChanged(boolean changed)
changed - new statusboolean isInvalid()
void invalidate()
void refresh()
LockInformation lock(int timeout)
timeout - timeout when trying to lock, 0 for no timeoutLockInformation release()
LockInformation getLockInformation()
rsbaselib.util.RsDate getCreationDate()
void setCreationDate(rsbaselib.util.RsDate creationDate)
creationDate - the creationDate to setrsbaselib.util.RsDate getChangeDate()
void setChangeDate(rsbaselib.util.RsDate changeDate)
changeDate - the changeDate to setCopyright © 2013. All Rights Reserved.