public class SampleConnectionFactory
extends java.lang.Object
implements javax.resource.cci.ConnectionFactory, java.io.Serializable, javax.resource.Referenceable
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
Copyright statement.
|
Constructor and Description |
---|
SampleConnectionFactory(javax.resource.spi.ConnectionManager cm, javax.resource.spi.ManagedConnectionFactory mcf)
The class constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.resource.cci.Connection | getConnection()
This method gets a connection allocated by the connection manager.
|
javax.resource.cci.Connection | getConnection(javax.resource.cci.ConnectionSpec cSpec)
This method gets the connection allocated by connection manager.
|
javax.resource.cci.ResourceAdapterMetaData | getMetaData()
This method gets the connection metadata.
|
javax.resource.cci.RecordFactory | getRecordFactory()
This method gets the record factory.
|
javax.naming.Reference | getReference()
This method gets the reference of this class.
|
void | setReference(javax.naming.Reference reference)
This method sets the class field reference to the one provided.
|
public static final java.lang.String COPYRIGHT
public SampleConnectionFactory(javax.resource.spi.ConnectionManager cm, javax.resource.spi.ManagedConnectionFactory mcf)
public javax.resource.cci.Connection getConnection() throws javax.resource.ResourceException
public javax.resource.cci.Connection getConnection(javax.resource.cci.ConnectionSpec cSpec) throws javax.resource.ResourceException
public javax.resource.cci.ResourceAdapterMetaData getMetaData() throws javax.resource.ResourceException
public javax.resource.cci.RecordFactory getRecordFactory() throws javax.resource.ResourceException
public void setReference(javax.naming.Reference reference)
public javax.naming.Reference getReference()