| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private final UcanaccessConnection | |
| private boolean | |
| private Object | |
| protected Statement |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addBatch(String batch)
Implements java. Adds the given SQL command to the current list of commands for this
|
| public void | cancel()
Implements java. Cancels this |
| protected void | |
| public void | clearBatch()
Implements java. Empties this |
| public void | clearWarnings()
Implements java. Clears all the warnings reported on this |
| public void | close()
Implements java. Releases this |
| public void | closeOnCompletion()
Implements java. Specifies that this |
| private String | |
| private String | |
| public boolean | execute(String sql)
Implements java. Executes the given SQL statement, which may return multiple results. |
| public boolean | execute(String sql, int autoGeneratedKeys)
Implements java. 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. |
| public boolean | execute(String sql, int[] indexes)
Implements java. 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. |
| public boolean | execute(String sql, String[] columnNames)
Implements java. 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. |
| public int[] | executeBatch()
Implements java. Submits a batch of commands to the database for execution and if all commands execute successfully, returns an array of update counts. |
| private < The return type of the SQL operation. R> R | Returns: The result of the SQL execution, of type<R>.The SQL string associated with the operation (used for error messages). sql, IThrowingSupplier<R, SQLException> A supplier that provides the result of the actual SQL operation. supplier)Executes a generic SQL operation, handling common setup and error mapping. |
| public ResultSet | executeQuery(String sql)
Implements java. Executes the given SQL statement, which returns a single
|
| public int | executeUpdate(String sql)
Implements java. Executes the given SQL statement, which may be an |
| public int | executeUpdate(String sql, int autoGeneratedKeys)
Implements java. Executes the given SQL statement and signals the driver with the
given flag about whether the
auto-generated keys produced by this |
| public int | executeUpdate(String sql, int[] indexes)
Implements java. 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. |
| public int | executeUpdate(String sql, String[] columnNames)
Implements java. 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 Map | |
| public UcanaccessConnection | getConnection()
Implements java. Retrieves the |
| public int | getFetchDirection()
Implements java. Retrieves the direction for fetching rows from
database tables that is the default for result sets
generated from this |
| public int | getFetchSize()
Implements java. Retrieves the number of result set rows that is the default
fetch size for |
| public ResultSet | getGeneratedKeys()
Implements java. Retrieves any auto-generated keys created as a result of executing this
|
| public int | getMaxFieldSize()
Implements java. Retrieves the maximum number of bytes that can be
returned for character and binary column values in a |
| public int | getMaxRows()
Implements java. Retrieves the maximum number of rows that a
|
| public boolean | getMoreResults()
Implements java. Moves to this |
| public boolean | getMoreResults(int current)
Implements java. Moves to this |
| public int | getQueryTimeout()
Implements java. Retrieves the number of seconds the driver will
wait for a |
| public ResultSet | getResultSet()
Implements java. Retrieves the current result as a |
| public int | getResultSetConcurrency()
Implements java. Retrieves the result set concurrency for |
| public int | getResultSetHoldability()
Implements java. Retrieves the result set holdability for |
| public int | getResultSetType()
Implements java. Retrieves the result set type for |
| public int | getUpdateCount()
Implements java. Retrieves the current result as an update count;
if the result is a |
| public SQLWarning | getWarnings()
Implements java. Retrieves the first warning reported by calls on this |
| pack-priv Statement | |
| public boolean | isClosed()
Implements java. Retrieves whether this |
| public boolean | isCloseOnCompletion()
Implements java. Returns a value indicating whether this |
| pack-priv boolean | |
| public boolean | isPoolable()
Implements java. Returns a value indicating whether the |
| public boolean | isWrapperFor(Class<?> iface)
Implements java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does. |
| private String | |
| protected void | |
| protected void | |
| protected void | |
| public void | setCursorName(String name)
Implements java. Sets the SQL cursor name to the given |
| pack-priv void | |
| public void | setEscapeProcessing(boolean enable)
Implements java. Sets escape processing on or off. |
| public void | setFetchDirection(int direction)
Implements java. Gives the driver a hint as to the direction in which
rows will be processed in |
| public void | setFetchSize(int rows)
Implements java. Gives the JDBC driver a hint as to the number of rows that should
be fetched from the database when more rows are needed for
|
| public void | |
| public void | setMaxFieldSize(int max)
Implements java. Sets the limit for the maximum number of bytes that can be returned for
character and binary column values in a |
| public void | setMaxRows(int max)
Implements java. Sets the limit for the maximum number of rows that any
|
| public void | setPoolable(boolean poolable)
Implements java. Requests that a |
| public void | setQueryTimeout(int seconds)
Implements java. Sets the number of seconds the driver will wait for a
|
| protected static final <T extends Throwable> void | |
| protected static final <R, T extends Throwable> R | |
| protected static final <R, T extends Throwable> R | |
| public <T> T | unwrap(Class<T> iface)
Implements java. Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy. |
| aliases | back to summary |
|---|---|
| private Map<String, String> aliases | |
| connection | back to summary |
|---|---|
| private final UcanaccessConnection connection | |
| enableDisable | back to summary |
|---|---|
| private boolean enableDisable | |
| generatedKey | back to summary |
|---|---|
| private Object generatedKey | |
| wrapped | back to summary |
|---|---|
protected Statement wrapped
| |
| UcanaccessStatement | back to summary |
|---|---|
| public UcanaccessStatement(Statement wrapped, UcanaccessConnection conn) | |
| addBatch | back to summary |
|---|---|
| public void addBatch(String batch) throws UcanaccessSQLException Implements java. Doc from java. Adds the given SQL command to the current list of commands for this
Note This method cannot be called on a
| |
| cancel | back to summary |
|---|---|
| public void cancel() throws UcanaccessSQLException Implements java. Doc from java. Cancels this
| |
| checkLastModified | back to summary |
|---|---|
protected void checkLastModified() throws UcanaccessSQLException
| |
| clearBatch | back to summary |
|---|---|
| public void clearBatch() throws UcanaccessSQLException Implements java. Doc from java. Empties this
| |
| clearWarnings | back to summary |
|---|---|
| public void clearWarnings() throws UcanaccessSQLException Implements java. Doc from java. Clears all the warnings reported on this
| |
| close | back to summary |
|---|---|
| public void close() throws UcanaccessSQLException Implements java. Doc from java. Releases this
Calling the method Note When a
| |
| closeOnCompletion | back to summary |
|---|---|
| public void closeOnCompletion() throws UcanaccessSQLException Implements java. Doc from java. Specifies that this Note Multiple calls to
| |
| convertSql | back to summary |
|---|---|
| private String convertSql(String sql, UcanaccessConnection conn) | |
| convertSql | back to summary |
|---|---|
| private String convertSql(String sql) | |
| execute | back to summary |
|---|---|
| public boolean execute(String sql) throws UcanaccessSQLException Implements java. Doc from java. Executes the given SQL statement, which may return multiple results. In some (uncommon) situations, a single SQL statement may return multiple result sets and/or update counts. Normally you can ignore this unless you are (1) executing a stored procedure that you know may return multiple results or (2) you are dynamically executing an unknown SQL string.
The Note This method cannot be called on a
| |
| execute | back to summary |
|---|---|
| public boolean execute(String sql, int autoGeneratedKeys) throws UcanaccessSQLException Implements java. Doc from java. 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. The driver will ignore this signal if the SQL statement
is not an In some (uncommon) situations, a single SQL statement may return multiple result sets and/or update counts. Normally you can ignore this unless you are (1) executing a stored procedure that you know may return multiple results or (2) you are dynamically executing an unknown SQL string.
The Note This method cannot be called on a
| |
| execute | back to summary |
|---|---|
| public boolean execute(String sql, int[] indexes) throws UcanaccessSQLException Implements java. Doc from java. 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. This array contains the indexes of the columns in the
target table that contain the auto-generated keys that should be made
available. The driver will ignore the array if the SQL statement
is not an Under some (uncommon) situations, a single SQL statement may return multiple result sets and/or update counts. Normally you can ignore this unless you are (1) executing a stored procedure that you know may return multiple results or (2) you are dynamically executing an unknown SQL string.
The Note This method cannot be called on a
| |
| execute | back to summary |
|---|---|
| public boolean execute(String sql, String[] columnNames) throws UcanaccessSQLException Implements java. Doc from java. 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. This array contains the names of the columns in the
target table that contain the auto-generated keys that should be made
available. The driver will ignore the array if the SQL statement
is not an In some (uncommon) situations, a single SQL statement may return multiple result sets and/or update counts. Normally you can ignore this unless you are (1) executing a stored procedure that you know may return multiple results or (2) you are dynamically executing an unknown SQL string.
The Note This method cannot be called on a
| |
| executeBatch | back to summary |
|---|---|
| public int[] executeBatch() throws UcanaccessSQLException Implements java. Doc from java. Submits a batch of commands to the database for execution and
if all commands execute successfully, returns an array of update counts.
The
The possible implementations and return values have been modified in
the Java 2 SDK, Standard Edition, version 1.3 to
accommodate the option of continuing to process commands in a batch
update after a
| |
| executeImpl | back to summary |
|---|---|
| private <R> R executeImpl(String sql, IThrowingSupplier<R, SQLException> supplier) throws UcanaccessSQLException Executes a generic SQL operation, handling common setup and error mapping. This method centralizes the logic for setting the current statement, performing modification checks, and wrapping exceptions.
| |
| executeQuery | back to summary |
|---|---|
| public ResultSet executeQuery(String sql) throws UcanaccessSQLException Implements java. Doc from java. Executes the given SQL statement, which returns a single
Note This method cannot be called on a
| |
| executeUpdate | back to summary |
|---|---|
| public int executeUpdate(String sql) throws UcanaccessSQLException Implements java. Doc from java. Executes the given SQL statement, which may be an Note This method cannot be called on a
| |
| executeUpdate | back to summary |
|---|---|
| public int executeUpdate(String sql, int autoGeneratedKeys) throws UcanaccessSQLException Implements java. Doc from java. Executes the given SQL statement and signals the driver with the
given flag about whether the
auto-generated keys produced by this Note This method cannot be called on a
| |
| executeUpdate | back to summary |
|---|---|
| public int executeUpdate(String sql, int[] indexes) throws UcanaccessSQLException Implements java. Doc from java. 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. This array contains the indexes of the columns in the
target table that contain the auto-generated keys that should be made
available. The driver will ignore the array if the SQL statement
is not an Note This method cannot be called on a
| |
| executeUpdate | back to summary |
|---|---|
| public int executeUpdate(String sql, String[] columnNames) throws UcanaccessSQLException Implements java. Doc from java. 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. This array contains the names of the columns in the
target table that contain the auto-generated keys that should be made
available. The driver will ignore the array if the SQL statement
is not an Note This method cannot be called on a
| |
| getAliases | back to summary |
|---|---|
| protected Map | |
| getConnection | back to summary |
|---|---|
| public UcanaccessConnection getConnection() Implements java. Doc from java. Retrieves the
| |
| getFetchDirection | back to summary |
|---|---|
| public int getFetchDirection() throws UcanaccessSQLException Implements java. Doc from java. Retrieves the direction for fetching rows from
database tables that is the default for result sets
generated from this
| |
| getFetchSize | back to summary |
|---|---|
| public int getFetchSize() throws UcanaccessSQLException Implements java. Doc from java. Retrieves the number of result set rows that is the default
fetch size for
| |
| getGeneratedKeys | back to summary |
|---|---|
| public ResultSet getGeneratedKeys() throws UcanaccessSQLException Implements java. Doc from java. Retrieves any auto-generated keys created as a result of executing this
Note If the columns which represent the auto-generated keys were not specified, the JDBC driver implementation will determine the columns which best represent the auto-generated keys.
| |
| getMaxFieldSize | back to summary |
|---|---|
| public int getMaxFieldSize() throws UcanaccessSQLException Implements java. Doc from java. Retrieves the maximum number of bytes that can be
returned for character and binary column values in a
| |
| getMaxRows | back to summary |
|---|---|
| public int getMaxRows() throws UcanaccessSQLException Implements java. Doc from java. Retrieves the maximum number of rows that a
| |
| getMoreResults | back to summary |
|---|---|
| public boolean getMoreResults() throws UcanaccessSQLException Implements java. Doc from java. Moves to this There are no more results when the following is true:
| |
| getMoreResults | back to summary |
|---|---|
| public boolean getMoreResults(int current) throws UcanaccessSQLException Implements java. Doc from java. Moves to this There are no more results when the following is true:
| |
| getQueryTimeout | back to summary |
|---|---|
| public int getQueryTimeout() throws UcanaccessSQLException Implements java. Doc from java. Retrieves the number of seconds the driver will
wait for a
| |
| getResultSet | back to summary |
|---|---|
| public ResultSet getResultSet() throws UcanaccessSQLException Implements java. Doc from java. Retrieves the current result as a
| |
| getResultSetConcurrency | back to summary |
|---|---|
| public int getResultSetConcurrency() throws UcanaccessSQLException Implements java. Doc from java. Retrieves the result set concurrency for
| |
| getResultSetHoldability | back to summary |
|---|---|
| public int getResultSetHoldability() throws UcanaccessSQLException Implements java. Doc from java. Retrieves the result set holdability for
| |
| getResultSetType | back to summary |
|---|---|
| public int getResultSetType() throws UcanaccessSQLException Implements java. Doc from java. Retrieves the result set type for
| |
| getUpdateCount | back to summary |
|---|---|
| public int getUpdateCount() throws UcanaccessSQLException Implements java. Doc from java. Retrieves the current result as an update count;
if the result is a
| |
| getWarnings | back to summary |
|---|---|
| public SQLWarning getWarnings() throws UcanaccessSQLException Implements java. Doc from java. Retrieves the first warning reported by calls on this The warning chain is automatically cleared each time
a statement is (re)executed. This method may not be called on a closed
Note If you are processing a
| |
| getWrapped | back to summary |
|---|---|
| pack-priv Statement getWrapped() | |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() throws UcanaccessSQLException Implements java. Doc from java. Retrieves whether this
| |
| isCloseOnCompletion | back to summary |
|---|---|
| public boolean isCloseOnCompletion() throws UcanaccessSQLException Implements java. Doc from java. Returns a value indicating whether this
| |
| isEnableDisable | back to summary |
|---|---|
| pack-priv boolean isEnableDisable() | |
| isPoolable | back to summary |
|---|---|
| public boolean isPoolable() throws UcanaccessSQLException Implements java. Doc from java. Returns a value indicating whether the
| |
| isWrapperFor | back to summary |
|---|---|
| public boolean isWrapperFor(Class<?> iface) throws UcanaccessSQLException Implements java. Doc from java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper
for an object that does. Returns false otherwise. If this implements the interface then return true,
else if this is a wrapper then return the result of recursively calling
| |
| preprocess | back to summary |
|---|---|
| private String preprocess(String sql) | |
| reset | back to summary |
|---|---|
| protected void reset() throws UcanaccessSQLException | |
| reset | back to summary |
|---|---|
| protected void reset(Statement st) throws UcanaccessSQLException | |
| setAliases | back to summary |
|---|---|
| protected void setAliases(Map<String, String> aliases) | |
| setCursorName | back to summary |
|---|---|
| public void setCursorName(String name) throws UcanaccessSQLException Implements java. Doc from java. Sets the SQL cursor name to the given Note By definition, the execution of positioned updates and
deletes must be done by a different
| |
| setEnableDisable | back to summary |
|---|---|
| pack-priv void setEnableDisable(boolean enableDisable) | |
| setEscapeProcessing | back to summary |
|---|---|
| public void setEscapeProcessing(boolean enable) throws UcanaccessSQLException Implements java. Doc from java. Sets escape processing on or off. If escape scanning is on (the default), the driver will do escape substitution before sending the SQL statement to the database.
The Note Since prepared statements have usually been parsed prior
to making this call, disabling escape processing for
| |
| setFetchDirection | back to summary |
|---|---|
| public void setFetchDirection(int direction) throws UcanaccessSQLException Implements java. Doc from java. Gives the driver a hint as to the direction in which
rows will be processed in
Note that this method sets the default fetch direction for
result sets generated by this
| |
| setFetchSize | back to summary |
|---|---|
| public void setFetchSize(int rows) throws UcanaccessSQLException Implements java. Doc from java. Gives the JDBC driver a hint as to the number of rows that should
be fetched from the database when more rows are needed for
| |
| setGeneratedKey | back to summary |
|---|---|
| public void setGeneratedKey(Object key) | |
| setMaxFieldSize | back to summary |
|---|---|
| public void setMaxFieldSize(int max) throws UcanaccessSQLException Implements java. Doc from java. Sets the limit for the maximum number of bytes that can be returned for
character and binary column values in a
| |
| setMaxRows | back to summary |
|---|---|
| public void setMaxRows(int max) throws UcanaccessSQLException Implements java. Doc from java. Sets the limit for the maximum number of rows that any
| |
| setPoolable | back to summary |
|---|---|
| public void setPoolable(boolean poolable) throws UcanaccessSQLException Implements java. Doc from java. Requests that a The poolable value of a statement is applicable to both internal statement caches implemented by the driver and external statement caches implemented by application servers and other applications.
By default, a
| |
| setQueryTimeout | back to summary |
|---|---|
| public void setQueryTimeout(int seconds) throws UcanaccessSQLException Implements java. Doc from java. Sets the number of seconds the driver will wait for a
Note JDBC driver implementations may also apply this
limit to Note In the case of
| |
| tryCatch | back to summary |
|---|---|
| protected static final <T extends Throwable> void tryCatch(IThrowingRunnable<T> catchable) throws UcanaccessSQLException | |
| tryCatch | back to summary |
|---|---|
| protected static final <R, T extends Throwable> R tryCatch(IThrowingSupplier<R, T> catchable) throws UcanaccessSQLException | |
| tryCatch | back to summary |
|---|---|
| protected static final <R, T extends Throwable> R tryCatch(IThrowingSupplier<R, T> catchable, Function<Throwable, UcanaccessSQLException> exSupplier) throws UcanaccessSQLException | |
| unwrap | back to summary |
|---|---|
| public <T> T unwrap(Class<T> iface) throws UcanaccessSQLException Implements java. Doc from java. Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy.
If the receiver implements the interface then the result is the receiver
or a proxy for the receiver. If the receiver is a wrapper
and the wrapped object implements the interface then the result is the
wrapped object or a proxy for the wrapped object. Otherwise return the
the result of calling
| |