public interface ProcedureExecutionContext
| Modifier and Type | Method and Description |
|---|---|
void |
checkQueryCancelled()
Checks whether the stored procedure's CallableStatement has been
cancelled.
|
String[] |
getColocatedTableNames()
Returns an array of colocated tables in this
server in the format "schemaName.tableName".
|
Connection |
getConnection()
A "nested" JDBC connection that can be used by
the procedure to execute SQL.
|
String |
getFilter()
Returns the whereClause for this execution,
or null if there wasn't one
|
OutgoingResultSet |
getOutgoingResultSet(int resultSetNumber)
Create and return an empty container for an output result set.
|
String |
getProcedureName()
Return the name of this procedure.
|
String |
getTableName()
Returns the table name in the format "schemaName.tableName"
if this procedure was
executed with an ON TABLE clause, or null
otherwise.
|
boolean |
isPartitioned(String tableName)
Returns true if the specified table is a partitioned
table, false if it is a replicated table.
|
boolean |
isPossibleDuplicate()
Return true if this is a re-attempt occurring after a member
of the distributed system has failed.
|
String getFilter()
String getTableName()
String[] getColocatedTableNames()
String getProcedureName()
Connection getConnection()
DriverManager.getConnection("jdbc:default:connection");boolean isPossibleDuplicate()
boolean isPartitioned(String tableName)
tableName - name of table as "schemaName.tableName",
or just "tableName" with default schema assumed.OutgoingResultSet getOutgoingResultSet(int resultSetNumber)
resultSetNumber - the index to assign to this result set as one of the
result sets declared for this procedure.void checkQueryCancelled()
throws SQLException
Statement.setQueryTimeout(int)
2) Default critical memory limit getting breached SQLExceptionSQLExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.