Thread safety: the connection is thread-safe. Different statements from the same connection may try to execute their commands in parallel, but they will be executed sequentially. If real concurrent execution of these commands is needed, different connections should be used.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private Map | |
| private CommandInterface | |
| private Statement | |
| private CommandInterface | |
| private CommandInterface | |
| private int | |
| private static boolean | |
| private final ReentrantLock | |
| private static final String | |
| private static final String | |
| private int | |
| private CommandInterface | |
| private int | |
| private Session | |
| private CommandInterface | |
| private final String | |
| private final String | |
| private final CloseWatcher |
| Access | Constructor and Description |
|---|---|
| public | JdbcConnection(String
of this connection url, Properties of this connection info, String of this connection user, Object for the user password, boolean whether database creation is forbidden forbidCreation)INTERNAL the session closable object does not leak as Eclipse warns - due to the CloseWatcher. |
| public | |
| public | JdbcConnection(Session
of this connection session, String of this connection user, String of this connection url)INTERNAL |
| Modifier and Type | Method and Description |
|---|---|
| public void | abort(Executor
the executor used by this method executor)Implements java. [Not supported] |
| protected void | |
| private static void | |
| pack-priv static void | |
| private static void | |
| private static void | |
| public void | |
| public void | |
| private static CommandInterface | |
| private void | |
| private void | |
| public void | |
| private static JdbcSavepoint | |
| private static SQLClientInfoException | |
| public Array | Returns: the arraythe type name typeName, Object[] the values elements)Implements java. Create a new Array object. |
| public Blob | Returns: the objectImplements java. Create a new empty Blob object. |
| pack-priv Value | Returns: the valuethe input stream x, long the length (if smaller or equal than 0, all data until the
end of file is read) length)Create a Blob value from this input stream. |
| public Clob | Returns: the objectImplements java. Create a new empty Clob object. |
| pack-priv Value | Returns: the valuethe reader x, long the length (if smaller or equal than 0, all data until the
end of file is read) length)Create a Clob value from this reader. |
| public NClob | Returns: the objectImplements java. Create a new empty NClob object. |
| public SQLXML | Returns: the objectImplements java. Create a new SQLXML object with no data. |
| public Statement | Returns: the new statementImplements java. Creates a new statement. |
| public Statement | Returns: the statementthe result set type (ResultSet.TYPE_*) resultSetType, int the concurrency (ResultSet.CONCUR_*) resultSetConcurrency)Implements java. Creates a statement with the specified result set type and concurrency. |
| public Statement | Returns: the statementthe result set type (ResultSet.TYPE_*) resultSetType, int the concurrency (ResultSet.CONCUR_*) resultSetConcurrency, int the holdability (ResultSet.HOLD* / CLOSE*) resultSetHoldability)Implements java. Creates a statement with the specified result set type, concurrency, and holdability. |
| public Struct | createStruct(String
the SQL type name of the SQL structured type that this typeName, Object[] Struct
object maps to. The typeName is the name of a user-defined type that
has been defined for this database. It is the value returned by
Struct.getSQLTypeName.the attributes that populate the returned object attributes)Implements java. [Not supported] Create a new empty Struct object. |
| public ValueTimestampTimeZone | currentTimestamp()
Implements org. Returns the current timestamp with maximum resolution. |
| public TimeZoneProvider | currentTimeZone()
Implements org. Returns the current time zone. |
| private static boolean | |
| public boolean | Returns: true for on, false for offImplements java. Gets the current setting for auto commit. |
| public String | Returns: the catalog nameImplements java. Gets the current catalog name. |
| public Properties | Returns: the property listImplements java. Get the client properties. |
| public String | Returns: the property value or null if the property is not found or not supported.the client info name name)Implements java. Get a client property. |
| pack-priv CompareMode | |
| public int | Returns: the holdabilityImplements java. Returns the current result set holdability. |
| public JavaObjectSerializer | getJavaObjectSerializer()
Implements org. Returns the custom Java object serializer, or |
| public DatabaseMetaData | Returns: the database meta dataImplements java. Gets the database meta data for this database. |
| public Mode | |
| public int | |
| pack-priv int | |
| public String | Returns: current schema nameImplements java. Retrieves this current schema name for this connection. |
| public Session | |
| public Session. | |
| public int | Returns: the isolation levelImplements java. Returns the current transaction isolation level. |
| public Map | |
| pack-priv String | |
| pack-priv String | |
| public SQLWarning | Returns: nullImplements java. Gets the first warning reported by calls on this object. |
| public boolean | Returns: true if close was calledImplements java. Returns true if this connection has been closed. |
| private static boolean | |
| public boolean | Returns: if the database is read-onlyImplements java. Returns true if the database is read-only. |
| public boolean | Returns: true if the connection is valid.the number of seconds to wait for the database to respond
(ignored) timeout)Implements java. Returns true if this connection is still valid. |
| public boolean | Returns: whether or not the interface is assignable from this classthe class iface)Implements java. Checks if unwrap can return an object of this class. |
| protected final void | |
| public String | Returns: the translated statementthe SQL statement with or without JDBC escape sequences sql)Implements java. Translates a SQL statement into the database grammar. |
| public CallableStatement | Returns: the callable statementthe SQL statement sql)Implements java. Creates a new callable statement. |
| public CallableStatement | Returns: the callable statementthe SQL statement sql, int the result set type (ResultSet.TYPE_*) resultSetType, int the concurrency (ResultSet.CONCUR_*) resultSetConcurrency)Implements java. Creates a callable statement with the specified result set type and concurrency. |
| public CallableStatement | Returns: the callable statementthe SQL statement sql, int the result set type (ResultSet.TYPE_*) resultSetType, int the concurrency (ResultSet.CONCUR_*) resultSetConcurrency, int the holdability (ResultSet.HOLD* / CLOSE*) resultSetHoldability)Implements java. Creates a callable statement with the specified result set type, concurrency, and holdability. |
| pack-priv CommandInterface | Returns: the commandthe SQL statement sql, int the fetch size (used in remote connections) fetchSize)Prepare an command. |
| private CommandInterface | |
| public PreparedStatement | Returns: the prepared statementthe SQL statement sql)Implements java. Creates a new prepared statement. |
| public PreparedStatement | Returns: the prepared statementthe SQL statement sql, int the result set type (ResultSet.TYPE_*) resultSetType, int the concurrency (ResultSet.CONCUR_*) resultSetConcurrency)Implements java. Creates a prepared statement with the specified result set type and concurrency. |
| public PreparedStatement | Returns: the prepared statementthe SQL statement sql, int the result set type (ResultSet.TYPE_*) resultSetType, int the concurrency (ResultSet.CONCUR_*) resultSetConcurrency, int the holdability (ResultSet.HOLD* / CLOSE*) resultSetHoldability)Implements java. Creates a prepared statement with the specified result set type, concurrency, and holdability. |
| public PreparedStatement | Returns: the prepared statementthe SQL statement sql, int Statement#RETURN_GENERATED_KEYS if generated keys should
be available for retrieval, Statement#NO_GENERATED_KEYS if
generated keys should not be availableImplements java. Creates a new prepared statement. |
| public PreparedStatement | Returns: the prepared statementthe SQL statement sql, int[] an array of column indexes indicating the columns with generated
keys that should be returned from the inserted row columnIndexes)Implements java. Creates a new prepared statement. |
| public PreparedStatement | Returns: the prepared statementthe SQL statement sql, String[] an array of column names indicating the columns with generated
keys that should be returned from the inserted row columnNames)Implements java. Creates a new prepared statement. |
| public void | releaseSavepoint(Savepoint
the savepoint to release savepoint)Implements java. Releases a savepoint. |
| public void | |
| public void | rollback(Savepoint
the savepoint savepoint)Implements java. Rolls back to a savepoint. |
| private void | |
| public void | setAutoCommit(boolean
true for auto commit on, false for off autoCommit)Implements java. Switches auto commit on or off. |
| public void | setCatalog(String
ignored catalog)Implements java. Set the default catalog name. |
| public void | setClientInfo(String
the name of the property name, String the value value)Implements java. Set a client property. |
| public void | setClientInfo(Properties
the properties (ignored) properties)Implements java. Set the client properties. |
| pack-priv void | |
| public void | setHoldability(int
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMIT; holdability)Implements java. Changes the current result set holdability. |
| public void | setNetworkTimeout(Executor
the executor used by this method executor, int the TCP connection timeout milliseconds)Implements java. [Not supported] |
| pack-priv void | |
| public void | setReadOnly(boolean
ignored readOnly)Implements java. According to the JDBC specs, this setting is only a hint to the database to enable optimizations - it does not cause writes to be prohibited. |
| public Savepoint | Returns: the new savepointImplements java. Creates a new unnamed savepoint. |
| public Savepoint | Returns: the new savepointthe savepoint name name)Implements java. Creates a new named savepoint. |
| public void | setSchema(String
the schema name schema)Implements java. Sets the given schema name to access. |
| public void | setTransactionIsolation(int
the new transaction isolation level:
Connection.TRANSACTION_READ_UNCOMMITTED,
Connection.TRANSACTION_READ_COMMITTED,
Connection.TRANSACTION_REPEATABLE_READ,
6 (SNAPSHOT), or
Connection.TRANSACTION_SERIALIZABLE level)Implements java. Changes the current transaction isolation level. |
| public void | setTypeMap(Map<String, Class<?>>
the map)java.util.Map object to install
as the replacement for this Connection
object's default type mapImplements java. [Partially supported] Sets the type map. |
| public String | |
| private static int | |
| private static String | Returns: the SQL statement without JDBC escape sequencesthe SQL statement with or without JDBC escape sequences sql)Convert JDBC escape sequences in the SQL statement. |
| pack-priv static String | Returns: the SQL statement without JDBC escape sequencesthe SQL statement with or without JDBC escape sequences sql, boolean whether escape sequences should be replaced escapeProcessing)Convert JDBC escape sequences in the SQL statement if required. |
| private static String | |
| protected final void | |
| public <T> T | Returns: thisthe class iface)Implements java. Return an object of this class if possible. |
| public boolean | zeroBasedEnums()
Implements org. Returns are ENUM values 0-based. |