org.apache.ode.dao.jpa
Class BPELDAOConnectionFactoryImpl

java.lang.Object
  extended by org.apache.ode.dao.jpa.BPELDAOConnectionFactoryImpl
All Implemented Interfaces:
BpelDAOConnectionFactory, BpelDAOConnectionFactoryJDBC

public class BPELDAOConnectionFactoryImpl
extends java.lang.Object
implements BpelDAOConnectionFactoryJDBC

Author:
Matthieu Riou

Field Summary
protected  javax.persistence.EntityManagerFactory _emf
           
 
Constructor Summary
BPELDAOConnectionFactoryImpl()
           
 
Method Summary
protected  BPELDAOConnectionImpl createBPELDAOConnection(javax.persistence.EntityManager em)
           
 BpelDAOConnection getConnection()
           
 javax.sql.DataSource getDataSource()
           
static java.sql.Connection getExistingJDBCConnection()
           
 void init(java.util.Properties properties)
           
 void setDataSource(javax.sql.DataSource datasource)
           
 void setDBDictionary(java.lang.String dbd)
           
 void setTransactionManager(java.lang.Object tm)
           
 void setTransactionManager(javax.transaction.TransactionManager tm)
           
 void setUnmanagedDataSource(javax.sql.DataSource ds)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_emf

protected javax.persistence.EntityManagerFactory _emf
Constructor Detail

BPELDAOConnectionFactoryImpl

public BPELDAOConnectionFactoryImpl()
Method Detail

getExistingJDBCConnection

public static java.sql.Connection getExistingJDBCConnection()
See Also:
http://openjpa.apache.org/builds/2.2.1/apache-openjpa/docs/ref_guide_dbsetup_sqlconn.html.

getConnection

public BpelDAOConnection getConnection()
Specified by:
getConnection in interface BpelDAOConnectionFactory

createBPELDAOConnection

protected BPELDAOConnectionImpl createBPELDAOConnection(javax.persistence.EntityManager em)

init

public void init(java.util.Properties properties)
Specified by:
init in interface BpelDAOConnectionFactory

setTransactionManager

public void setTransactionManager(javax.transaction.TransactionManager tm)

setDataSource

public void setDataSource(javax.sql.DataSource datasource)
Specified by:
setDataSource in interface BpelDAOConnectionFactoryJDBC

setDBDictionary

public void setDBDictionary(java.lang.String dbd)

setTransactionManager

public void setTransactionManager(java.lang.Object tm)
Specified by:
setTransactionManager in interface BpelDAOConnectionFactoryJDBC

setUnmanagedDataSource

public void setUnmanagedDataSource(javax.sql.DataSource ds)
Specified by:
setUnmanagedDataSource in interface BpelDAOConnectionFactoryJDBC

shutdown

public void shutdown()
Specified by:
shutdown in interface BpelDAOConnectionFactory

getDataSource

public javax.sql.DataSource getDataSource()
Specified by:
getDataSource in interface BpelDAOConnectionFactory


Copyright © 2015 WSO2. All Rights Reserved.