ch.elca.el4j.util.objectwrapper.impl
Class KeyedVersionedHibernateImpl

java.lang.Object
  extended by ch.elca.el4j.util.objectwrapper.impl.AbstractWrapper
      extended by ch.elca.el4j.util.objectwrapper.impl.KeyedVersionedHibernateImpl
All Implemented Interfaces:
KeyedVersioned, Wrappable, Cloneable

public class KeyedVersionedHibernateImpl
extends AbstractWrapper
implements KeyedVersioned

Implementation of keyed/versioned.

Author:
David Bernhard (DBD)
File-location:
KeyedVersionedHibernateImpl
Last check-in date:
2009-08-04 15:13:46 +0200 (Di, 04. Aug 2009) by swismer for revision 3879

Field Summary
 
Fields inherited from class ch.elca.el4j.util.objectwrapper.impl.AbstractWrapper
m_target, m_wrapper
 
Constructor Summary
KeyedVersionedHibernateImpl(SessionFactory sessionFactory)
          Create a prototype instance.
 
Method Summary
 void create()
          Override this in implementations to instantiate an object.
 Serializable getKey()
          
 Class<?> getKeyClass()
          
 Serializable getVersion()
          
 Class<?> getVersionClass()
          
 void setKey(Serializable key)
          Set the object's key.
 void setVersion(Serializable version)
          Set the version.
 
Methods inherited from class ch.elca.el4j.util.objectwrapper.impl.AbstractWrapper
clone, setTarget, setWrapper
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyedVersionedHibernateImpl

public KeyedVersionedHibernateImpl(SessionFactory sessionFactory)
Create a prototype instance.

Parameters:
sessionFactory - The session factory.
Method Detail

getKey

public Serializable getKey()

Specified by:
getKey in interface KeyedVersioned
Returns:
The key this object holds.

getVersion

public Serializable getVersion()

Specified by:
getVersion in interface KeyedVersioned
Returns:
The version.

setKey

public void setKey(Serializable key)
Set the object's key.

Specified by:
setKey in interface KeyedVersioned
Parameters:
key - The key to set.

setVersion

public void setVersion(Serializable version)
Set the version.

Specified by:
setVersion in interface KeyedVersioned
Parameters:
version - The version to set.

getKeyClass

public Class<?> getKeyClass()

Specified by:
getKeyClass in interface KeyedVersioned
Returns:
The effective class of the key property.

getVersionClass

public Class<?> getVersionClass()

Specified by:
getVersionClass in interface KeyedVersioned
Returns:
The effective class of the version property.

create

public void create()
Override this in implementations to instantiate an object. A successful return indicates creation succeeded.

Specified by:
create in class AbstractWrapper


Copyright © 2005-2011 ELCA. All Rights Reserved.