|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.connector.basic.BasicConnection
public abstract class BasicConnection
Provides a default implementation of a PoolAwareConnection for a Connector
that supports global capabilities. Extensions of this class should implement
createProcedureExecution(IProcedure, ExecutionContext, RuntimeMetadata)
#createResultSetExecution(IProcedure, ExecutionContext, RuntimeMetadata)
#createUpdateExecution(IProcedure, ExecutionContext, RuntimeMetadata)
as necessary.
| Constructor Summary | |
|---|---|
BasicConnection()
|
|
| Method Summary | |
|---|---|
void |
closeCalled()
Called by the pool to indicate that the connection was returned to the pool. |
Execution |
createExecution(ICommand command,
ExecutionContext executionContext,
RuntimeMetadata metadata)
Create an execution object for the specified command |
ProcedureExecution |
createProcedureExecution(IProcedure command,
ExecutionContext executionContext,
RuntimeMetadata metadata)
|
ResultSetExecution |
createResultSetExecution(IQueryCommand command,
ExecutionContext executionContext,
RuntimeMetadata metadata)
|
UpdateExecution |
createUpdateExecution(ICommand command,
ExecutionContext executionContext,
RuntimeMetadata metadata)
|
ConnectorCapabilities |
getCapabilities()
Get the capabilities of this connector. |
boolean |
isAlive()
Called to determine whether the connection is open |
void |
setConnectorIdentity(ConnectorIdentity context)
Called by the pool when an existing connection is leased so that the underlying Connection may have it's identity switched to a different user. |
| 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.Connection |
|---|
close |
| Constructor Detail |
|---|
public BasicConnection()
| Method Detail |
|---|
public Execution createExecution(ICommand command,
ExecutionContext executionContext,
RuntimeMetadata metadata)
throws ConnectorException
Connection
createExecution in interface Connectioncommand - the commandexecutionContext - Provides information about the context that this command is
executing within, such as the identifiers for the MetaMatrix command being executedmetadata - Access to runtime metadata if needed to translate the command
ConnectorException
public ResultSetExecution createResultSetExecution(IQueryCommand command,
ExecutionContext executionContext,
RuntimeMetadata metadata)
throws ConnectorException
ConnectorException
public ProcedureExecution createProcedureExecution(IProcedure command,
ExecutionContext executionContext,
RuntimeMetadata metadata)
throws ConnectorException
ConnectorException
public UpdateExecution createUpdateExecution(ICommand command,
ExecutionContext executionContext,
RuntimeMetadata metadata)
throws ConnectorException
ConnectorExceptionpublic boolean isAlive()
Connection
isAlive in interface Connectionpublic ConnectorCapabilities getCapabilities()
Connection
getCapabilities in interface ConnectionConnector.getCapabilities()public void closeCalled()
Connection
closeCalled in interface Connection
public void setConnectorIdentity(ConnectorIdentity context)
throws ConnectorException
Connection
setConnectorIdentity in interface ConnectionConnectorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||