Package org.teiid.resource.spi
Class BasicManagedConnectionFactory
- java.lang.Object
-
- org.teiid.resource.spi.BasicManagedConnectionFactory
-
- All Implemented Interfaces:
Serializable
,javax.resource.spi.ManagedConnectionFactory
,javax.resource.spi.ResourceAdapterAssociation
,javax.resource.spi.ValidatingManagedConnectionFactory
- Direct Known Subclasses:
AccumuloManagedConnectionFactory
,CassandraManagedConnectionFactory
,CouchbaseManagedConnectionFactory
,FileManagedConnectionFactory
,FtpManagedConnectionFactory
,HdfsManagedConnectionFactory
,InfinispanManagedConnectionFactory
,LDAPManagedConnectionFactory
,MongoDBManagedConnectionFactory
,S3ManagedConnectionFactory
,SalesForceManagedConnectionFactory
,SimpleDBManagedConnectionFactory
,SolrManagedConnectionFactory
,SpreadsheetManagedConnectionFactory
,WSManagedConnectionFactory
public abstract class BasicManagedConnectionFactory extends Object implements javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation, javax.resource.spi.ValidatingManagedConnectionFactory
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BasicManagedConnectionFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static boolean
checkEquals(Object left, Object right)
abstract BasicConnectionFactory
createConnectionFactory()
Object
createConnectionFactory(javax.resource.spi.ConnectionManager cm)
javax.resource.spi.ManagedConnection
createManagedConnection(Subject arg0, javax.resource.spi.ConnectionRequestInfo arg1)
static <T> T
getInstance(Class<T> expectedType, String className, Collection ctorObjs, Class defaultClass)
Set<BasicManagedConnection>
getInvalidConnections(Set arg0)
PrintWriter
getLogWriter()
javax.resource.spi.ResourceAdapter
getResourceAdapter()
javax.resource.spi.ManagedConnection
matchManagedConnections(Set arg0, Subject arg1, javax.resource.spi.ConnectionRequestInfo arg2)
void
setLogWriter(PrintWriter arg0)
void
setResourceAdapter(javax.resource.spi.ResourceAdapter arg0)
-
-
-
Method Detail
-
createConnectionFactory
public abstract BasicConnectionFactory createConnectionFactory() throws javax.resource.ResourceException
- Specified by:
createConnectionFactory
in interfacejavax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
-
createConnectionFactory
public Object createConnectionFactory(javax.resource.spi.ConnectionManager cm) throws javax.resource.ResourceException
- Specified by:
createConnectionFactory
in interfacejavax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
-
createManagedConnection
public javax.resource.spi.ManagedConnection createManagedConnection(Subject arg0, javax.resource.spi.ConnectionRequestInfo arg1) throws javax.resource.ResourceException
- Specified by:
createManagedConnection
in interfacejavax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
-
getLogWriter
public PrintWriter getLogWriter() throws javax.resource.ResourceException
- Specified by:
getLogWriter
in interfacejavax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
-
matchManagedConnections
public javax.resource.spi.ManagedConnection matchManagedConnections(Set arg0, Subject arg1, javax.resource.spi.ConnectionRequestInfo arg2) throws javax.resource.ResourceException
- Specified by:
matchManagedConnections
in interfacejavax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
-
setLogWriter
public void setLogWriter(PrintWriter arg0) throws javax.resource.ResourceException
- Specified by:
setLogWriter
in interfacejavax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
-
getResourceAdapter
public javax.resource.spi.ResourceAdapter getResourceAdapter()
- Specified by:
getResourceAdapter
in interfacejavax.resource.spi.ResourceAdapterAssociation
-
setResourceAdapter
public void setResourceAdapter(javax.resource.spi.ResourceAdapter arg0) throws javax.resource.ResourceException
- Specified by:
setResourceAdapter
in interfacejavax.resource.spi.ResourceAdapterAssociation
- Throws:
javax.resource.ResourceException
-
getInstance
public static <T> T getInstance(Class<T> expectedType, String className, Collection ctorObjs, Class defaultClass) throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
-
getInvalidConnections
public Set<BasicManagedConnection> getInvalidConnections(Set arg0) throws javax.resource.ResourceException
- Specified by:
getInvalidConnections
in interfacejavax.resource.spi.ValidatingManagedConnectionFactory
- Throws:
javax.resource.ResourceException
-
-