Package org.teiid.jdbc
Interface TeiidStatement
-
- All Superinterfaces:
AutoCloseable
,Statement
,Wrapper
- All Known Implementing Classes:
CallableStatementImpl
,PreparedStatementImpl
,StatementImpl
public interface TeiidStatement extends Statement
This interface provides methods in addition to the standard JDBC methods.
-
-
Field Summary
-
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Collection<Annotation>
getAnnotations()
Deprecated.use show statementString
getDebugLog()
Deprecated.use show statementString
getExecutionProperty(String name)
Deprecated.use show statementPlanNode
getPlanDescription()
Obtain the query plan object representation from the last command executed on this Statement, if a query plan was requested in the command.String
getRequestIdentifier()
Get ID for last execution which can be used for matching up executions on the client side with executions in the server logs.void
setExecutionProperty(String name, String value)
Deprecated.use set statementvoid
setPayload(Serializable payload)
Set the per-statement security payload.void
submitExecute(String sql, StatementCallback callback, RequestOptions options)
Execute the given statement using a non-blocking callback.-
Methods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
-
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
-
-
-
Method Detail
-
getExecutionProperty
String getExecutionProperty(String name)
Deprecated.use show statementGet the execution property value.- Parameters:
name
- Execution property name- Returns:
- Execution property value or null if not set
-
setExecutionProperty
void setExecutionProperty(String name, String value)
Deprecated.use set statementSet the execution property value.- Parameters:
name
- Execution property namevalue
- Execution property value
-
getPlanDescription
PlanNode getPlanDescription()
Obtain the query plan object representation from the last command executed on this Statement, if a query plan was requested in the command. If no plan was requested, this method will return null.- Returns:
- PlanNode representing the root of the query plan
-
getDebugLog
String getDebugLog()
Deprecated.use show statementObtain the query planner debug log from the last command executed on this Statement, if it was requested with SHOWPLAN DEBUG. If no debug output was requested, this method will return null.- Returns:
- Debug log or null if no log exists
-
getAnnotations
Collection<Annotation> getAnnotations()
Deprecated.use show statementGet collection of annotations from the query planner from the last command executed on the Statement- Returns:
- Collection of
Annotation
s, may return null
-
getRequestIdentifier
String getRequestIdentifier()
Get ID for last execution which can be used for matching up executions on the client side with executions in the server logs.- Returns:
- String identifier for the last execution
-
setPayload
void setPayload(Serializable payload)
Set the per-statement security payload. This optional payload will accompany each request to the data source(s) so that the connector will have access to it.To remove an existing payload from a statement, call this method with a
null
argument.- Parameters:
payload
- The payload that is to accompany requests executed from this statement.- Since:
- 4.2
-
submitExecute
void submitExecute(String sql, StatementCallback callback, RequestOptions options) throws SQLException
Execute the given statement using a non-blocking callback. This method is only valid for use with embedded connections. Note that a single Statement may only have 1 asynch query executing at a time.- Parameters:
callback
-options
-- Throws:
SQLException
-
-