|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.orm.hibernate3.support.HibernateDaoSupport net.sf.xsnapshot.hibernate3.IdToEntityTransformer
Field Summary |
Fields inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
logger |
Constructor Summary | |
IdToEntityTransformer()
|
Method Summary | |
Object |
transform(Class returnClass,
Object objectToTransform,
TransformerArgs args,
TransformContext context)
Perform the transformation defined by this on the given input object and return the resulting object |
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IdToEntityTransformer()
Method Detail |
public Object transform(Class returnClass, Object objectToTransform, TransformerArgs args, TransformContext context)
Transformer
transform
in interface Transformer
returnClass
- the class of the object that should be returned
by this method. If not null, returned object must be an instance of this class,
ie returnObject instanceof returnClass must be true.
May be null, in which case the converter is not constrained
in the class of the object it returns. Implementations may impose more
restrictive semantics on this parameter.objectToTransform
- the object that should be transformed. If the
original property to which the transormation is being applied
was primitive-valued, then this will be the java.lang equivalent of
the primitive value.args
- the arguments for transformation. these come from the
{model,snapshot}-converter-arg-{1-9} attributes. For each arg, if the
value is null, then no arg at that index was specified. It is up to
to implementations to impose more precise semantics on this parameter.context
- the TransformContext for the overall transformation in progress
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |