| 
||||||||||
| 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 AbstractWrapperpublic Serializable getKey()
getKey in interface KeyedVersionedpublic Serializable getVersion()
getVersion in interface KeyedVersionedpublic void setKey(Serializable key)
setKey in interface KeyedVersionedkey - The key to set.public void setVersion(Serializable version)
setVersion in interface KeyedVersionedversion - The version to set.public Class<?> getKeyClass()
getKeyClass in interface KeyedVersionedpublic Class<?> getVersionClass()
getVersionClass in interface KeyedVersioned
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||