Package com.jalios.jcms.db
Class DBDataRevisionManager
java.lang.Object
com.jalios.jcms.db.DBDataRevisionManager
This class manages revision for HistorizedDBData
- Since:
- jcms-6.2.0
- Author:
- Olivier Dedieu
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddRevision(DBData data, int op, Member mbr) Add a new revision for the given data.static DBDataRevisionManagergetRevisionClass(Class clazz) Returns the revision class bound to the given class.getRevisionDataList(Data data) Returns a list of data representation of each revision of the given data.getRevisionDataList(Class clazz, String id) Returns a list of data representation of each revision of the given data.Returns a list of data representation of each revision of the given data.getRevisionList(Data data) Returns the list of DBDataRevision for the given data.getRevisionList(Class clazz, String id) Returns the list of DBDataRevision for the given data.
-
Field Details
-
REV_DATA_ID_FIELD
- See Also:
-
REV_DATE_FIELD
- See Also:
-
-
Method Details
-
getInstance
-
getRevisionList
Returns the list of DBDataRevision for the given data.- Parameters:
data- the data- Returns:
- the list of DBDataRevision for the given data.
- Since:
- jcms-6.2.0
-
getRevisionList
Returns the list of DBDataRevision for the given data.- Parameters:
clazz- the class of the Dataid- the id of the data- Returns:
- the list of DBDataRevision for the given data.
- Since:
- jcms-6.2.0
-
getRevisionClass
Returns the revision class bound to the given class.- Parameters:
clazz- the class- Returns:
- the revision class bound to the given class.
- Since:
- jcms-6.2.0
-
getRevisionDataList
Returns a list of data representation of each revision of the given data.- Parameters:
data- the data- Returns:
- a list of data representation of each revision of the given data.
- Since:
- jcms-6.2.0
-
getRevisionDataList
Returns a list of data representation of each revision of the given data.- Parameters:
id- the id of the data- Returns:
- a list of data representation of each revision of the given data.
- Since:
- jcms-6.2.0
-
getRevisionDataList
Returns a list of data representation of each revision of the given data.- Parameters:
clazz- the class of the dataid- the id of the data- Returns:
- a list of data representation of each revision of the given data.
- Since:
- jcms-6.2.0
-
addRevision
Add a new revision for the given data.- Parameters:
data- the dataop- the operation (OP_CREATE, OP_UPDATE or OP_DELETE)mbr- the author of the revision- Returns:
- the new DBDataRevision
- Since:
- jcms-6.2.0
-