| java.lang.Object org.apache.ojb.broker.core.PersistenceBrokerThreadMapping
PersistenceBrokerThreadMapping | public class PersistenceBrokerThreadMapping (Code) | | Helper class that tracks correspondence between PersistenceBroker instances
and threads. The main task that this class solves is: to get current
PersistenceBroker for the given thread. For internal use only.
author: Oleg Nitz version: $Id: PersistenceBrokerThreadMapping.java,v 1.6.2.3 2005/12/21 22:25:01 tomdz Exp $ |
setCurrentPersistenceBroker | public static void setCurrentPersistenceBroker(PBKey key, PersistenceBrokerInternal broker) throws PBFactoryException(Code) | | Mark a PersistenceBroker as preferred choice for current Thread
Parameters: key - The PBKey the broker is associated to Parameters: broker - The PersistenceBroker to mark as current |
shutdown | public static void shutdown()(Code) | | Clean up static fields and any registered ThreadLocal contents to grant a clean
shutdown/reload of OJB within re/hot-deployable applications.
|
unsetCurrentPersistenceBroker | public static void unsetCurrentPersistenceBroker(PBKey key, PersistenceBrokerInternal broker) throws PBFactoryException(Code) | | Unmark a PersistenceBroker as preferred choice for current Thread
Parameters: key - The PBKey the broker is associated to Parameters: broker - The PersistenceBroker to unmark |
|
|