Connection

Members

Functions

close
void close()

Releases this Connection object's database and JDBC resources immediately instead of waiting for them to be automatically released.

commit
void commit()

Makes all changes made since the previous commit/rollback permanent and releases any database locks currently held by this Connection object.

createStatement
Statement createStatement()

Creates a Statement object for sending SQL statements to the database.

getAutoCommit
bool getAutoCommit()

Retrieves the current auto-commit mode for this Connection object.

getCatalog
string getCatalog()

Retrieves this Connection object's current catalog name.

isClosed
bool isClosed()

Retrieves whether this Connection object has been closed.

prepareStatement
PreparedStatement prepareStatement(string query)

Creates a PreparedStatement object for sending parameterized SQL statements to the database.

rollback
void rollback()

Undoes all changes made in the current transaction and releases any database locks currently held by this Connection object.

setAutoCommit
void setAutoCommit(bool autoCommit)

Sets this connection's auto-commit mode to the given state.

setCatalog
void setCatalog(string catalog)

Sets the given catalog name in order to select a subspace of this Connection object's database in which to work.

Meta