|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.connector2.hod.J2HODConnectionFactory
This is an application level handle to the Managed Connection Factory, returned from the JNDI lookup, and used to obtain connections. Subject to change once J2EE/CA specification includes Common Client Interfaces
Constructor Summary | |
J2HODConnectionFactory()
Create an instance of J2HODConnection Factory. |
|
J2HODConnectionFactory(javax.resource.spi.ConnectionManager aConnectionManager)
Creates an instance of J2HODConnectionFactory and assigns a connectionManager. |
Method Summary | |
javax.resource.cci.Connection |
getConnection()
Gets a connection to an EIS instance. |
javax.resource.cci.Connection |
getConnection(javax.resource.cci.ConnectionSpec aConnectionSpec)
Gets a connection to an EIS instance. |
java.io.PrintWriter |
getLogWriter()
Gets the log writer for the ConnectionFactory instance. |
javax.resource.spi.ManagedConnectionFactory |
getManagedConnectionFactory()
Gets a ManagedConnectionFactory. |
javax.resource.cci.ResourceAdapterMetaData |
getMetaData()
Gets metadata for the Resource Adapter. |
javax.resource.cci.RecordFactory |
getRecordFactory()
This method is not supported. |
javax.naming.Reference |
getReference()
Gets a naming reference. |
int |
getTimeout()
This method is not supported. |
void |
setLogWriter(java.io.PrintWriter out)
This method is not supported. |
void |
setReference(javax.naming.Reference ref)
Sets naming reference. |
void |
setTimeout(int milliseconds)
This method is not supported. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public J2HODConnectionFactory()
public J2HODConnectionFactory(javax.resource.spi.ConnectionManager aConnectionManager)
aConnectionManager
- javax.resource.spi.ConnectionManager - A connection managerMethod Detail |
public javax.resource.cci.Connection getConnection() throws javax.resource.ResourceException
getConnection
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
- - Failed to get the information for the EIS instancepublic javax.resource.cci.Connection getConnection(javax.resource.cci.ConnectionSpec aConnectionSpec) throws javax.resource.ResourceException
A client should use java.util.Map to pass resource adapter specific security information and connection parameters.
The connector architecture defines a set of standard properties - ServerName, PortNumber, UserName, Password, ConnectionURL - that can be passed to the getConnection method. In addition, a resource adapter can define additional properties specific to its underlying EIS.
getConnection
in interface javax.resource.cci.ConnectionFactory
properties
- - connection parameters and security information specified as mapjavax.resource.ResourceException
- - Failed to get a connection to the EIS instancepublic java.io.PrintWriter getLogWriter() throws javax.resource.ResourceException
The log writer is a character output stream to which all logging and tracing messages for this connection factory instance will be printed. When a ConnectionFactory object is created the log writer is initially null, meaning that logging is disabled.
getLogWriter
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
- - Failed to get the log writer for the ConnectionFactorypublic javax.resource.spi.ManagedConnectionFactory getManagedConnectionFactory()
public javax.resource.cci.ResourceAdapterMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
- - Failed to get information about the resource adapter.public javax.resource.cci.RecordFactory getRecordFactory() throws javax.resource.NotSupportedException
getRecordFactory
in interface javax.resource.cci.ConnectionFactory
javax.resource.NotSupportedException
- - Method not supportedpublic javax.naming.Reference getReference()
getReference
in interface javax.naming.Referenceable
public int getTimeout() throws javax.resource.ResourceException
getTimeout
in interface javax.resource.cci.ConnectionFactory
javax.resource.NotSupportedException
- - Method not supportedpublic void setLogWriter(java.io.PrintWriter out) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.cci.ConnectionFactory
javax.resource.NotSupportedException
- - Method not supportedpublic void setReference(javax.naming.Reference ref)
setReference
in interface javax.resource.Referenceable
ref
- javax.naming.Referencepublic void setTimeout(int milliseconds) throws javax.resource.ResourceException
setTimeout
in interface javax.resource.cci.ConnectionFactory
javax.resource.NotSupportedException
- - Method not supported
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |