Deprecated
as a consequence of DefaultConnection being deprecated. See corresponding docs for further information.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Configuration | |
| pack-priv final Configuration | |
| pack-priv final Map | |
| pack-priv static final int | |
| pack-priv final DiagnosticsListeners | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv final RenderContext | |
| pack-priv final Parser | |
| pack-priv final boolean | |
| pack-priv final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final boolean | |
| pack-priv final boolean | |
| public final void | close()
Overrides org. Implements java. Connection object's database and JDBC resources
immediately instead of waiting for them to be automatically released.
|
| public final Statement | createStatement()
Overrides org. Implements java. Statement object for sending
SQL statements to the database.
|
| public final Statement | createStatement(int
a result set type; one of
resultSetType, int ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEa concurrency type; one of
resultSetConcurrency)ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEOverrides org. Implements java. Statement object that will generate
ResultSet objects with the given type and concurrency.
|
| public final Statement | createStatement(int
one of the following resultSetType, int ResultSet
constants:
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEone of the following resultSetConcurrency, int ResultSet
constants:
ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEone of the following resultSetHoldability)ResultSet
constants:
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMITOverrides org. Implements java. Statement object that will generate
ResultSet objects with the given type, concurrency,
and holdability.
|
| pack-priv final boolean | |
| private final Set | |
| pack-priv final Map | |
| pack-priv final String | |
| public final CallableStatement | prepareCall(String
an SQL statement that may contain one or more '?'
parameter placeholders. Typically this statement is specified using JDBC
call escape syntax. sql)Overrides org. Implements java. CallableStatement object for calling
database stored procedures.
|
| public final CallableStatement | prepareCall(String
a sql, int String object that is the SQL statement to
be sent to the database; may contain on or more '?' parametersa result set type; one of
resultSetType, int ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEa concurrency type; one of
resultSetConcurrency)ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEOverrides org. Implements java. CallableStatement object that will generate
ResultSet objects with the given type and concurrency.
|
| public final CallableStatement | prepareCall(String
a sql, int String object that is the SQL statement to
be sent to the database; may contain on or more '?' parametersone of the following resultSetType, int ResultSet
constants:
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEone of the following resultSetConcurrency, int ResultSet
constants:
ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEone of the following resultSetHoldability)ResultSet
constants:
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMITOverrides org. Implements java. CallableStatement object that will generate
ResultSet objects with the given type and concurrency.
|
| public final PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders sql)Overrides org. Implements java. PreparedStatement object for sending
parameterized SQL statements to the database.
|
| public final PreparedStatement | prepareStatement(String
a sql, int String object that is the SQL statement to
be sent to the database; may contain one or more '?' IN
parametersa result set type; one of
resultSetType, int ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEa concurrency type; one of
resultSetConcurrency)ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEOverrides org. Implements java. PreparedStatement object that will generate
ResultSet objects with the given type and concurrency.
|
| public final PreparedStatement | prepareStatement(String
a sql, int String object that is the SQL statement to
be sent to the database; may contain one or more '?' IN
parametersone of the following resultSetType, int ResultSet
constants:
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEone of the following resultSetConcurrency, int ResultSet
constants:
ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEone of the following resultSetHoldability)ResultSet
constants:
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMITOverrides org. Implements java. PreparedStatement object that will generate
ResultSet objects with the given type, concurrency,
and holdability.
|
| public final PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders sql, int a flag indicating whether auto-generated keys
should be returned; one of
autoGeneratedKeys)Statement.RETURN_GENERATED_KEYS or
Statement.NO_GENERATED_KEYSOverrides org. Implements java. PreparedStatement object that has
the capability to retrieve auto-generated keys.
|
| public final PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders sql, int[] an array of column indexes indicating the columns
that should be returned from the inserted row or rows columnIndexes)Overrides org. Implements java. PreparedStatement object capable
of returning the auto-generated keys designated by the given array.
|
| public final PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders sql, String[] an array of column names indicating the columns
that should be returned from the inserted row or rows columnNames)Overrides org. Implements java. PreparedStatement object capable
of returning the auto-generated keys designated by the given array.
|
| private final List |
| configuration | back to summary |
|---|---|
| pack-priv final Configuration configuration | |
| configurationTranformPatterns | back to summary |
|---|---|
| pack-priv final Configuration configurationTranformPatterns | |
| consecutiveAgg | back to summary |
|---|---|
| pack-priv final Map<String, List<String>> consecutiveAgg | |
| DUP_SIZE | back to summary |
|---|---|
| pack-priv static final int DUP_SIZE | |
| listeners | back to summary |
|---|---|
| pack-priv final DiagnosticsListeners listeners | |
| LRU_SIZE_GLOBAL | back to summary |
|---|---|
| pack-priv static final int LRU_SIZE_GLOBAL | |
| LRU_SIZE_LOCAL | back to summary |
|---|---|
| pack-priv static final int LRU_SIZE_LOCAL | |
| normalisingRenderer | back to summary |
|---|---|
| pack-priv final RenderContext normalisingRenderer | |
| parser | back to summary |
|---|---|
| pack-priv final Parser parser | |
| release | back to summary |
|---|---|
| pack-priv final boolean release | |
| repeatedSQL | back to summary |
|---|---|
| pack-priv final Map<String, List<String>> repeatedSQL | |
| DiagnosticsConnection | back to summary |
|---|---|
| pack-priv DiagnosticsConnection(Configuration configuration) | |
| DiagnosticsConnection | back to summary |
|---|---|
| pack-priv DiagnosticsConnection(Configuration configuration, Connection c) | |
| check | back to summary |
|---|---|
| pack-priv final boolean check(Predicate<? super Settings> test) | |
| checkPattern | back to summary |
|---|---|
| pack-priv final boolean checkPattern(Predicate<? super Settings> test) | |
| close | back to summary |
|---|---|
| public final void close() throws SQLException Overrides org. Implements java. Doc from java. Releases this
Calling the method
It is strongly recommended that an application explicitly
commits or rolls back an active transaction prior to calling the
| |
| createStatement | back to summary |
|---|---|
| public final Statement createStatement() throws SQLException Overrides org. Implements java. Doc from java. Creates a
Result sets created using the returned
| |
| createStatement | back to summary |
|---|---|
| public final Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException Overrides org. Implements java. Doc from java. Creates a
| |
| createStatement | back to summary |
|---|---|
| public final Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException Overrides org. Implements java. Doc from java. Creates a
| |
| disabled | back to summary |
|---|---|
| pack-priv final boolean disabled() | |
| duplicates | back to summary |
|---|---|
| private final Set | |
| duplicateSql | back to summary |
|---|---|
pack-priv final Map
| |
| parse | back to summary |
|---|---|
| pack-priv final String parse(String sql) | |
| prepareCall | back to summary |
|---|---|
| public final CallableStatement prepareCall(String sql) throws SQLException Overrides org. Implements java. Doc from java. Creates a Note This method is optimized for handling stored
procedure call statements. Some drivers may send the call
statement to the database when the method
Result sets created using the returned
| |
| prepareCall | back to summary |
|---|---|
| public final CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException Overrides org. Implements java. Doc from java. Creates a
| |
| prepareCall | back to summary |
|---|---|
| public final CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException Overrides org. Implements java. Doc from java. Creates a
| |
| prepareStatement | back to summary |
|---|---|
| public final PreparedStatement prepareStatement(String sql) throws SQLException Overrides org. Implements java. Doc from java. Creates a
A SQL statement with or without IN parameters can be
pre-compiled and stored in a Note This method is optimized for handling
parametric SQL statements that benefit from precompilation. If
the driver supports precompilation,
the method
Result sets created using the returned
| |
| prepareStatement | back to summary |
|---|---|
| public final PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException Overrides org. Implements java. Doc from java. Creates a
| |
| prepareStatement | back to summary |
|---|---|
| public final PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException Overrides org. Implements java. Doc from java. Creates a
This method is the same as the
| |
| prepareStatement | back to summary |
|---|---|
| public final PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException Overrides org. Implements java. Doc from java. Creates a default Note This method is optimized for handling
parametric SQL statements that benefit from precompilation. If
the driver supports precompilation,
the method
Result sets created using the returned
| |
| prepareStatement | back to summary |
|---|---|
| public final PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException Overrides org. Implements java. Doc from java. Creates a default
An SQL statement with or without IN parameters can be
pre-compiled and stored in a Note This method is optimized for handling
parametric SQL statements that benefit from precompilation. If
the driver supports precompilation,
the method
Result sets created using the returned
| |
| prepareStatement | back to summary |
|---|---|
| public final PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException Overrides org. Implements java. Doc from java. Creates a default
An SQL statement with or without IN parameters can be
pre-compiled and stored in a Note This method is optimized for handling
parametric SQL statements that benefit from precompilation. If
the driver supports precompilation,
the method
Result sets created using the returned
| |
| repetitions | back to summary |
|---|---|
| private final List | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | size
Hides java. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | removeEldestEntry(Map.
The least recently inserted entry in the map, or if
this is an access-ordered map, the least recently accessed
entry. This is the entry that will be removed if this
method returns eldesttrue. If the map was empty prior
to the put or putAll invocation resulting
in this invocation, this will be the entry that was just
inserted; in other words, if the map contains a single
entry, the eldest entry is also the newest.Overrides java. true if this map should remove its eldest entry.
|
| size | back to summary |
|---|---|
| private final int size Hides java. | |
| LRU | back to summary |
|---|---|
| pack-priv LRU(int size) | |
| removeEldestEntry | back to summary |
|---|---|
| protected boolean removeEldestEntry(Map. Overrides java. Doc from java. Returns Sample use: this override will allow the map to grow up to 100 entries and then delete the eldest entry each time a new entry is added, maintaining a steady state of 100 entries.
private static final int MAX_ENTRIES = 100;
protected boolean removeEldestEntry(Map.Entry eldest) {
return size() > MAX_ENTRIES;
}
This method typically does not modify the map in any way,
instead allowing the map to modify itself as directed by its
return value. It is permitted for this method to modify
the map directly, but if it does so, it must return
This implementation merely returns
| |