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>,ITransferable,ITransferableEntity,ITransferableLockableEntity,Serializable,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
- Direct Known Subclasses:
AbstractDatei,AbstractDateiData,AbstractMandantDependentEntity,AFileEntity,ALockableEntity,Appointment,AppointmentClosingTime,AppointmentSlot,AppointmentTemplate,AppointmentType,AProtocolEntry,AWorkflowElement,AWorkflowElementSearchTerm,Entityberechtigung,FrontendServer,LicenseFile,Mandant,ProjectPreviewFile,SystemMessage,SystemProperty,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 StringCOL_LOCKINGVERSIONprotected intlockingVersionVersionskennung 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 booleanentityHasChanged(de.xima.cmn.dao.interfaces.ILockableEntity<Long> ale)intgetLockingVersion()Ermitteln der aktuellen LockingVersion.voidsetLockingVersion(int lockingVersion)Setzen der LockingVersion.StringtoString()-
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:
getLockingVersionin interfacede.xima.cmn.dao.interfaces.ILockableEntity<Long>- Returns:
- nummerischer Wert der aktuellen LockingVersion.
-
setLockingVersion
public void setLockingVersion(int lockingVersion)
Setzen der LockingVersion.- Specified by:
setLockingVersionin interfacede.xima.cmn.dao.interfaces.ILockableEntity<Long>- Parameters:
lockingVersion- - nummerischer Wert auf den die LockinVersion gesetzt werden soll.
-
-