java.lang.AutoCloseable
, java.sql.Statement
, java.sql.Wrapper
, EngineStatement
EmbedPreparedStatement
public class EmbedStatement extends ConnectionChild implements EngineStatement
Modifier and Type | Field | Description |
---|---|---|
private boolean |
active |
|
private java.sql.Connection |
applicationConnection |
|
protected EngineStatement |
applicationStatement |
Statement reference the application is using to execute
this Statement.
|
private java.sql.ResultSet |
autoGeneratedKeysResultSet |
|
(package private) java.util.Vector<java.lang.Object> |
batchStatements |
|
private boolean |
closeOnCompletion |
|
private boolean |
closingResultSets |
|
private int |
currentDynamicResultSet |
|
private java.lang.String |
cursorName |
|
private EmbedResultSet[] |
dynamicResults |
|
private int |
fetchDirection |
|
private int |
fetchSize |
|
private boolean |
forMetaData |
|
protected boolean |
isPoolable |
|
(package private) LanguageConnectionContext |
lcc |
|
(package private) int |
MaxFieldSize |
|
(package private) long |
maxRows |
|
private ParameterValueSet |
pvs |
|
(package private) EmbedResultSet |
results |
|
(package private) int |
resultSetConcurrency |
|
private int |
resultSetHoldability |
|
(package private) int |
resultSetType |
|
(package private) java.lang.String |
SQLText |
|
(package private) long |
timeoutMillis |
Query timeout in milliseconds.
|
(package private) long |
updateCount |
|
private java.sql.SQLWarning |
warnings |
factory, localConn
Constructor | Description |
---|---|
EmbedStatement(EmbedConnection connection,
boolean forMetaData,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
Modifier and Type | Method | Description |
---|---|---|
void |
addBatch(java.lang.String sql) |
JDBC 2.0
Adds a SQL command to the current batch of commmands for the statement.
|
(package private) void |
addWarning(java.sql.SQLWarning sw) |
Add a SQLWarning to this Statement object.
|
void |
cancel() |
Cancel can be used by one thread to cancel a statement that
is being executed by another thread.
|
(package private) void |
checkExecStatus() |
A heavier weight version of checkStatus() that ensures the application's Connection
object is still open.
|
(package private) void |
checkIfInMiddleOfBatch() |
|
(package private) void |
checkRequiresCallableStatement(Activation activation) |
Check to see if a statement requires to be executed via a callable statement.
|
(package private) void |
checkStatus() |
Throw an exception if this Statement has been closed explictly
or it has noticed it has been closed implicitly.
|
void |
clearBatch() |
JDBC 2.0
Make the set of commands in the current batch empty.
|
(package private) void |
clearResultSets() |
Close and clear all result sets associated with this statement
from the last execution.
|
private void |
clearResultSetsMinion() |
|
void |
clearWarnings() |
After this call getWarnings returns null until a new warning is
reported for this Statement.
|
void |
close() |
In many cases, it is desirable to immediately release a
Statements's database and JDBC resources instead of waiting for
this to happen when it is automatically closed; the close
method provides this immediate release.
|
(package private) void |
closeActions() |
|
(package private) void |
closeMeOnCompletion() |
|
void |
closeOnCompletion() |
|
boolean |
execute(java.lang.String sql) |
Execute a SQL statement that may return multiple results.
|
private boolean |
execute(java.lang.String sql,
boolean executeQuery,
boolean executeUpdate,
int autoGeneratedKeys,
int[] columnIndexes,
java.lang.String[] columnNames) |
Execute a SQL statement that may return multiple results.
|
boolean |
execute(java.lang.String sql,
int autoGeneratedKeys) |
JDBC 3.0
Executes the given SQL statement, which may return multiple
results, and signals the driver that any auto-generated keys
should be made available for retrieval.
|
boolean |
execute(java.lang.String sql,
int[] columnIndexes) |
JDBC 3.0
Executes the given SQL statement, which may return multiple
results, and signals the driver that the auto-generated keys
indicated in the given array should be made available for retrieval.
|
boolean |
execute(java.lang.String sql,
java.lang.String[] columnNames) |
JDBC 3.0
Executes the given SQL statement, which may return multiple
results, and signals the driver that the auto-generated keys
indicated in the given array should be made available for retrieval.
|
int[] |
executeBatch() |
JDBC 2.0
Submit a batch of commands to the database for execution.
|
(package private) boolean |
executeBatchElement(java.lang.Object batchElement) |
Execute a single element of the batch.
|
long[] |
executeLargeBatch() |
JDBC 4.2
Submit a batch of commands to the database for execution.
|
long |
executeLargeUpdate(java.lang.String sql) |
JDBC 4.2
Execute a SQL INSERT, UPDATE or DELETE statement.
|
long |
executeLargeUpdate(java.lang.String sql,
int autoGeneratedKeys) |
JDBC 4.2
Execute the given SQL statement and signals the driver with the given flag
about whether the auto-generated keys produced by this Statement object
should be made available for retrieval.
|
long |
executeLargeUpdate(java.lang.String sql,
int[] columnIndexes) |
JDBC 4.2
Executes the given SQL statement and signals the driver that the
auto-generated keys indicated in the given array should be made
available for retrieval.
|
long |
executeLargeUpdate(java.lang.String sql,
java.lang.String[] columnNames) |
JDBC 4.2
Executes the given SQL statement and signals the driver that the
auto-generated keys indicated in the given array should be made
available for retrieval.
|
java.sql.ResultSet |
executeQuery(java.lang.String sql) |
Execute a SQL statement that returns a single ResultSet.
|
(package private) boolean |
executeStatement(Activation a,
boolean executeQuery,
boolean executeUpdate) |
Execute the current statement.
|
int |
executeUpdate(java.lang.String sql) |
Execute a SQL INSERT, UPDATE or DELETE statement.
|
int |
executeUpdate(java.lang.String sql,
int autoGeneratedKeys) |
JDBC 3.0
Execute the given SQL statement and signals the driver with the given flag
about whether the auto-generated keys produced by this Statement object
should be made available for retrieval.
|
int |
executeUpdate(java.lang.String sql,
int[] columnIndexes) |
JDBC 3.0
Executes the given SQL statement and signals the driver that the
auto-generated keys indicated in the given array should be made
available for retrieval.
|
int |
executeUpdate(java.lang.String sql,
java.lang.String[] columnNames) |
JDBC 3.0
Executes the given SQL statement and signals the driver that the
auto-generated keys indicated in the given array should be made
available for retrieval.
|
protected void |
finalize() |
Mark the statement and its single-use activation as unused.
|
java.sql.Connection |
getConnection() |
JDBC 2.0
Return the Connection that produced the Statement.
|
private boolean |
getExecuteHoldable() |
Get the execute time holdability for the Statement.
|
int |
getFetchDirection() |
JDBC 2.0
Determine the fetch direction.
|
int |
getFetchSize() |
JDBC 2.0
Determine the default fetch size.
|
java.sql.ResultSet |
getGeneratedKeys() |
JDBC 3.0
Retrieves any auto-generated keys created as a result of executing this
Statement object.
|
long |
getLargeMaxRows() |
JDBC 4.2
The maxRows limit is the maximum number of rows that a
ResultSet can contain.
|
long |
getLargeUpdateCount() |
JDBC 4.2
getLargeUpdateCount returns the current result as an update count;
if the result is a ResultSet or there are no more results -1
is returned.
|
int |
getMaxFieldSize() |
The maxFieldSize limit (in bytes) is the maximum amount of data
returned for any column value; it only applies to BINARY,
VARBINARY, LONGVARBINARY, CHAR, VARCHAR, and LONGVARCHAR
columns.
|
int |
getMaxRows() |
The maxRows limit is the maximum number of rows that a
ResultSet can contain.
|
boolean |
getMoreResults() |
getMoreResults moves to a Statement's next result.
|
boolean |
getMoreResults(int current) |
JDBC 3.0
Moves to this Statement obect's next result, deals with any current ResultSet
object(s) according to the instructions specified by the given flag, and
returns true if the next result is a ResultSet object
|
ParameterValueSet |
getParameterValueSet() |
|
int |
getQueryTimeout() |
The queryTimeout limit is the number of seconds the driver will
wait for a Statement to execute.
|
java.sql.ResultSet |
getResultSet() |
getResultSet returns the current result as a ResultSet.
|
int |
getResultSetConcurrency() |
JDBC 2.0
Determine the result set concurrency.
|
int |
getResultSetHoldability() |
JDBC 3.0
Retrieves the result set holdability for ResultSet objects
generated by this Statement object.
|
int |
getResultSetType() |
JDBC 2.0
Determine the result set type.
|
java.lang.String |
getSQLText() |
|
int |
getUpdateCount() |
getUpdateCount returns the current result as an update count;
if the result is a ResultSet or there are no more results -1
is returned.
|
java.sql.SQLWarning |
getWarnings() |
The first warning reported by calls on this Statement is
returned.
|
boolean |
isClosed() |
Tell whether this statment has been closed or not.
|
boolean |
isCloseOnCompletion() |
|
private boolean |
isOpen(EmbedResultSet rs) |
|
boolean |
isPoolable() |
Returns the value of the EmbedStatement's poolable hint,
indicating whether pooling is requested.
|
boolean |
isWrapperFor(java.lang.Class<?> interfaces) |
Returns false unless
interfaces is implemented. |
(package private) static EmbedResultSet |
processDynamicResult(EmbedConnection conn,
java.sql.ResultSet resultSet,
EmbedStatement callStatement) |
Process a ResultSet created in a Java procedure as a dynamic result.
|
private int |
processDynamicResults(java.sql.ResultSet[][] holder,
int maxDynamicResultSets) |
Go through a holder of dynamic result sets, remove those that
should not be returned, and sort the result sets according to
their creation.
|
(package private) void |
resultSetClosing(EmbedResultSet closingLRS) |
Callback on the statement when one of its result sets is closed.
|
void |
setApplicationStatement(EngineStatement s) |
Set the application statement for this Statement.
|
void |
setCursorName(java.lang.String name) |
setCursorName defines the SQL cursor name that will be used by
subsequent Statement execute methods.
|
void |
setEscapeProcessing(boolean enable) |
If escape scanning is on (the default) the driver will do
escape substitution before sending the SQL to the database.
|
void |
setFetchDirection(int direction) |
JDBC 2.0
Give a hint as to the direction in which the rows in a result set
will be processed.
|
void |
setFetchSize(int rows) |
JDBC 2.0
Give the JDBC driver a hint as to the number of rows that should
be fetched from the database when more rows are needed.
|
void |
setLargeMaxRows(long max) |
The maxRows limit is set to limit the number of rows that any
ResultSet can contain.
|
void |
setMaxFieldSize(int max) |
The maxFieldSize limit (in bytes) is set to limit the size of
data that can be returned for any column value; it only applies
to BINARY, VARBINARY, LONGVARBINARY, CHAR, VARCHAR, and
LONGVARCHAR fields.
|
void |
setMaxRows(int max) |
The maxRows limit is set to limit the number of rows that any
ResultSet can contain.
|
void |
setPoolable(boolean poolable) |
Requests that an EmbedStatement be pooled or not.
|
void |
setQueryTimeout(int seconds) |
The queryTimeout limit is the number of seconds the driver will
wait for a Statement to execute.
|
void |
transferBatch(EmbedStatement other) |
Transfer my batch of Statements to a newly created Statement.
|
<T> T |
unwrap(java.lang.Class<T> interfaces) |
Returns
this if this class implements the interface. |
commitIfAutoCommit, commitIfNeeded, getCal, getConnectionSynchronization, getEmbedConnection, getLanguageConnectionContext, getLCC, handleException, needCommit, newSQLException, restoreContextStack, restoreIntrFlagIfSeen, setupContextStack
private final java.sql.Connection applicationConnection
protected EngineStatement applicationStatement
long updateCount
EmbedResultSet results
private java.sql.ResultSet autoGeneratedKeysResultSet
private java.lang.String cursorName
private final boolean forMetaData
final int resultSetType
final int resultSetConcurrency
private final int resultSetHoldability
final LanguageConnectionContext lcc
private java.sql.SQLWarning warnings
java.lang.String SQLText
private int fetchSize
private int fetchDirection
int MaxFieldSize
long timeoutMillis
private boolean active
java.util.Vector<java.lang.Object> batchStatements
long maxRows
private ParameterValueSet pvs
protected boolean isPoolable
private boolean closeOnCompletion
private boolean closingResultSets
private EmbedResultSet[] dynamicResults
private int currentDynamicResultSet
public EmbedStatement(EmbedConnection connection, boolean forMetaData, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
public java.sql.ResultSet executeQuery(java.lang.String sql) throws java.sql.SQLException
executeQuery
in interface java.sql.Statement
sql
- typically this is a static SQL SELECT statementjava.sql.SQLException
- thrown on failure.public int executeUpdate(java.lang.String sql) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
sql
- a SQL INSERT, UPDATE or DELETE statement or a SQL
statement that returns nothingjava.sql.SQLException
- thrown on failure.public long executeLargeUpdate(java.lang.String sql) throws java.sql.SQLException
executeLargeUpdate
in interface EngineStatement
executeLargeUpdate
in interface java.sql.Statement
java.sql.SQLException
public int executeUpdate(java.lang.String sql, int autoGeneratedKeys) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
sql
- a SQL INSERT, UPDATE or DELETE statement or a SQL
statement that returns nothingautoGeneratedKeys
- - a flag indicating whether auto-generated keys
should be made available for retrieval; one of the following constants:
Statement.RETURN_GENERATED_KEYS Statement.NO_GENERATED_KEYSjava.sql.SQLException
- if a database access error occurspublic long executeLargeUpdate(java.lang.String sql, int autoGeneratedKeys) throws java.sql.SQLException
executeLargeUpdate
in interface EngineStatement
executeLargeUpdate
in interface java.sql.Statement
java.sql.SQLException
public int executeUpdate(java.lang.String sql, int[] columnIndexes) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
sql
- a SQL INSERT, UPDATE or DELETE statement or a SQL
statement that returns nothingcolumnIndexes
- - an array of column indexes indicating the
columns that should be returned from the inserted rowjava.sql.SQLException
- if a database access error occurspublic long executeLargeUpdate(java.lang.String sql, int[] columnIndexes) throws java.sql.SQLException
executeLargeUpdate
in interface EngineStatement
executeLargeUpdate
in interface java.sql.Statement
java.sql.SQLException
public int executeUpdate(java.lang.String sql, java.lang.String[] columnNames) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
sql
- a SQL INSERT, UPDATE or DELETE statement or a SQL
statement that returns nothingcolumnNames
- - an array of the names of the columns
that should be returned from the inserted rowjava.sql.SQLException
- if a database access error occurspublic long executeLargeUpdate(java.lang.String sql, java.lang.String[] columnNames) throws java.sql.SQLException
executeLargeUpdate
in interface EngineStatement
executeLargeUpdate
in interface java.sql.Statement
java.sql.SQLException
final void checkIfInMiddleOfBatch() throws java.sql.SQLException
java.sql.SQLException
public boolean isClosed() throws java.sql.SQLException
isClosed
in interface java.sql.Statement
true
is closed, false
otherwise.java.sql.SQLException
- if a database access error occurs.public final void close() throws java.sql.SQLException
Note: A Statement is automatically closed when it is garbage collected. When a Statement is closed its current ResultSet, if one exists, is also closed.
close
in interface java.lang.AutoCloseable
close
in interface java.sql.Statement
java.sql.SQLException
- thrown on failure.protected void finalize() throws java.lang.Throwable
EmbedPreparedStatement
's finalizer as
well, even though prepared statements reuse activations, since
getGeneratedKeys()
uses a single-use activation regardless
of statement type.
finalize
in class java.lang.Object
java.lang.Throwable
void closeActions() throws java.sql.SQLException
java.sql.SQLException
public int getMaxFieldSize() throws java.sql.SQLException
getMaxFieldSize
in interface java.sql.Statement
java.sql.SQLException
- thrown on failure.public void setMaxFieldSize(int max) throws java.sql.SQLException
setMaxFieldSize
in interface java.sql.Statement
max
- the new max column size limit; zero means unlimitedjava.sql.SQLException
- thrown on failure.public int getMaxRows() throws java.sql.SQLException
getMaxRows
in interface java.sql.Statement
java.sql.SQLException
- thrown on failure.public long getLargeMaxRows() throws java.sql.SQLException
getLargeMaxRows
in interface EngineStatement
getLargeMaxRows
in interface java.sql.Statement
java.sql.SQLException
- thrown on failure.public void setMaxRows(int max) throws java.sql.SQLException
setMaxRows
in interface java.sql.Statement
max
- the new max rows limit; zero means unlimitedjava.sql.SQLException
- thrown on failure.public void setLargeMaxRows(long max) throws java.sql.SQLException
setLargeMaxRows
in interface EngineStatement
setLargeMaxRows
in interface java.sql.Statement
max
- the new max rows limit; zero means unlimitedjava.sql.SQLException
- thrown on failure.public void setEscapeProcessing(boolean enable) throws java.sql.SQLException
setEscapeProcessing
in interface java.sql.Statement
enable
- true to enable; false to disablejava.sql.SQLException
- thrown on failure.public final int getQueryTimeout() throws java.sql.SQLException
getQueryTimeout
in interface java.sql.Statement
java.sql.SQLException
- thrown on failure.public final void setQueryTimeout(int seconds) throws java.sql.SQLException
setQueryTimeout
in interface java.sql.Statement
seconds
- the new query timeout limit in seconds; zero means unlimitedjava.sql.SQLException
- thrown on failure.public void cancel() throws java.sql.SQLException
cancel
in interface java.sql.Statement
java.sql.SQLException
- thrown on failure.public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
The warning chain is automatically cleared each time a statement is (re)executed.
Note: If you are processing a ResultSet then any warnings associated with ResultSet reads will be chained on the ResultSet object.
getWarnings
in interface java.sql.Statement
java.sql.SQLException
- thrown on failure.public void clearWarnings() throws java.sql.SQLException
clearWarnings
in interface java.sql.Statement
java.sql.SQLException
- thrown on failure.public void setCursorName(java.lang.String name) throws java.sql.SQLException
Note: By definition, positioned update/delete execution must be done by a different Statement than the one which generated the ResultSet being used for positioning. Also, cursor names must be unique within a Connection.
setCursorName
in interface java.sql.Statement
name
- the new cursor name.java.sql.SQLException
public boolean execute(java.lang.String sql) throws java.sql.SQLException
execute
in interface java.sql.Statement
sql
- any SQL statementjava.sql.SQLException
- thrown on failuregetResultSet()
,
getUpdateCount()
,
getMoreResults()
private boolean execute(java.lang.String sql, boolean executeQuery, boolean executeUpdate, int autoGeneratedKeys, int[] columnIndexes, java.lang.String[] columnNames) throws java.sql.SQLException
sql
- any SQL statementexecuteQuery
- caller is executeQuery()executeUpdate
- caller is executeUpdate()autoGeneratedKeys
- columnIndexes
- columnNames
- java.sql.SQLException
- thrown on failuregetResultSet()
,
getUpdateCount()
,
getMoreResults()
public boolean execute(java.lang.String sql, int autoGeneratedKeys) throws java.sql.SQLException
execute
in interface java.sql.Statement
sql
- any SQL statementautoGeneratedKeys
- - a constant indicating whether
auto-generated keys should be made available for retrieval using
the method getGeneratedKeys; one of the following constants:
Statement.RETURN_GENERATED_KEYS or Statement.NO_GENERATED_KEYSjava.sql.SQLException
- if a database access error occurspublic boolean execute(java.lang.String sql, int[] columnIndexes) throws java.sql.SQLException
execute
in interface java.sql.Statement
sql
- any SQL statementcolumnIndexes
- - an array of the indexes of the columns in the
inserted/updated row that should be made available for retrieval by a
call to the method getGeneratedKeysjava.sql.SQLException
- if a database access error occurspublic boolean execute(java.lang.String sql, java.lang.String[] columnNames) throws java.sql.SQLException
execute
in interface java.sql.Statement
sql
- any SQL statementcolumnNames
- - an array of the names of the columns in the
inserted/updated row that should be made available for retrieval by a
call to the method getGeneratedKeysjava.sql.SQLException
- if a database access error occurspublic final java.sql.ResultSet getResultSet() throws java.sql.SQLException
getResultSet
in interface java.sql.Statement
java.sql.SQLException
execute(java.lang.String)
public final int getUpdateCount() throws java.sql.SQLException
The only way to tell for sure that the result is an update count is to first test to see if it is a ResultSet. If it is not a ResultSet it is either an update count or there are no more results.
getUpdateCount
in interface java.sql.Statement
java.sql.SQLException
execute(java.lang.String)
public final long getLargeUpdateCount() throws java.sql.SQLException
getLargeUpdateCount
in interface EngineStatement
getLargeUpdateCount
in interface java.sql.Statement
java.sql.SQLException
public final boolean getMoreResults() throws java.sql.SQLException
getMoreResults
in interface java.sql.Statement
java.sql.SQLException
- thrown on failure.execute(java.lang.String)
public final int getResultSetType() throws java.sql.SQLException
getResultSetType
in interface java.sql.Statement
java.sql.SQLException
- Feature not implemented for now.public void setFetchDirection(int direction) throws java.sql.SQLException
setFetchDirection
in interface java.sql.Statement
direction
- the initial direction for processing rowsjava.sql.SQLException
- if a database-access error occurs or direction
is not one of ResultSet.FETCH_FORWARD, ResultSet.FETCH_REVERSE, or
ResultSet.FETCH_UNKNOWNpublic int getFetchDirection() throws java.sql.SQLException
getFetchDirection
in interface java.sql.Statement
java.sql.SQLException
- if a database-access error occurspublic void setFetchSize(int rows) throws java.sql.SQLException
setFetchSize
in interface java.sql.Statement
rows
- the number of rows to fetchjava.sql.SQLException
- if a database-access error occurs, or the
condition 0 <= rows <= this.getMaxRows() is not satisfied.public int getFetchSize() throws java.sql.SQLException
getFetchSize
in interface java.sql.Statement
java.sql.SQLException
- if a database-access error occurspublic int getResultSetConcurrency() throws java.sql.SQLException
getResultSetConcurrency
in interface java.sql.Statement
java.sql.SQLException
- Feature not implemented for now.public final int getResultSetHoldability() throws java.sql.SQLException
getResultSetHoldability
in interface java.sql.Statement
java.sql.SQLException
- Feature not implemented for now.public void addBatch(java.lang.String sql) throws java.sql.SQLException
addBatch
in interface java.sql.Statement
sql
- typically this is a static SQL INSERT or UPDATE statementjava.sql.SQLException
- if a database-access error occurs, or the
driver does not support batch statementspublic final void clearBatch() throws java.sql.SQLException
clearBatch
in interface java.sql.Statement
java.sql.SQLException
- if a database-access error occurs, or the
driver does not support batch statementspublic int[] executeBatch() throws java.sql.SQLException
executeBatch
in interface java.sql.Statement
java.sql.SQLException
- if a database-access error occurs, or the
driver does not support batch statementspublic long[] executeLargeBatch() throws java.sql.SQLException
executeLargeBatch
in interface EngineStatement
executeLargeBatch
in interface java.sql.Statement
java.sql.SQLException
boolean executeBatchElement(java.lang.Object batchElement) throws java.sql.SQLException, StandardException
java.sql.SQLException
StandardException
public final java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface java.sql.Statement
java.sql.SQLException
- Exception if it cannot find the connection
associated to this statement.public final boolean getMoreResults(int current) throws java.sql.SQLException
getMoreResults
in interface java.sql.Statement
current
- - one of the following Statement constants indicating what
should happen to current ResultSet objects obtained using the method
getResultSetCLOSE_CURRENT_RESULT, KEEP_CURRENT_RESULT, or CLOSE_ALL_RESULTSjava.sql.SQLException
- thrown on failure.execute(java.lang.String)
public final java.sql.ResultSet getGeneratedKeys() throws java.sql.SQLException
getGeneratedKeys
in interface java.sql.Statement
java.sql.SQLException
- if a database access error occursboolean executeStatement(Activation a, boolean executeQuery, boolean executeUpdate) throws java.sql.SQLException
java.sql.SQLException
- thrown on failure.final void addWarning(java.sql.SQLWarning sw)
getWarnings()
public java.lang.String getSQLText()
public ParameterValueSet getParameterValueSet()
final void checkStatus() throws java.sql.SQLException
java.sql.SQLException
- Thrown if the statement is marked as closed.checkExecStatus()
final void checkExecStatus() throws java.sql.SQLException
java.sql.SQLException
- Thrown if the statement is marked as closed
or the Statement's transaction is suspended.checkStatus()
void clearResultSets() throws java.sql.SQLException
java.sql.SQLException
private void clearResultSetsMinion() throws java.sql.SQLException
java.sql.SQLException
void checkRequiresCallableStatement(Activation activation) throws java.sql.SQLException
java.sql.SQLException
public void transferBatch(EmbedStatement other) throws java.sql.SQLException
java.sql.SQLException
public final void setApplicationStatement(EngineStatement s)
private int processDynamicResults(java.sql.ResultSet[][] holder, int maxDynamicResultSets) throws java.sql.SQLException
holder
- a holder of dynamic result setsmaxDynamicResultSets
- the maximum number of result sets
to be returnedjava.sql.SQLException
- if an error occursstatic EmbedResultSet processDynamicResult(EmbedConnection conn, java.sql.ResultSet resultSet, EmbedStatement callStatement)
conn
- Connection ResultSet needs to belong toresultSet
- ResultSet to be testedcallStatement
- Statement that executed the CALL, null ifvoid resultSetClosing(EmbedResultSet closingLRS) throws java.sql.SQLException
java.sql.SQLException
private boolean getExecuteHoldable() throws java.sql.SQLException
java.sql.SQLException
- Error from getResultSetHoldability.public boolean isPoolable() throws java.sql.SQLException
isPoolable
in interface java.sql.Statement
java.sql.SQLException
- if the Statement has been closed.public void setPoolable(boolean poolable) throws java.sql.SQLException
setPoolable
in interface java.sql.Statement
poolable
- requests that the EmbedStatement be pooled if true
and not be pooled if false.java.sql.SQLException
- if the EmbedStatement has been closed.public final boolean isWrapperFor(java.lang.Class<?> interfaces) throws java.sql.SQLException
interfaces
is implemented.isWrapperFor
in interface java.sql.Wrapper
interfaces
- a Class defining an interface.java.sql.SQLException
- if an error occurs while determining
whether this is a wrapper for an object with the given interface.public final <T> T unwrap(java.lang.Class<T> interfaces) throws java.sql.SQLException
this
if this class implements the interface.unwrap
in interface java.sql.Wrapper
interfaces
- a Class defining an interfacejava.sql.SQLException
- if no object if found that implements the interfacepublic void closeOnCompletion() throws java.sql.SQLException
closeOnCompletion
in interface EngineStatement
closeOnCompletion
in interface java.sql.Statement
java.sql.SQLException
public boolean isCloseOnCompletion() throws java.sql.SQLException
isCloseOnCompletion
in interface EngineStatement
isCloseOnCompletion
in interface java.sql.Statement
java.sql.SQLException
void closeMeOnCompletion()
private boolean isOpen(EmbedResultSet rs) throws java.sql.SQLException
java.sql.SQLException
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.