javax.resource.cci
Interface ConnectionFactory

All Superinterfaces:
javax.naming.Referenceable, java.io.Serializable

public interface ConnectionFactory
extends java.io.Serializable, Referenceable

Creates application connection objects. Generally the ConnectionFactory will be stored in JNDI.


Method Summary
 Connection getConnection()
          Returns an application connection.
 Connection getConnection(ConnectionSpec properties)
          Gets a connection with given properties.
 ResourceAdapterMetaData getMetaData()
          Returns the metadata for the resource adapter.
 RecordFactory getRecordFactory()
          Return a RecordFactory which creates generic Record instances.
 
Methods inherited from interface javax.resource.Referenceable
setReference
 
Methods inherited from interface javax.naming.Referenceable
getReference
 

Method Detail

getConnection

Connection getConnection()
                         throws ResourceException
Returns an application connection.

Returns:
the application's connection facade
Throws:
ResourceException

getConnection

Connection getConnection(ConnectionSpec properties)
                         throws ResourceException
Gets a connection with given properties.

Parameters:
properties - the properties of the connection
Throws:
ResourceException

getRecordFactory

RecordFactory getRecordFactory()
                               throws ResourceException
Return a RecordFactory which creates generic Record instances.

Throws:
ResourceException

getMetaData

ResourceAdapterMetaData getMetaData()
                                    throws ResourceException
Returns the metadata for the resource adapter.

Throws:
ResourceException