Package de.xima.fc.entities
Class AbstractLockableEntity
- java.lang.Object
-
- de.xima.cmn.dao.model.AEntity<Long>
-
- de.xima.fc.entities.AbstractEntity
-
- de.xima.fc.entities.AbstractLockableEntity
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,de.xima.cmn.dao.interfaces.ILockableEntity<Long>
,ILockingVersionProviding
,ITransferable
,ITransferableEntity
,ITransferableLockableEntity
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
- Direct Known Subclasses:
AAppointmentClosingTime
,AbstractDatei
,AbstractDateiData
,AbstractMandantDependentEntity
,AFileEntity
,ALockableEntity
,Appointment
,AppointmentSlot
,AppointmentTemplate
,AppointmentType
,AProtocolEntry
,AWorkflowElement
,AWorkflowElementSearchTerm
,FrontendServer
,LicenseFile
,Mandant
,ProjectPreviewFile
,SystemMessage
,SystemProperty
,UserCredentials
,UserEmail
,UserIdentity
,UserProfile
,UserProfileMfa
,WorkflowProcess
,WorkflowState
,WorkflowTask
,WorkflowVersion
@MappedSuperclass public abstract class AbstractLockableEntity extends AbstractEntity implements ITransferableLockableEntity
Diese Klasse ist die Elternklasse aller Entitäten und beinhaltet die Attribute, die in jeder Entität vorhanden sein müssen.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
COL_LOCKINGVERSION
protected int
lockingVersion
Versionskennung für 'Optimistic Locking'.-
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
-
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
-
Constructor Summary
Constructors Constructor Description AbstractLockableEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
entityHasChanged(de.xima.cmn.dao.interfaces.ILockableEntity<Long> ale)
int
getLockingVersion()
Ermitteln der aktuellen LockingVersion.void
setLockingVersion(int lockingVersion)
Setzen der LockingVersion.String
toString()
-
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId, setId
-
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
COL_LOCKINGVERSION
public static final String COL_LOCKINGVERSION
- See Also:
- Constant Field Values
-
lockingVersion
protected int lockingVersion
Versionskennung für 'Optimistic Locking'.
-
-
Method Detail
-
getLockingVersion
public int getLockingVersion()
Ermitteln der aktuellen LockingVersion.- Specified by:
getLockingVersion
in interfacede.xima.cmn.dao.interfaces.ILockableEntity<Long>
- Specified by:
getLockingVersion
in interfaceILockingVersionProviding
- Returns:
- nummerischer Wert der aktuellen LockingVersion.
-
setLockingVersion
public void setLockingVersion(int lockingVersion)
Setzen der LockingVersion.- Specified by:
setLockingVersion
in interfacede.xima.cmn.dao.interfaces.ILockableEntity<Long>
- Parameters:
lockingVersion
- - nummerischer Wert auf den die LockinVersion gesetzt werden soll.
-
-