|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionFactory
ConnectionFactory provides an interface for getting connection to
an EIS instance. An implementation of ConnectionFactory interface
is provided by a resource adapter.
Application code looks up a ConnectionFactory instance from JNDI
namespace and uses it to get EIS connections.
An implementation class for ConnectionFactory is required to
implement java.io.Serializable and javax.resource.Referenceableinterfaces
to support JNDI registration.
| Method Summary | |
|---|---|
Connection |
getConnection()
Gets a connection to an EIS instance. |
Connection |
getConnection(ConnectionSpec properties)
Gets a connection to an EIS instance. |
ResourceAdapterMetaData |
getMetaData()
Gets metadata for the Resource Adapter. |
RecordFactory |
getRecordFactory()
Gets a RecordFactory instance. |
| Methods inherited from interface javax.resource.Referenceable |
|---|
setReference |
| Methods inherited from interface javax.naming.Referenceable |
|---|
getReference |
| Method Detail |
|---|
Connection getConnection()
throws ResourceException
ResourceException - Failed to get a connection to the EIS
instance. Examples of error cases are:
Connection getConnection(ConnectionSpec properties)
throws ResourceException
properties - Connection parameters and security information specified
as ConnectionSpec instance
ResourceException - Failed to get a connection to the EIS instance.
Examples of error cases are:
RecordFactory getRecordFactory()
throws ResourceException
ResourceException - Failed to create a RecordFactory
NotSupportedException - Operation not supported
ResourceAdapterMetaData getMetaData()
throws ResourceException
ResourceException - Failed to get metadata information about the
resource adapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||