public class DBDataRevisionManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REV_DATA_ID_FIELD |
static java.lang.String |
REV_DATE_FIELD |
static java.lang.String |
REVISION |
Modifier and Type | Method and Description |
---|---|
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.
|
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
public static DBDataRevisionManager getInstance()
public java.util.List<DBDataRevision> getRevisionList(Data data)
data
- the datapublic java.util.List<DBDataRevision> getRevisionList(java.lang.Class clazz, java.lang.String id)
clazz
- the class of the Dataid
- the id of the datapublic java.lang.Class getRevisionClass(java.lang.Class clazz)
clazz
- the classpublic java.util.List<Data> getRevisionDataList(Data data)
data
- the datapublic java.util.List<Data> getRevisionDataList(java.lang.String id)
id
- the id of the datapublic java.util.List<Data> getRevisionDataList(java.lang.Class clazz, java.lang.String id)
clazz
- the class of the dataid
- the id of the datapublic 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 revisionCopyright © 2001-2010 Jalios SA. All Rights Reserved.