|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.db.DBDataRevisionManager
public class DBDataRevisionManager
This class manages revision for HistorizedDBData
Field Summary | |
---|---|
static String |
REV_DATA_ID_FIELD
|
static String |
REV_DATE_FIELD
|
static String |
REVISION
|
Method Summary | |
---|---|
DBDataRevision |
addRevision(DBData data,
int op,
Member mbr)
Add a new revision for the given data. |
static DBDataRevisionManager |
getInstance()
|
Class |
getRevisionClass(Class clazz)
Returns the revision class bound to the given class. |
List<Data> |
getRevisionDataList(Class clazz,
String id)
Returns a list of data representation of each revision of the given data. |
List<Data> |
getRevisionDataList(Data data)
Returns a list of data representation of each revision of the given data. |
List<Data> |
getRevisionDataList(String id)
Returns a list of data representation of each revision of the given data. |
List<DBDataRevision> |
getRevisionList(Class clazz,
String id)
Returns the list of DBDataRevision for the given data. |
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 String REVISION
public static final String REV_DATA_ID_FIELD
public static final String REV_DATE_FIELD
Method Detail |
---|
public static DBDataRevisionManager getInstance()
public List<DBDataRevision> getRevisionList(Data data)
data
- the data
public List<DBDataRevision> getRevisionList(Class clazz, String id)
clazz
- the class of the Dataid
- the id of the data
public Class getRevisionClass(Class clazz)
clazz
- the class
public List<Data> getRevisionDataList(Data data)
data
- the data
public List<Data> getRevisionDataList(String id)
id
- the id of the data
public List<Data> getRevisionDataList(Class clazz, 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 |