|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elca.el4j.util.objectwrapper.impl.AbstractWrapper
ch.elca.el4j.util.objectwrapper.impl.KeyedVersionedReflectionImpl
public class KeyedVersionedReflectionImpl
Implementation of KeyedVersioned that uses reflection on properties "key" and "version".
Field Summary |
---|
Fields inherited from class ch.elca.el4j.util.objectwrapper.impl.AbstractWrapper |
---|
m_target, m_wrapper |
Constructor Summary | |
---|---|
KeyedVersionedReflectionImpl()
Empty constructor which uses "key" and "version" as properties. |
|
KeyedVersionedReflectionImpl(String keyName,
String versionName)
Create the wrapper class providing property names for key and version. |
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 |
---|
public KeyedVersionedReflectionImpl()
public KeyedVersionedReflectionImpl(String keyName, String versionName)
keyName
- The key property name.versionName
- The version property name.Method Detail |
---|
public void create()
create
in class AbstractWrapper
public Serializable getKey()
getKey
in interface KeyedVersioned
public Serializable getVersion()
getVersion
in interface KeyedVersioned
public void setKey(Serializable key)
setKey
in interface KeyedVersioned
key
- The key to set.public void setVersion(Serializable version)
setVersion
in interface KeyedVersioned
version
- The version to set.public Class<?> getKeyClass()
getKeyClass
in interface KeyedVersioned
public Class<?> getVersionClass()
getVersionClass
in interface KeyedVersioned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |