Package org.teiid.resource.spi
Class BasicConnectionFactory<T extends ResourceConnection>
- java.lang.Object
-
- org.teiid.resource.spi.BasicConnectionFactory<T>
-
- All Implemented Interfaces:
Serializable
,Referenceable
,javax.resource.cci.ConnectionFactory
,javax.resource.Referenceable
,ConnectionFactory<T>
- Direct Known Subclasses:
SolrConnectionFactory
public abstract class BasicConnectionFactory<T extends ResourceConnection> extends Object implements javax.resource.cci.ConnectionFactory, ConnectionFactory<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BasicConnectionFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
getConnection()
ResourceConnection
getConnection(javax.resource.cci.ConnectionSpec arg0)
javax.resource.cci.ResourceAdapterMetaData
getMetaData()
javax.resource.cci.RecordFactory
getRecordFactory()
Reference
getReference()
void
setReference(Reference arg0)
-
-
-
Method Detail
-
getConnection
public abstract T getConnection() throws javax.resource.ResourceException
- Specified by:
getConnection
in interfacejavax.resource.cci.ConnectionFactory
- Specified by:
getConnection
in interfaceConnectionFactory<T extends ResourceConnection>
- Throws:
javax.resource.ResourceException
-
getConnection
public ResourceConnection getConnection(javax.resource.cci.ConnectionSpec arg0) throws javax.resource.ResourceException
- Specified by:
getConnection
in interfacejavax.resource.cci.ConnectionFactory
- Throws:
javax.resource.ResourceException
-
getMetaData
public javax.resource.cci.ResourceAdapterMetaData getMetaData() throws javax.resource.ResourceException
- Specified by:
getMetaData
in interfacejavax.resource.cci.ConnectionFactory
- Throws:
javax.resource.ResourceException
-
getRecordFactory
public javax.resource.cci.RecordFactory getRecordFactory() throws javax.resource.ResourceException
- Specified by:
getRecordFactory
in interfacejavax.resource.cci.ConnectionFactory
- Throws:
javax.resource.ResourceException
-
setReference
public void setReference(Reference arg0)
- Specified by:
setReference
in interfacejavax.resource.Referenceable
-
getReference
public Reference getReference() throws NamingException
- Specified by:
getReference
in interfaceReferenceable
- Throws:
NamingException
-
-