|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jcms.db.DBDataRevisionManager
public class DBDataRevisionManager
This class manages revision for HistorizedDBData
| Field Summary | |
|---|---|
static java.lang.String |
REV_DATA_ID_FIELD
|
static java.lang.String |
REV_DATE_FIELD
|
static java.lang.String |
REVISION
|
| Method Summary | |
|---|---|
DBDataRevision |
addRevision(DBData data,
int op,
Member mbr)
Add a new revision for the given data. |
static DBDataRevisionManager |
getInstance()
|
java.lang.Class |
getRevisionClass(java.lang.Class clazz)
Returns the revision class bound to the given class. |
java.util.List<Data> |
getRevisionDataList(java.lang.Class clazz,
java.lang.String id)
Returns a list of data representation of each revision of the given data. |
java.util.List<Data> |
getRevisionDataList(Data data)
Returns a list of data representation of each revision of the given data. |
java.util.List<Data> |
getRevisionDataList(java.lang.String id)
Returns a list of data representation of each revision of the given data. |
java.util.List<DBDataRevision> |
getRevisionList(java.lang.Class clazz,
java.lang.String id)
Returns the list of DBDataRevision for the given data. |
java.util.List<DBDataRevision> |
getRevisionList(Data data)
Returns the list of DBDataRevision for the given data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String REVISION
public static final java.lang.String REV_DATA_ID_FIELD
public static final java.lang.String REV_DATE_FIELD
| Method Detail |
|---|
public static DBDataRevisionManager getInstance()
public java.util.List<DBDataRevision> getRevisionList(Data data)
data - the data
public java.util.List<DBDataRevision> getRevisionList(java.lang.Class clazz,
java.lang.String id)
clazz - the class of the Dataid - the id of the data
public java.lang.Class getRevisionClass(java.lang.Class clazz)
clazz - the class
public java.util.List<Data> getRevisionDataList(Data data)
data - the data
public java.util.List<Data> getRevisionDataList(java.lang.String id)
id - the id of the data
public java.util.List<Data> getRevisionDataList(java.lang.Class clazz,
java.lang.String id)
clazz - the class of the dataid - the id of the data
public DBDataRevision addRevision(DBData data,
int op,
Member mbr)
data - the dataop - the operation (OP_CREATE, OP_UPDATE or OP_DELETE)mbr - the author of the revision
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||