# JdbcConnectionImpl

class JdbcConnectionImpl(val connection: Connection) : ExposedConnection<Connection>

Class representing a wrapped JDBC database Connection.

## Constructors

JdbcConnectionImpl
Link copied to clipboard
constructor(connection: Connection)

## Properties

autoCommit
Link copied to clipboard
open override var autoCommit: Boolean

Whether the connection is in auto-commit mode.

catalog
Link copied to clipboard
open override var catalog: String

The name of the connection's catalog.

connection
Link copied to clipboard
open override val connection: Connection

The underlying database connection object contained by this wrapper.

isClosed
Link copied to clipboard
open override val isClosed: Boolean

Whether the connection has been closed.

readOnly
Link copied to clipboard
open override var readOnly: Boolean

Whether the connection is in read-only mode.

schema
Link copied to clipboard
open override var schema: String

The name of the connection's schema.

transactionIsolation
Link copied to clipboard
open override var transactionIsolation: Int

The transaction isolation level of the connection.

## Functions

close
Link copied to clipboard
open override fun close()

Closes the connection and releases any of its database and/or driver resources.

commit
Link copied to clipboard
open override fun commit()

Saves all changes since the last commit or rollback operation.

executeInBatch
Link copied to clipboard
open override fun executeInBatch(sqls: List<String>)

Sends a collection of SQL strings to the database for execution as a batch statement.

metadata
Link copied to clipboard
open override fun <T> metadata(body: JdbcExposedDatabaseMetadata.() -> T): T

Calls the specified function body with a JdbcExposedDatabaseMetadata implementation as its receiver and returns the retrieved metadata as a result.

prepareStatement
Link copied to clipboard
open override fun prepareStatement(sql: String, columns: Array<String>): JdbcPreparedStatementImpl
open override fun prepareStatement(sql: String, returnKeys: Boolean): JdbcPreparedStatementImpl

Returns a precompiled sql statement stored as a JdbcPreparedStatementApi implementation.

releaseSavepoint
Link copied to clipboard
open override fun releaseSavepoint(savepoint: ExposedSavepoint)

Removes the specified savepoint.

rollback
Link copied to clipboard
open override fun rollback()

Reverts all changes since the last commit or rollback operation.

open override fun rollback(savepoint: ExposedSavepoint)

Reverts all changes since the specified savepoint was set.

setSavepoint
Link copied to clipboard
open override fun setSavepoint(name: String): ExposedSavepoint

Sets and returns a new savepoint with the specified name.