Example usage for Java org.springframework.jdbc.datasource ConnectionHolder fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
Savepoint | createSavepoint() Create a new JDBC 3.0 Savepoint for the current Connection, using generated savepoint names that are unique for the Connection. |
Connection | getConnection() Return the current Connection held by this ConnectionHolder. |
ConnectionHandle | getConnectionHandle() Return the ConnectionHandle held by this ConnectionHolder. |
int | getTimeToLiveInSeconds() Return the time to live for this object in seconds. |
boolean | hasConnection() Return whether this holder currently has a Connection. |
int | hashCode() Returns a hash code value for the object. |
boolean | hasTimeout() Return whether this object has an associated timeout. |
boolean | isRollbackOnly() Return whether the resource transaction is marked as rollback-only. |
boolean | isSynchronizedWithTransaction() Return whether the resource is synchronized with a transaction. |
void | released() Releases the current Connection held by this ConnectionHolder. |
void | requested() Increase the reference count by one because the holder has been requested (i.e. |
void | resetRollbackOnly() Reset the rollback-only status for this resource transaction. |
void | setConnection(@Nullable Connection connection) Override the existing Connection handle with the given Connection. |
void | setSynchronizedWithTransaction(boolean synchronizedWithTransaction) Mark the resource as synchronized with a transaction. |
boolean | supportsSavepoints() Return whether JDBC 3.0 Savepoints are supported. |