Package com.groiss.org
Class CheckedPersistent
java.lang.Object
com.groiss.store.PersistentObject
com.groiss.store.ExportablePersistentObject
com.groiss.org.CheckedPersistent
- All Implemented Interfaces:
KeyValuePair<String,
,String> HasPermissionList
,Exportable
,OptimisticLocking
,Persistent
,Serializable
,Cloneable
public abstract class CheckedPersistent
extends ExportablePersistentObject
implements OptimisticLocking, HasPermissionList
This is an extension of the ExportablePersistentObject class that implements the additional interfaces
OptimisticLocking and HasPermissionList.
- See Also:
-
Field Summary
Fields inherited from class com.groiss.store.PersistentObject
filled, oid
Fields inherited from interface com.groiss.store.Persistent
emptyKeys
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the default org unit to use when checking permissions.Get the permission listlong
Get the transactionid of the object.void
Increase the transactionid of the object.void
Set the permission list.void
setTransactionId
(long tid) Set the transactionid of the object.Methods inherited from class com.groiss.store.PersistentObject
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, clone, dbFields, equals, getKey, getKeys, getLocalClassName, getLocalObjectName, getOid, getValue, hashCode, isFilled, isValid, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setOid, toListString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.groiss.store.Exportable
beforeImport, exportFields, getAdditionalObjects, getRequiredObjects, getRequiredReferences
Methods inherited from interface com.groiss.store.Persistent
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, dbFields, getKey, getKeys, getLocalClassName, getLocalObjectName, getOid, getStore, getTableName, getValue, isFilled, isValid, setFilled, setOid, setOid, toListString
-
Field Details
-
transactionId
public long transactionId -
acl
-
-
Constructor Details
-
CheckedPersistent
public CheckedPersistent()
-
-
Method Details
-
getTransactionId
public long getTransactionId()Description copied from interface:OptimisticLocking
Get the transactionid of the object.- Specified by:
getTransactionId
in interfaceOptimisticLocking
- Returns:
- the objects transactionid.
-
setTransactionId
public void setTransactionId(long tid) Description copied from interface:OptimisticLocking
Set the transactionid of the object.- Specified by:
setTransactionId
in interfaceOptimisticLocking
- Parameters:
tid
- the new transactionid.
-
increaseTransactionId
public void increaseTransactionId()Description copied from interface:OptimisticLocking
Increase the transactionid of the object.- Specified by:
increaseTransactionId
in interfaceOptimisticLocking
-
getPermissionList
Description copied from interface:HasPermissionList
Get the permission list- Specified by:
getPermissionList
in interfaceHasPermissionList
- Returns:
- the permission list.
-
setPermissionList
Description copied from interface:HasPermissionList
Set the permission list.- Specified by:
setPermissionList
in interfaceHasPermissionList
- Parameters:
pl
- the permission list to set.
-
getDefaultOrgUnit
Description copied from interface:HasPermissionList
Get the default org unit to use when checking permissions.- Specified by:
getDefaultOrgUnit
in interfaceHasPermissionList
- Returns:
- the default org unit. May return null.
-