Deprecated
as a consequence of JDBC41Statement being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| private final Connection | |
| private final Statement | |
| private final Supplier |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | DefaultStatement(Statement delegate, Connection creator, Supplier<? extends SQLException> errorIfUnsupported)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addBatch(String
typically this is a SQL sql)INSERT or
UPDATE statementImplements java. Statement object.
|
| public void | cancel()
Implements java. Statement object if both the DBMS and
driver support aborting an SQL statement.
|
| public void | clearBatch()
Implements java. Statement object's current list of
SQL commands.
|
| public void | clearWarnings()
Implements java. Statement
object.
|
| public void | close()
Implements java. Statement object's database
and JDBC resources immediately instead of waiting for
this to happen when it is automatically closed.
|
| public void | closeOnCompletion()
Overrides org. Implements java. Statement will be closed when all its
dependent result sets are closed.
|
| public String | enquoteIdentifier(String
a SQL identifier identifier, boolean indicates if a simple SQL identifier should be
returned as a quoted identifier alwaysQuote)Overrides default java. |
| public String | enquoteLiteral(String
a character string val)Overrides default java. String enclosed in single quotes.
|
| public String | enquoteNCharLiteral(String
a character string val)Overrides default java. String representing a National Character Set Literal
enclosed in single quotes and prefixed with a upper case letter N.
|
| public boolean | execute(String
any SQL statement sql)Implements java. |
| public boolean | execute(String
any SQL statement sql, int a constant indicating whether auto-generated
keys should be made available for retrieval using the method
autoGeneratedKeys)getGeneratedKeys; one of the following constants:
Statement.RETURN_GENERATED_KEYS or
Statement.NO_GENERATED_KEYSImplements java. |
| public boolean | execute(String
any SQL statement sql, int[] an array of the indexes of the columns in the
inserted row that should be made available for retrieval by a
call to the method columnIndexes)getGeneratedKeysImplements java. |
| public boolean | execute(String
any SQL statement sql, String[] an array of the names of the columns in the inserted
row that should be made available for retrieval by a call to the
method columnNames)getGeneratedKeysImplements java. |
| public int[] | executeBatch()
Implements java. |
| public long[] | executeLargeBatch()
Overrides default java. |
| public long | executeLargeUpdate(String
an SQL Data Manipulation Language (DML) statement,
such as sql)INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.Overrides default java. INSERT,
UPDATE, or DELETE statement or an
SQL statement that returns nothing, such as an SQL DDL statement.
|
| public long | executeLargeUpdate(String
an SQL Data Manipulation Language (DML) statement,
such as sql, int INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.a flag indicating whether auto-generated keys
should be made available for retrieval;
one of the following constants:
autoGeneratedKeys)Statement.RETURN_GENERATED_KEYS
Statement.NO_GENERATED_KEYSOverrides default java. Statement object
should be made available for retrieval.
|
| public long | executeLargeUpdate(String
an SQL Data Manipulation Language (DML) statement,
such as sql, int[] INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.an array of column indexes indicating the columns
that should be returned from the inserted row columnIndexes)Overrides default java. |
| public long | executeLargeUpdate(String
an SQL Data Manipulation Language (DML) statement,
such as sql, String[] INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.an array of the names of the columns that should be
returned from the inserted row columnNames)Overrides default java. |
| public ResultSet | executeQuery(String
an SQL statement to be sent to the database, typically a
static SQL sql)SELECT statementImplements java. ResultSet object.
|
| public int | executeUpdate(String
an SQL Data Manipulation Language (DML) statement, such as sql)INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.Implements java. INSERT,
UPDATE, or DELETE statement or an
SQL statement that returns nothing, such as an SQL DDL statement.
|
| public int | executeUpdate(String
an SQL Data Manipulation Language (DML) statement, such as sql, int INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.a flag indicating whether auto-generated keys
should be made available for retrieval;
one of the following constants:
autoGeneratedKeys)Statement.RETURN_GENERATED_KEYS
Statement.NO_GENERATED_KEYSImplements java. Statement object
should be made available for retrieval.
|
| public int | executeUpdate(String
an SQL Data Manipulation Language (DML) statement, such as sql, int[] INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.an array of column indexes indicating the columns
that should be returned from the inserted row columnIndexes)Implements java. |
| public int | executeUpdate(String
an SQL Data Manipulation Language (DML) statement, such as sql, String[] INSERT, UPDATE or
DELETE; or an SQL statement that returns nothing,
such as a DDL statement.an array of the names of the columns that should be
returned from the inserted row columnNames)Implements java. |
| public Connection | getConnection()
Implements java. Connection object
that produced this Statement object.
|
| public Statement | |
| public Statement | |
| public int | getFetchDirection()
Implements java. Statement object.
|
| public int | getFetchSize()
Implements java. ResultSet objects
generated from this Statement object.
|
| public ResultSet | getGeneratedKeys()
Implements java. Statement object.
|
| public long | getLargeMaxRows()
Overrides default java. ResultSet object produced by this
Statement object can contain.
|
| public long | getLargeUpdateCount()
Overrides default java. ResultSet object or there are no more results, -1
is returned.
|
| public int | getMaxFieldSize()
Implements java. ResultSet
object produced by this Statement object.
|
| public int | getMaxRows()
Implements java. ResultSet object produced by this
Statement object can contain.
|
| public boolean | getMoreResults()
Implements java. Statement object's next result, returns
true if it is a ResultSet object, and
implicitly closes any current ResultSet
object(s) obtained with the method getResultSet.
|
| public boolean | getMoreResults(int
one of the following current)Statement
constants indicating what should happen to current
ResultSet objects obtained using the method
getResultSet:
Statement.CLOSE_CURRENT_RESULT,
Statement.KEEP_CURRENT_RESULT, or
Statement.CLOSE_ALL_RESULTSImplements java. Statement object'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.
|
| public int | getQueryTimeout()
Implements java. Statement object to execute.
|
| public ResultSet | getResultSet()
Implements java. ResultSet object.
|
| public int | getResultSetConcurrency()
Implements java. ResultSet objects
generated by this Statement object.
|
| public int | getResultSetHoldability()
Implements java. ResultSet objects
generated by this Statement object.
|
| public int | getResultSetType()
Implements java. ResultSet objects
generated by this Statement object.
|
| public int | getUpdateCount()
Implements java. ResultSet object or there are no more results, -1
is returned.
|
| public SQLWarning | getWarnings()
Implements java. Statement object.
|
| public boolean | isClosed()
Implements java. Statement object has been closed.
|
| public boolean | isCloseOnCompletion()
Overrides org. Implements java. Statement will be
closed when all its dependent result sets are closed.
|
| public boolean | isPoolable()
Implements java. Statement
is poolable or not.
|
| public boolean | isSimpleIdentifier(String
a SQL identifier identifier)Overrides default java. identifier is a simple SQL identifier.
|
| public boolean | isWrapperFor(Class<?>
a Class defining an interface. iface)Implements java. |
| public void | setCursorName(String
the new cursor name, which must be unique within
a connection name)Implements java. String, which
will be used by subsequent Statement object
execute methods.
|
| public void | setEscapeProcessing(boolean
true to enable escape processing;
false to disable itImplements java. |
| public void | setFetchDirection(int
the initial direction for processing rows direction)Implements java. ResultSet
objects created using this Statement object.
|
| public void | setFetchSize(int
the number of rows to fetch rows)Implements java. ResultSet objects generated by this Statement.
|
| public void | setLargeMaxRows(long
the new max rows limit; zero means there is no limit max)Overrides default java. ResultSet object generated by this Statement
object can contain to the given number.
|
| public void | setMaxFieldSize(int
the new column size limit in bytes; zero means there is no limit max)Implements java. ResultSet
object produced by this Statement object.
|
| public void | setMaxRows(int
the new max rows limit; zero means there is no limit max)Implements java. ResultSet object generated by this Statement
object can contain to the given number.
|
| public void | setPoolable(boolean
requests that the statement be pooled if true and
that the statement not be pooled if false poolable)Implements java. Statement be pooled or not pooled.
|
| public void | setQueryTimeout(int
the new query timeout limit in seconds; zero means
there is no limit seconds)Implements java. Statement object to execute to the given number of seconds.
|
| public <T> T | unwrap(Class<T>
A Class defining an interface that the result must implement. iface)Implements java. |
| protected ResultSet |