com.anasoft.os.daofusion.entity
Class MutablePersistentEntity
java.lang.Object
com.anasoft.os.daofusion.entity.PersistentEntity<java.lang.Long>
com.anasoft.os.daofusion.entity.MutablePersistentEntity
- All Implemented Interfaces:
- Persistable<java.lang.Long>, java.io.Serializable
- Direct Known Subclasses:
- BitemporalWrapper
public abstract class MutablePersistentEntity
- extends PersistentEntity<java.lang.Long>
Base class for mutable persistent entities
which use Long
as the primary key column type.
Mutable persistent entities feature the version-based
optimistic locking strategy support.
Typically, this kind of persistent entity is used
to model standard mutable domain-specific objects.
- Author:
- vojtech.szocs
- See Also:
PersistentEntity
,
Serialized Form
Method Summary |
protected java.lang.Object |
clone()
|
java.lang.Integer |
getVersion()
|
protected void |
setVersion(java.lang.Integer version)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MutablePersistentEntity
public MutablePersistentEntity()
getVersion
public java.lang.Integer getVersion()
setVersion
protected void setVersion(java.lang.Integer version)
clone
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class PersistentEntity<java.lang.Long>
- Throws:
java.lang.CloneNotSupportedException
Copyright © 2008-2009 ANASOFT and contributors. All Rights Reserved.