org.tranql.ejb
Class MultiValuedCMRAccessor
java.lang.Object
org.tranql.ejb.MultiValuedCMRAccessor
- All Implemented Interfaces:
- CMPFieldTransform, java.io.Serializable, javax.transaction.Synchronization
- public final class MultiValuedCMRAccessor
- extends java.lang.Object
- implements CMPFieldTransform, javax.transaction.Synchronization
An accessor for multi-valued cmr-fields which behaves according to the EJB spec.
Specifically, the accessor always returns the same instance for each invocation
within a transaction and returns a different instance for different transactions.
A snapshot of the collection content is made at the end of the transaction allowing
read operations to be performed outside a transaction context.
- Version:
- $Revision: 1.8 $ $Date: 2004/04/19 22:23:20 $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiValuedCMRAccessor
public MultiValuedCMRAccessor(CMPFieldTransform next,
javax.transaction.TransactionManager txManager,
IdentityTransform idTransform,
java.lang.Class proxyClass)
get
public java.lang.Object get(InTxCache cache,
CacheRow row)
- Specified by:
get
in interface CMPFieldTransform
set
public void set(InTxCache cache,
CacheRow row,
java.lang.Object value)
- Specified by:
set
in interface CMPFieldTransform
beforeCompletion
public void beforeCompletion()
- Specified by:
beforeCompletion
in interface javax.transaction.Synchronization
afterCompletion
public void afterCompletion(int status)
- Specified by:
afterCompletion
in interface javax.transaction.Synchronization
Copyright © -2005 The Codehaus. All Rights Reserved.