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

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

public class KeyedVersionedEl4jImpl
extends AbstractWrapper
implements KeyedVersioned

Implementation of KeyedVersioned that uses the provided methods of the EL4J base class. Thus, it is more efficient.

Author:
David Bernhard (DBD)
File-location:
KeyedVersionedEl4jImpl
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
KeyedVersionedEl4jImpl()
           
 
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

KeyedVersionedEl4jImpl

public KeyedVersionedEl4jImpl()
Method Detail

create

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

Specified by:
create in class AbstractWrapper
Throws:
ObjectWrapperRTException - If creation failed.

getKey

public Serializable getKey()

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

getKeyClass

public Class<?> getKeyClass()

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

getVersion

public Serializable getVersion()

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

getVersionClass

public Class<?> getVersionClass()

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

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.


Copyright © 2005-2011 ELCA. All Rights Reserved.