![]() |
Quadcap Embeddable Database |
Inheritance diagram for com.quadcap.jdbc.Connection:

Definition at line 69 of file Connection.java.
Public Member Functions | |
| Connection (Database db, String auth, String passwd) throws SQLException | |
| Construct a new connection object for the specified database and userid. | |
| Database | getDatabase () |
| Return the database to which this connection is bound. | |
| final com.quadcap.sql.Connection | getConnection () |
| Return the connection's session. | |
| void | clearWarnings () |
| Clears all warnings that have been reported on calls to this connection. | |
| void | close () throws SQLException |
Close this connection, which implicitly ends (i.e., commits) any pending transactions for this connection, closes any ResultSets opened on this connection, and marks the connection as closed. | |
| void | finalize () throws Throwable |
| Make sure the connection closes on gc... | |
| void | commit () throws SQLException |
| Commit any pending changes for the current transaction. | |
| java.sql.Statement | createStatement () throws SQLException |
Return a new Statement object that can be used to execute SQL statements on this connection. | |
| boolean | getAutoCommit () throws SQLException |
Return the current value for the autoCommit variable. | |
| String | getCatalog () |
QED doesn't support catalogs, so this function returns null. | |
| java.sql.DatabaseMetaData | getMetaData () throws SQLException |
| int | getTransactionIsolation () |
Return the current transaction isolation level -- QED currently only supports TRANSACTION_SERIALIZABLE. | |
| SQLWarning | getWarnings () |
QED doesn't generate any SQLWarnings, so this function always returns null. | |
| boolean | isClosed () |
| Return true if this connection has been closed. | |
| boolean | isReadOnly () |
| Return true if this connection is read only. | |
| String | nativeSQL (String stmt) |
| This function is supposed to translate the specified query into the native query language of the underlying DBMS. | |
| CallableStatement | prepareCall (String sql) throws SQLException |
| QED doesn't support stored procedures, so this method returns a "not implemented" exception. | |
| CallableStatement | prepareCall (String sql, int resultType, int resultSetConcurrency) throws SQLException |
| QED doesn't support stored procedures, so this method returns a "not implemented" exception. | |
| java.sql.PreparedStatement | prepareStatement (String sql) throws SQLException |
Returns a new PreparedStatement statement, which is a pre-compiled representation of the statement sql, with place holders for parameters specified using the '?' character. | |
| java.sql.PreparedStatement | prepareStatement (String sql, int resultType, int resultSetConcurrency) throws SQLException |
Returns a new PreparedStatement statement, which is a pre-compiled representation of the statement sql, with place holders for parameters specified using the '?' character. | |
| void | rollback () throws SQLException |
| Roll back any pending changes for the current transaction. | |
| void | setAutoCommit (boolean autoCommit) throws SQLException |
Set the state of the autoCommit flag. | |
| void | setCatalog (String catalog) throws SQLException |
| QED doesn't support catalogs, so this function throws a "not implemented" exception. | |
| void | setReadOnly (boolean readOnly) throws SQLException |
QED doesn't support read-only connections, so this function will throw a "not implemented" exception if it is called with readOnly == true. | |
| void | setTransactionIsolation (int trans) throws SQLException |
QED only supports the TRANSACTION_SERIALIZABLE isolation level, so this function will throw a "not implemented" exception if it is called with any other value. | |
| void | setTypeMap (Map map) throws SQLException |
| Set the type map to be used for custom type mapping of UDTS. | |
| Map | getTypeMap () throws SQLException |
| Return the current type map to be used for custom type mapping of UDTS. | |
| java.sql.Statement | createStatement (int resultType, int resultSetConcurrency) throws SQLException |
Return a new Statement object that can be used to execute SQL statements on this connection. | |
| void | setHoldability (int holdability) throws SQLException |
Changes the holdability of ResultSet objects created using this Connection object to the given holdability. | |
| int | getHoldability () throws SQLException |
Retrieves the current holdability of ResultSet objects created using this Connection object. | |
| Savepoint | setSavepoint () throws SQLException |
Creates an unnamed savepoint in the current transaction and returns the new Savepoint object that represents it. | |
| Savepoint | setSavepoint (String name) throws SQLException |
Creates a savepoint with the given name in the current transaction and returns the new Savepoint object that represents it. | |
| void | rollback (Savepoint savepoint) throws SQLException |
Undoes all changes made after the given Savepoint object was set. | |
| void | releaseSavepoint (Savepoint savepoint) throws SQLException |
Removes the given Savepoint object from the current transaction. | |
| java.sql.Statement | createStatement (int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException |
Creates a Statement object that will generate ResultSet objects with the given type, concurrency, and holdability. | |
| java.sql.PreparedStatement | prepareStatement (String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException |
Creates a PreparedStatement object that will generate ResultSet objects with the given type, concurrency, and holdability. | |
| CallableStatement | prepareCall (String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException |
Creates a CallableStatement object that will generate ResultSet objects with the given type and concurrency. | |
| java.sql.PreparedStatement | prepareStatement (String sql, int autoGeneratedKeys) throws SQLException |
Creates a default PreparedStatement object that has the capability to retrieve auto-generated keys. | |
| java.sql.PreparedStatement | prepareStatement (String sql, int columnIndexes[]) throws SQLException |
Creates a default PreparedStatement object capable of returning the auto-generated keys designated by the given array. | |
| java.sql.PreparedStatement | prepareStatement (String sql, String columnNames[]) throws SQLException |
Creates a default PreparedStatement object capable of returning the auto-generated keys designated by the given array. | |
Package Attributes | |
| Database | db |
| com.quadcap.sql.Connection | qConn = null |
| boolean | closed = false |
| Map | typeMap = null |
| DatabaseMetaData | dbm = null |
Return a DatabaseMetaData object that can be used to get information about the features supported by QED. | |
Static Package Attributes | |
| final ConfigNumber | trace |
|
||||||||||||||||
|
Construct a new connection object for the specified database and userid.
Definition at line 102 of file Connection.java. References com.quadcap.jdbc.Connection.db, com.quadcap.jdbc.Connection.qConn, and com.quadcap.jdbc.Connection.trace. |
|
|
Clears all warnings that have been reported on calls to this connection. QED doesn't currently throw any SQLWarnings, so this operation does nothing. Definition at line 145 of file Connection.java. |
|
|
Close this connection, which implicitly ends (i.e., commits) any pending transactions for this connection, closes any It is an error to attempt to use this connection after the close operation
Definition at line 157 of file Connection.java. References com.quadcap.jdbc.Connection.closed, com.quadcap.jdbc.Connection.qConn, and com.quadcap.jdbc.Connection.trace. Referenced by com.quadcap.jdbc.Connection.finalize(). |
|
|
Commit any pending changes for the current transaction.
This ends the transaction; any further statements executed by this connection will cause a new transaction to be started. This method closes any
Definition at line 193 of file Connection.java. References com.quadcap.jdbc.Connection.closed, com.quadcap.jdbc.Connection.qConn, and com.quadcap.jdbc.Connection.trace. |
|
||||||||||||||||
|
Creates a
This method is the same as the
Definition at line 676 of file Connection.java. References com.quadcap.jdbc.Connection.createStatement(). |
|
||||||||||||
|
Return a new
Definition at line 514 of file Connection.java. References com.quadcap.jdbc.Connection.closed. |
|
|
Return a new
Definition at line 214 of file Connection.java. References com.quadcap.jdbc.Connection.closed. Referenced by com.quadcap.jdbc.Connection.createStatement(). |
|
|
Make sure the connection closes on gc...
Definition at line 176 of file Connection.java. References com.quadcap.jdbc.Connection.close(), and com.quadcap.jdbc.Connection.closed. |
|
|
Return the current value for the
By default, connections are created with
Definition at line 230 of file Connection.java. References com.quadcap.jdbc.Connection.closed, and com.quadcap.jdbc.Connection.qConn. |
|
|
QED doesn't support catalogs, so this function returns
Definition at line 241 of file Connection.java. |
|
|
Return the connection's session.
Definition at line 132 of file Connection.java. References com.quadcap.jdbc.Connection.qConn. Referenced by com.quadcap.jdbc.DatabaseMetaData.DatabaseMetaData(), and com.quadcap.jdbc.Statement.Statement(). |
|
|
Return the database to which this connection is bound.
Definition at line 122 of file Connection.java. References com.quadcap.jdbc.Connection.db. Referenced by com.quadcap.jdbc.DatabaseMetaData.DatabaseMetaData(). |
|
|
Retrieves the current holdability of
QED:
Definition at line 569 of file Connection.java. |
|
|
Definition at line 252 of file Connection.java. References com.quadcap.jdbc.Connection.dbm. |
|
|
Return the current transaction isolation level -- QED currently only supports
Definition at line 269 of file Connection.java. |
|
|
Return the current type map to be used for custom type mapping of UDTS. In this release of QED, this call will succeed, but type mapping is not fully implemented in this release.
Definition at line 500 of file Connection.java. References com.quadcap.jdbc.Connection.typeMap. |
|
|
QED doesn't generate any
Definition at line 279 of file Connection.java. |
|
|
Return true if this connection has been closed.
Definition at line 288 of file Connection.java. References com.quadcap.jdbc.Connection.closed. |
|
|
Return true if this connection is read only. QED doesn't currently support read-only connections, so this always returns false
Definition at line 299 of file Connection.java. |
|
|
This function is supposed to translate the specified query into the native query language of the underlying DBMS. In QED, the native query language is SQL-92, and JDBC escapes are directly supported by the DBMS, so this translation is a no-op, and always returns the original string
Definition at line 313 of file Connection.java. References com.quadcap.jdbc.Connection.nativeSQL(). Referenced by com.quadcap.jdbc.Connection.nativeSQL(). |
|
||||||||||||||||||||
|
Creates a
This method is the same as the
Definition at line 762 of file Connection.java. |
|
||||||||||||||||
|
QED doesn't support stored procedures, so this method returns a "not implemented" exception.
Definition at line 340 of file Connection.java. |
|
|
QED doesn't support stored procedures, so this method returns a "not implemented" exception.
Definition at line 325 of file Connection.java. References com.quadcap.jdbc.Connection.prepareCall(). Referenced by com.quadcap.jdbc.Connection.prepareCall(). |
|
||||||||||||
|
Creates a default
This array contains the names of the columns in the target table that contain the auto-generated keys that should be returned. This array is ignored if the SQL statement is not an
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
Definition at line 908 of file Connection.java. References com.quadcap.jdbc.Connection.prepareStatement(). |
|
||||||||||||
|
Creates a default
This array contains the indexes of the columns in the target table that contain the auto-generated keys that should be made available. This array is ignored if the SQL statement is not an
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
Definition at line 861 of file Connection.java. References com.quadcap.jdbc.Connection.prepareStatement(). |
|
||||||||||||
|
Creates a default
The given constant tells the driver whether it should make auto-generated keys available for retrieval. This parameter is ignored if the SQL statement is not an
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
Definition at line 811 of file Connection.java. References com.quadcap.jdbc.Connection.prepareStatement(). |
|
||||||||||||||||||||
|
Creates a
This method is the same as the
Definition at line 721 of file Connection.java. References com.quadcap.jdbc.Connection.prepareStatement(). |
|
||||||||||||||||
|
Returns a new
Definition at line 387 of file Connection.java. References com.quadcap.jdbc.Connection.closed, and com.quadcap.jdbc.Connection.prepareStatement(). |
|
|
Returns a new
Definition at line 360 of file Connection.java. References com.quadcap.jdbc.Connection.closed, and com.quadcap.jdbc.Connection.prepareStatement(). Referenced by com.quadcap.jdbc.Connection.prepareStatement(). |
|
|
Removes the given
Any reference to the savepoint after it have been removed will cause an
QED:
Definition at line 642 of file Connection.java. References com.quadcap.jdbc.Connection.releaseSavepoint(). Referenced by com.quadcap.jdbc.Connection.releaseSavepoint(). |
|
|
Undoes all changes made after the given This method should be used only when auto-commit has been disabled.
QED:
Definition at line 625 of file Connection.java. |
|
|
Roll back any pending changes for the current transaction.
This ends the transaction; any further statements executed by this connection will cause a new transaction to be started. This method closes any
Definition at line 409 of file Connection.java. References com.quadcap.jdbc.Connection.closed, com.quadcap.jdbc.Connection.qConn, and com.quadcap.jdbc.Connection.trace. |
|
|
Set the state of the
Definition at line 430 of file Connection.java. References com.quadcap.jdbc.Connection.closed, com.quadcap.jdbc.Connection.qConn, com.quadcap.jdbc.Connection.setAutoCommit(), and com.quadcap.jdbc.Connection.trace. Referenced by com.quadcap.jdbc.Connection.setAutoCommit(). |
|
|
QED doesn't support catalogs, so this function throws a "not implemented" exception.
Definition at line 446 of file Connection.java. References com.quadcap.jdbc.Connection.setCatalog(). Referenced by com.quadcap.jdbc.Connection.setCatalog(). |
|
|
Changes the holdability of
QED:
Definition at line 549 of file Connection.java. References com.quadcap.jdbc.Connection.setHoldability(). Referenced by com.quadcap.jdbc.Connection.setHoldability(). |
|
|
QED doesn't support read-only connections, so this function will throw a "not implemented" exception if it is called with
Definition at line 458 of file Connection.java. References com.quadcap.jdbc.Connection.setReadOnly(). Referenced by com.quadcap.jdbc.Connection.setReadOnly(). |
|
|
Creates a savepoint with the given name in the current transaction and returns the new
QED:
Definition at line 604 of file Connection.java. |
|
|
Creates an unnamed savepoint in the current transaction and returns the new
QED:
Definition at line 586 of file Connection.java. |
|
|
QED only supports the
Definition at line 473 of file Connection.java. References com.quadcap.jdbc.Connection.setTransactionIsolation(). Referenced by com.quadcap.jdbc.Connection.setTransactionIsolation(). |
|
|
Set the type map to be used for custom type mapping of UDTS. In this release of QED, this call will succeed, but type mapping is not fully implemented in this release.
Definition at line 489 of file Connection.java. References com.quadcap.jdbc.Connection.setTypeMap(). Referenced by com.quadcap.jdbc.Connection.setTypeMap(). |
|
|
|
Definition at line 88 of file Connection.java. Referenced by com.quadcap.jdbc.Connection.Connection(), and com.quadcap.jdbc.Connection.getDatabase(). |
|
|
Return a
Definition at line 251 of file Connection.java. Referenced by com.quadcap.jdbc.Connection.getMetaData(). |
|
|
|
Initial value:
Definition at line 84 of file Connection.java. Referenced by com.quadcap.jdbc.Connection.close(), com.quadcap.jdbc.Connection.commit(), com.quadcap.jdbc.Connection.Connection(), com.quadcap.jdbc.Connection.rollback(), and com.quadcap.jdbc.Connection.setAutoCommit(). |
|
|
Definition at line 91 of file Connection.java. Referenced by com.quadcap.jdbc.Connection.getTypeMap(). |