Cumulus4j API
(1.0.0)

org.cumulus4j.store
Class Cumulus4jConnectionFactory

java.lang.Object
  extended by org.datanucleus.store.connection.AbstractConnectionFactory
      extended by org.cumulus4j.store.Cumulus4jConnectionFactory
All Implemented Interfaces:
ConnectionFactory

public class Cumulus4jConnectionFactory
extends AbstractConnectionFactory

Connection factory implementation for Cumulus4j-connections.

A "connection" in Cumulus4J is a PersistenceManager for the backing datastore. When the transaction in Cumulus4J is committed, the equivalent transaction is committed in the PM(s) of the backing datastore(s).

How to configure a connection factory is documented on Persistence API.

Author:
Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de

Field Summary
 
Fields inherited from class org.datanucleus.store.connection.AbstractConnectionFactory
options, resourceType, storeMgr
 
Fields inherited from interface org.datanucleus.store.connection.ConnectionFactory
DATANUCLEUS_CONNECTION_RESOURCE_TYPE, DATANUCLEUS_CONNECTION2_RESOURCE_TYPE, RESOURCE_TYPE_OPTION
 
Constructor Summary
Cumulus4jConnectionFactory(StoreManager storeMgr, String resourceType)
           
 
Method Summary
 ManagedConnection createManagedConnection(Object poolKey, Map transactionOptions)
           
 PersistenceManagerFactory getPMFData()
           
 PersistenceManagerFactory getPMFIndex()
           
 
Methods inherited from class org.datanucleus.store.connection.AbstractConnectionFactory
close, getConnection, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cumulus4jConnectionFactory

public Cumulus4jConnectionFactory(StoreManager storeMgr,
                                  String resourceType)
Method Detail

getPMFData

public PersistenceManagerFactory getPMFData()

getPMFIndex

public PersistenceManagerFactory getPMFIndex()

createManagedConnection

public ManagedConnection createManagedConnection(Object poolKey,
                                                 Map transactionOptions)

Cumulus4j API
(1.0.0)

Copyright © 2012 NightLabs Consulting GmbH. All Rights Reserved.