org.tranql.ejb
Class CompoundPKTransform

java.lang.Object
  extended byorg.tranql.ejb.CompoundPKTransform
All Implemented Interfaces:
IdentityTransform, java.io.Serializable

public class CompoundPKTransform
extends java.lang.Object
implements IdentityTransform

Identity transform that will return an new instance of the EJB primary key for a cache row. The PK instance is instantiated and initialized using reflection.

Version:
$Revision: 127 $ $Date: 2004-10-15 03:52:57 +0200 (Fri, 15 Oct 2004) $
See Also:
Serialized Form

Constructor Summary
CompoundPKTransform(CacheTable table, java.lang.Class pkClass, java.util.List fieldNames)
           
 
Method Summary
 java.lang.Object getDomainIdentity(GlobalIdentity globalId)
           
 GlobalIdentity getGlobalIdentity(java.lang.Object domainId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundPKTransform

public CompoundPKTransform(CacheTable table,
                           java.lang.Class pkClass,
                           java.util.List fieldNames)
Method Detail

getGlobalIdentity

public GlobalIdentity getGlobalIdentity(java.lang.Object domainId)
                                 throws IdentityTransformException
Specified by:
getGlobalIdentity in interface IdentityTransform
Throws:
IdentityTransformException

getDomainIdentity

public java.lang.Object getDomainIdentity(GlobalIdentity globalId)
                                   throws IdentityTransformException
Specified by:
getDomainIdentity in interface IdentityTransform
Throws:
IdentityTransformException


Copyright © -2006 The Codehaus. All Rights Reserved.