org.benow.repository.mapping
Class VersionedPersistentObject

java.lang.Object
  extended by org.benow.security.SecureObject
      extended by org.benow.repository.util.PersistentObjectImpl
          extended by org.benow.repository.mapping.JSQLObject
              extended by org.benow.repository.mapping.VersionedPersistentObject
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, PersistentObject, org.benow.util.Versioned

public abstract class VersionedPersistentObject
extends JSQLObject
implements java.io.Serializable, org.benow.util.Versioned

A persistent object some of whose fields are fetched via XSQL. Descend from this class if you want xsql to manage field fetching via fetchField(fieldName). Otherwise, extending PersistentObjectImpl is sufficient.

Author:
andy
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.benow.repository.mapping.JSQLObject
JSQLObject.XSQLVersionDesc, JSQLObject.XSQLVersioned
 
Field Summary
protected  java.lang.String version
           
 
Fields inherited from class org.benow.repository.util.PersistentObjectImpl
conn, recycled
 
Fields inherited from class org.benow.security.SecureObject
admin
 
Fields inherited from interface org.benow.repository.util.PersistentObject
FIELD_NAME_KEY
 
Constructor Summary
VersionedPersistentObject()
           
 
Method Summary
 java.lang.String getVersion()
           
 
Methods inherited from class org.benow.repository.mapping.JSQLObject
fetchExpectedField, fetchField, fetchFieldQuiet, forgetField, isFetched, isLocked, lock, refetchFieldQuiet, setFetched
 
Methods inherited from class org.benow.repository.util.PersistentObjectImpl
compareTo, doIsTransient, equals, getKey, isTransient, recycle, remove, remove, repositoryAfterLoad, repositoryAfterPersist, repositoryAfterTransient, repositoryBeforePersist, repositoryBeforeTransient, setKey, toString, update, update
 
Methods inherited from class org.benow.security.SecureObject
assertOnePermission, assertPermission, assertPermission, declarePermission, declareViewPermission, declareViewPermission
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

version

protected java.lang.String version
Constructor Detail

VersionedPersistentObject

public VersionedPersistentObject()
Method Detail

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface org.benow.util.Versioned