|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.subshell.persistence.mapper.TransactionPersistenceMapperFactory
public class TransactionPersistenceMapperFactory
Persistence mapper factory implementation which provides persistence mappers with
Transactions.
The PersistenceMapperConfiguration specified in the constructor call to this class must contain subclasses of TransactionPersistenceMapper.
| Constructor Summary | |
|---|---|
TransactionPersistenceMapperFactory(PersistenceMapperConfiguration configuration,
TransactionFactory transactionFactory)
Creates a new transaction persistence mapper factory. |
|
| Method Summary | ||
|---|---|---|
|
getMapper(Class<T> clazz)
Returns the persistence mapper for objects of class clazz. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionPersistenceMapperFactory(PersistenceMapperConfiguration configuration,
TransactionFactory transactionFactory)
configuration - persistence mapper configuration. This configuration must
contain subclasses of TransactionPersistenceMapper only.transactionFactory - factory providing transactions| Method Detail |
|---|
public <T> PersistenceMapper<T> getMapper(Class<T> clazz)
PersistenceMapperFactoryReturns the persistence mapper for objects of class clazz.
Note: It is highly recommended that clients cache the returned persistence mapper for as long as the transaction is active.
The persistence mapper must not be used across transaction boundaries. That is, a persistence mapper must not be used during a different transaction than the one during which it was created.
getMapper in interface PersistenceMapperFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||