Java org.springframework.jdbc.datasource ConnectionHolder fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.jdbc.datasource ConnectionHolder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.jdbc.datasource ConnectionHolder.

The text is from its open source code.

Subclass

org.springframework.jdbc.datasource.ConnectionHolder has subclasses.
Click this link to see all its subclasses.

Constructor

ConnectionHolder(ConnectionHandle connectionHandle)
Create a new ConnectionHolder for the given ConnectionHandle.
ConnectionHolder(Connection connection)
Create a new ConnectionHolder for the given JDBC Connection, wrapping it with a SimpleConnectionHandle , assuming that there is no ongoing transaction.

Method

SavepointcreateSavepoint()
Create a new JDBC 3.0 Savepoint for the current Connection, using generated savepoint names that are unique for the Connection.
ConnectiongetConnection()
Return the current Connection held by this ConnectionHolder.
ConnectionHandlegetConnectionHandle()
Return the ConnectionHandle held by this ConnectionHolder.
intgetTimeToLiveInSeconds()
Return the time to live for this object in seconds.
booleanhasConnection()
Return whether this holder currently has a Connection.
inthashCode()
Returns a hash code value for the object.
booleanhasTimeout()
Return whether this object has an associated timeout.
booleanisRollbackOnly()
Return whether the resource transaction is marked as rollback-only.
booleanisSynchronizedWithTransaction()
Return whether the resource is synchronized with a transaction.
voidreleased()
Releases the current Connection held by this ConnectionHolder.
voidrequested()
Increase the reference count by one because the holder has been requested (i.e.
voidresetRollbackOnly()
Reset the rollback-only status for this resource transaction.
voidsetConnection(@Nullable Connection connection)
Override the existing Connection handle with the given Connection.
voidsetSynchronizedWithTransaction(boolean synchronizedWithTransaction)
Mark the resource as synchronized with a transaction.
booleansupportsSavepoints()
Return whether JDBC 3.0 Savepoints are supported.