org.tranql.ejb
Class IdAsEJBLocalObjectTransform

java.lang.Object
  extended by org.tranql.ejb.IdAsEJBLocalObjectTransform
All Implemented Interfaces:
java.io.Serializable, FieldTransform

public class IdAsEJBLocalObjectTransform
extends java.lang.Object
implements FieldTransform

Field transform that converts a primary key into a EJBLocalObject.

Version:
$Revision: 57 $ $Date: 2004-04-21 23:45:17 +0200 (Wed, 21 Apr 2004) $
See Also:
Serialized Form

Constructor Summary
IdAsEJBLocalObjectTransform(FieldTransform next, EJBProxyFactory factory, java.lang.Class pkClass)
           
 
Method Summary
 java.lang.Object get(Row row)
          Return a value from the cache
 java.lang.Class getFieldClass()
          Return the Java Class that will be returned by fetch and that should be passed to set.
 void set(Row row, java.lang.Object value)
          Set a value into the cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdAsEJBLocalObjectTransform

public IdAsEJBLocalObjectTransform(FieldTransform next,
                                   EJBProxyFactory factory,
                                   java.lang.Class pkClass)
Method Detail

getFieldClass

public java.lang.Class getFieldClass()
Description copied from interface: FieldTransform
Return the Java Class that will be returned by fetch and that should be passed to set.

Specified by:
getFieldClass in interface FieldTransform
Returns:
the Java Class for this field

get

public java.lang.Object get(Row row)
                     throws FieldTransformException
Description copied from interface: FieldTransform
Return a value from the cache

Specified by:
get in interface FieldTransform
Parameters:
row - the row to fetch from
Returns:
the transformed value
Throws:
FieldTransformException

set

public void set(Row row,
                java.lang.Object value)
         throws FieldTransformException
Description copied from interface: FieldTransform
Set a value into the cache

Specified by:
set in interface FieldTransform
Parameters:
row - the row to store the value into
value - the value to be transformed
Throws:
FieldTransformException


Copyright © -2010 The Codehaus. All Rights Reserved.