to.etc.domui.converter
Class CompoundKeyConverter
java.lang.Object
to.etc.domui.converter.CompoundKeyConverter
public class CompoundKeyConverter
- extends java.lang.Object
URL Converter class which converts a (compound) primary key into a string and v.v.
The converter will follow object references on each (embedded) object in the key until
it reaches a renderable value for a property; these are added by walking the object tree
by following all properties in alphabetic order.
- Author:
- Frits Jalvingh
Created on Apr 15, 2010
Method Summary |
java.lang.String |
marshal(java.lang.Object in)
Marshalling a PK object into a string. |
java.lang.Object |
unmarshal(QDataContext dc,
java.lang.Class<?> pkclass,
java.lang.String in)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final CompoundKeyConverter INSTANCE
CompoundKeyConverter
public CompoundKeyConverter()
unmarshal
public java.lang.Object unmarshal(QDataContext dc,
java.lang.Class<?> pkclass,
java.lang.String in)
throws java.lang.Exception
- Parameters:
pkclass
- in
-
- Returns:
-
- Throws:
UIException
java.lang.Exception
marshal
public java.lang.String marshal(java.lang.Object in)
throws java.lang.Exception
- Marshalling a PK object into a string.
- Parameters:
in
-
- Returns:
-
- Throws:
UIException
java.lang.Exception