|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.ei.txnhandler.connector.jdbcconnector.JDBCConnectionFactory
This class provides a means for an application to obtain a connection to a host system. The Connector's connection factory can be looked up in the JNDI namespace of the application server that it was deployed to. The application then uses the getConnection method to obtain an instance of the corresponding EConnection class.
Constructor Summary | |
JDBCConnectionFactory()
JDBCConnectionFactory constructor with no argument. |
|
JDBCConnectionFactory(JDBCManagedConnectionFactory jdbcmanagedconnectionfactory)
JDBCConnectionFactory constructor with argument JDBCManagedConnectionFactory. |
|
JDBCConnectionFactory(JDBCManagedConnectionFactory jdbcmanagedconnectionfactory,
EConnectionManager econnectionmanager)
JDBCConnectionFactory constructor with argument JDBCManagedConnectionFactory. |
Method Summary | |
EConnection |
getConnection()
This method gets a connection handle to JDBC. |
EConnection |
getConnection(java.lang.String s)
This method gets a connection handle to JDBC, by matching or creating a new connection to the parameters specified in the String of properties passed in. |
javax.naming.Reference |
getReference()
This method gets the Reference instance. |
void |
setReference(javax.naming.Reference reference1)
This method sets the Reference instance. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JDBCConnectionFactory()
public JDBCConnectionFactory(JDBCManagedConnectionFactory jdbcmanagedconnectionfactory)
jdbcmanagedconnectionfactory
- An instance of a EManagedConnectionFactory to be associated with this Factory.public JDBCConnectionFactory(JDBCManagedConnectionFactory jdbcmanagedconnectionfactory, EConnectionManager econnectionmanager)
jdbcmanagedconnectionfactory
- An instance of a EManagedConnectionFactory to be associated with this Factory.econnectionmanager
- An instance of an EConnectionManager to be associated with this Factory.Method Detail |
public EConnection getConnection()
getConnection
in interface EConnectionFactory
public EConnection getConnection(java.lang.String s)
getConnection
in interface EConnectionFactory
s
- A semi-colon delimited String of connection specific properties.
For example: user=jbloggs;password=eontec;paramX=valueX;
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface EConnectionFactory
javax.naming.NamingException
public void setReference(javax.naming.Reference reference1)
setReference
in interface EConnectionFactory
reference1
- A Reference instance
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |