|
VistALink v1.5.0.026 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.va.med.vistalink.adapter.cci.VistaLinkConnectionFactory
This implementation class provides an interface for getting connection to an EIS instance. For each type of adapter derived from this class, it should overide/implement getConnection() to achieve adapter-specific connection.
Constructor Summary | |
VistaLinkConnectionFactory(gov.va.med.vistalink.adapter.spi.VistaLinkManagedConnectionFactory managedFactory,
javax.resource.spi.ConnectionManager connectionManager)
|
Method Summary | |
javax.resource.cci.Connection |
getConnection()
Gets a VistaLinkConnection connection handle; calls allocateConnection() |
javax.resource.cci.Connection |
getConnection(javax.resource.cci.ConnectionSpec connectionSpec)
Gets a VistaLinkConnection handle with the connectionspec Empty method. |
java.io.PrintWriter |
getLogWriter()
|
void |
getMCFInfo(gov.va.med.vistalink.adapter.spi.ConnectorInfoVO connectorInfoVO,
boolean getDetailInfo)
Populate a ConnectorInfoVO object with information from the stored VistaLinkManagedConnectionFactory instance. |
javax.resource.cci.ResourceAdapterMetaData |
getMetaData()
Returns the meta data information associated with this adapter. |
javax.resource.cci.RecordFactory |
getRecordFactory()
Empty method. |
javax.naming.Reference |
getReference()
Referenceable interface. |
static VistaLinkConnectionFactory |
getVistaLinkConnectionFactory(java.lang.String hostIPAddress,
java.lang.Integer hostPort)
Creates VistaLinkConnectionFactory to be used in non-managed environment (J2SE). |
void |
setLogWriter(java.io.PrintWriter printWriter)
|
void |
setReference(javax.naming.Reference reference)
Referenceable interface. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VistaLinkConnectionFactory(gov.va.med.vistalink.adapter.spi.VistaLinkManagedConnectionFactory managedFactory, javax.resource.spi.ConnectionManager connectionManager)
managedFactory
- the factory that the connection manager will use to construct managed connectionsconnectionManager
- the connection manager that will allocate new VistaLinkConnections. This value is null in an unmanaged
environment and defaults to VistaLinkConnectionManager this value is specified by the application
server in a managed environmentThis constructor, method or field is not for public use. |
Method Detail |
public java.io.PrintWriter getLogWriter() throws javax.resource.ResourceException
javax.resource.ResourceException
public void setLogWriter(java.io.PrintWriter printWriter) throws javax.resource.ResourceException
printWriter
-
javax.resource.ResourceException
This constructor, method or field is not for public use. |
public javax.resource.cci.ResourceAdapterMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
ConnectionFactory.getMetaData()
This constructor, method or field is not for public use. |
public javax.naming.Reference getReference()
getReference
in interface javax.naming.Referenceable
Referenceable.getReference()
This constructor, method or field is not for public use. |
public void setReference(javax.naming.Reference reference)
setReference
in interface javax.resource.Referenceable
Referenceable.setReference(javax.naming.Reference)
This constructor, method or field is not for public use. |
public javax.resource.cci.Connection getConnection(javax.resource.cci.ConnectionSpec connectionSpec) throws javax.resource.ResourceException
getConnection
in interface javax.resource.cci.ConnectionFactory
javax.resource.NotSupportedException
javax.resource.ResourceException
ConnectionFactory.getConnection(javax.resource.cci.ConnectionSpec)
public javax.resource.cci.Connection getConnection() throws javax.resource.ResourceException
getConnection
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
ConnectionFactory.getConnection()
public javax.resource.cci.RecordFactory getRecordFactory() throws javax.resource.ResourceException
getRecordFactory
in interface javax.resource.cci.ConnectionFactory
javax.resource.NotSupportedException
javax.resource.ResourceException
ConnectionFactory.getRecordFactory()
This constructor, method or field is not for public use. |
public static final VistaLinkConnectionFactory getVistaLinkConnectionFactory(java.lang.String hostIPAddress, java.lang.Integer hostPort) throws javax.resource.ResourceException
This method should never be called in managed environment (J2EE) as application server is responsible for creating ConnectionFactories.
Client code in that case uses JNDI lookup to get a reference to the ConnectionFactory.
hostIPAddress
- -
the IP address to connect tohostPort
- -
the port to open
javax.resource.ResourceException
public void getMCFInfo(gov.va.med.vistalink.adapter.spi.ConnectorInfoVO connectorInfoVO, boolean getDetailInfo)
connectorInfoVO
- This constructor, method or field is not for public use. |
|
VistALink v1.5.0.026 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |