|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.connector.IeConnectionFactory
CCI connection factory used to create connections to the underlying EIS (Info*Engine).
Also used to get instances of RecordFactory and ResourceAdapterMetaData
This object is referenceable and so can be stored in an LDAP directory for use
by applications in a "non-managed" scenario. The AdminTool supplied can be used
to bind and unbind references to this object in the LDAP directory.
Field Summary | |
private IeConnectionRequestInfo |
cxInfo
|
private javax.resource.spi.ConnectionManager |
cxManager
|
private Log |
log
|
private IeManagedConnectionFactory |
managedCxFactory
|
private boolean |
managedScenario
|
private Reference |
reference
|
Constructor Summary | |
|
IeConnectionFactory()
used when object reconstructed from JNDI lookup gets a default ManagedConnectionFactory and ConnectionManager instance |
(package private) |
IeConnectionFactory(IeManagedConnectionFactory factory,
javax.resource.spi.ConnectionManager manager,
IeConnectionRequestInfo rqInfo,
Log l)
constructor used in a managed scenario in this case the ConnectionManager is provided by the j2ee container (application server) |
Method Summary | |
javax.resource.cci.Connection |
getConnection()
get a new CCI Connection |
javax.resource.cci.Connection |
getConnection(javax.resource.cci.ConnectionSpec properties)
get a new CCI Connection using specific properties |
javax.resource.cci.ResourceAdapterMetaData |
getMetaData()
get metadata about this resource adapter |
javax.resource.cci.RecordFactory |
getRecordFactory()
get an instance of the default RecordFactory |
Reference |
getReference()
build a JNDI reference that reflects this IeConnectionFactory's properties |
void |
setLogLevel(int level)
In an unmanaged scenario there is no way to condition LogLevel. |
void |
setReference(Reference reference)
configure this IeConnection factory based on JNDI stored properties |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private IeConnectionRequestInfo cxInfo
private javax.resource.spi.ConnectionManager cxManager
private IeManagedConnectionFactory managedCxFactory
private Reference reference
private boolean managedScenario
private Log log
Constructor Detail |
public IeConnectionFactory()
IeManagedConnectionFactory
,
IeConnectionManager
IeConnectionFactory(IeManagedConnectionFactory factory, javax.resource.spi.ConnectionManager manager, IeConnectionRequestInfo rqInfo, Log l) throws javax.resource.ResourceException
factory
- the IeManagedConnectionFactorymanager
- the ConnectionManager (from the app server)rqInfo
- the connection request info objectl
- Log
javax.resource.ResourceException
IeManagedConnectionFactory
,
IeConnectionRequestInfo
Method Detail |
public javax.resource.cci.Connection getConnection() throws javax.resource.ResourceException
getConnection
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
public javax.resource.cci.Connection getConnection(javax.resource.cci.ConnectionSpec properties) throws javax.resource.ResourceException
getConnection
in interface javax.resource.cci.ConnectionFactory
properties
- connection properties
javax.resource.ResourceException
IeConnectionSpec
public javax.resource.cci.ResourceAdapterMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
public javax.resource.cci.RecordFactory getRecordFactory() throws javax.resource.ResourceException
getRecordFactory
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
IeRecordFactory
public void setReference(Reference reference)
setReference
in interface javax.resource.Referenceable
reference
- the JNDI referencepublic Reference getReference()
getReference
in interface Referenceable
public void setLogLevel(int level)
level
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |