com.subshell.persistence.mapper
Interface PersistenceMapperFactory

All Known Implementing Classes:
TransactionContextPersistenceMapperFactory, TransactionPersistenceMapperFactory

public interface PersistenceMapperFactory

Creates persistence mapper instances.

Note: Implementors must be thread-safe!


Method Summary
<T> PersistenceMapper<T>
getMapper(Class<T> clazz)
          Returns the persistence mapper for objects of class clazz.
 

Method Detail

getMapper

<T> PersistenceMapper<T> getMapper(Class<T> clazz)

Returns 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.

Throws:
InitializationException - when there is an error


Copyright © 2004-2005 subshell GmbH. All Rights Reserved.