|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connection
Represents a connection to this connector. A connection will be obtained from the connector for every query that is executed, then closed after the query has completed.
If pooling is enabled, see PoolAwareConnection
to optionally implement pooling specific behavior.
Method Summary | |
---|---|
void |
close()
Release the connection. |
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 |
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. |
Method Detail |
---|
ConnectorCapabilities getCapabilities()
Connector.getCapabilities()
Execution createExecution(ICommand command, ExecutionContext executionContext, RuntimeMetadata metadata) throws ConnectorException
command
- 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
void close()
boolean isAlive()
void setConnectorIdentity(ConnectorIdentity context) throws ConnectorException
identity
-
ConnectorException
void closeCalled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |