|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemovableData
A removable item is an item that can be flagged as removed. This doesn't remove the information about the item from the database, but can be used by client applications to hide items that the user is not interested in.
For example, all methods generating lists of items, will by default not include items that are flagged as removed.
A cleaning application is usually run at regular intervals to remove items that have been flagged as removed.
This interface defines Hibernate database mapping for the
removed
property to a database column with the same
name. If a subclass wants to map these properties to other columns,
it should override the isRemoved()
method and add a
Hibernate tag in the comment.
Reference implementation
private boolean removed; public boolean isRemoved() { return removed; } public void setRemoved(boolean removed) { this.removed = removed; }
Method Summary | |
---|---|
boolean |
isRemoved()
Check if the removed flag is set for this item. |
void |
setRemoved(boolean removed)
Set the removed flag for this item. |
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData |
---|
getId, getVersion |
Method Detail |
---|
boolean isRemoved()
void setRemoved(boolean removed)
removed
- TRUE if the item should be flagged as removed,
FALSE otherwise
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |