|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.connector.basic.BasicConnector
org.teiid.connector.jdbc.JDBCConnector
public class JDBCConnector
JDBC implementation of Connector interface.
| Field Summary | |
|---|---|
protected ConnectorEnvironment |
environment
|
static java.lang.String |
INVALID_AUTHORIZATION_SPECIFICATION_NO_SUBCLASS
|
| Constructor Summary | |
|---|---|
JDBCConnector()
|
|
| Method Summary | |
|---|---|
protected void |
createDataSources(java.lang.String dataSourceClassName,
java.util.Properties connectionProps)
|
Connection |
createJDBCSourceConnection(java.sql.Connection conn,
ConnectorEnvironment env,
Translator trans)
|
XAConnection |
createJDBCSourceXAConnection(javax.sql.XAConnection conn,
java.sql.Connection c,
ConnectorEnvironment env,
Translator trans)
|
ConnectorCapabilities |
getCapabilities()
Get the capabilities of this connector. |
Connection |
getConnection(ExecutionContext context)
Obtain a connection with the connector. |
javax.sql.DataSource |
getDataSource()
|
int |
getDefaultTransactionIsolationLevel()
|
XAConnection |
getXAConnection(ExecutionContext context,
TransactionContext transactionContext)
Obtain a connection with the connector. |
javax.sql.XADataSource |
getXADataSource()
|
protected void |
setDefaultTransactionIsolationLevel(java.sql.Connection sqlConn)
|
void |
start(ConnectorEnvironment environment)
Start the connector with the connector environment. |
void |
stop()
Stop the connector. |
| Methods inherited from class org.teiid.connector.basic.BasicConnector |
|---|
areAdminConnectionsAllowed, createIdentity, getConnectorName, setAdminConnectionsAllowed, setConnectorName, setUseCredentialMap, useCredentialMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.teiid.connector.api.Connector |
|---|
createIdentity |
| Field Detail |
|---|
public static final java.lang.String INVALID_AUTHORIZATION_SPECIFICATION_NO_SUBCLASS
protected ConnectorEnvironment environment
| Constructor Detail |
|---|
public JDBCConnector()
| Method Detail |
|---|
public void start(ConnectorEnvironment environment)
throws ConnectorException
Connector
start in interface Connectorstart in class BasicConnectorenvironment - The connector environment, provided by the Connector Manager
ConnectorExceptionpublic void stop()
Connector
stop in interface Connector
public Connection getConnection(ExecutionContext context)
throws ConnectorException
Connector
getConnection in interface Connectorcontext - The context of the current user that will be using this connection,
may be null if this connection is for an administrative operation.
ConnectorException - If an error occurred obtaining a connection
public Connection createJDBCSourceConnection(java.sql.Connection conn,
ConnectorEnvironment env,
Translator trans)
throws ConnectorException
ConnectorException
public XAConnection getXAConnection(ExecutionContext context,
TransactionContext transactionContext)
throws ConnectorException
XAConnector
getXAConnection in interface XAConnectortransactionContext - The context of the transaction under which the connection will be used. May be null.
ConnectorException - If an error occurred obtaining a connection
public XAConnection createJDBCSourceXAConnection(javax.sql.XAConnection conn,
java.sql.Connection c,
ConnectorEnvironment env,
Translator trans)
throws ConnectorException,
java.sql.SQLException
ConnectorException
java.sql.SQLExceptionpublic ConnectorCapabilities getCapabilities()
Connector
getCapabilities in interface ConnectorConnection.getCapabilities()
protected void createDataSources(java.lang.String dataSourceClassName,
java.util.Properties connectionProps)
throws ConnectorException
ConnectorExceptionpublic javax.sql.DataSource getDataSource()
public javax.sql.XADataSource getXADataSource()
public int getDefaultTransactionIsolationLevel()
protected void setDefaultTransactionIsolationLevel(java.sql.Connection sqlConn)
throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||