|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bankframe.ei.txnhandler.connector.offline.OffLineConnectionFactory
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 | |
OffLineConnectionFactory()
OffLineConnectionFactory constructor. |
|
OffLineConnectionFactory(EManagedConnectionFactory mcf)
OffLineHostConnectionFactory constructor. |
|
OffLineConnectionFactory(EManagedConnectionFactory mcf,
EConnectionManager cm)
OffLineHostConnectionFactory constructor. |
Method Summary | |
EConnection |
getConnection()
This method gets a connection handle to the OffLine database. |
EConnection |
getConnection(java.lang.String properties)
This method gets a connection handle to the OffLine database, 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 ref)
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 OffLineConnectionFactory()
public OffLineConnectionFactory(EManagedConnectionFactory mcf)
mcf
- An instance of a EManagedConnectionFactory to be associated with this Factory.public OffLineConnectionFactory(EManagedConnectionFactory mcf, EConnectionManager cm)
mcf
- An instance of a EManagedConnectionFactory to be associated with this Factory.cm
- 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 properties)
getConnection
in interface EConnectionFactory
properties
- A semi-colon delimited String of properties for the desired connection.
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface EConnectionFactory
javax.naming.NamingException
public void setReference(javax.naming.Reference ref)
setReference
in interface EConnectionFactory
ref
- The Reference object to be set for this class.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |