Package org.synchronoss.cpo.core
Interface CpoAdapterFactory
public interface CpoAdapterFactory
Creates
CpoAdapter instances (plain, transactional, or XA) for a single named data source
configuration.
Implementations are obtained from CpoAdapterFactoryManager by config name; each
factory is bound to one dataConfig entry from cpoConfig.xml.
- Author:
- dberry
-
Method Summary
Modifier and TypeMethodDescriptionGets aCpoAdapterthat manages its own connections per call (no explicit transaction control).Gets aCpoTrxAdapterpinned to a single connection/session for explicit transaction control (commit/rollback/close).Gets aCpoXaResourcethat participates in a JTA-managed distributed transaction.
-
Method Details
-
getCpoAdapter
Gets aCpoAdapterthat manages its own connections per call (no explicit transaction control).- Returns:
- a usable
CpoAdapter - Throws:
CpoException- if the adapter cannot be created
-
getCpoTrxAdapter
Gets aCpoTrxAdapterpinned to a single connection/session for explicit transaction control (commit/rollback/close).- Returns:
- a usable
CpoTrxAdapter - Throws:
CpoException- if the adapter cannot be created
-
getCpoXaAdapter
Gets aCpoXaResourcethat participates in a JTA-managed distributed transaction.- Returns:
- a usable
CpoXaResource - Throws:
CpoException- if the resource cannot be created
-