com.anasoft.os.daofusion.entity
Class MutablePersistentEntity

java.lang.Object
  extended by com.anasoft.os.daofusion.entity.PersistentEntity<java.lang.Long>
      extended by 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

Field Summary
 
Fields inherited from class com.anasoft.os.daofusion.entity.PersistentEntity
_ID
 
Constructor Summary
MutablePersistentEntity()
           
 
Method Summary
protected  java.lang.Object clone()
           
 java.lang.Integer getVersion()
           
protected  void setVersion(java.lang.Integer version)
           
 
Methods inherited from class com.anasoft.os.daofusion.entity.PersistentEntity
getId, setId
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutablePersistentEntity

public MutablePersistentEntity()
Method Detail

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.