public class SessionStateHelper
extends java.lang.Object
| Constructor and Description |
|---|
SessionStateHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
restoreSessionState(java.sql.Connection dest,
java.lang.Boolean readOnly,
java.lang.Boolean autoCommit)
Restores partial session state from saved values to a connection.
|
void |
transferSessionState(java.util.EnumSet<SessionDirtyFlag> sessionState,
java.sql.Connection src,
java.sql.Connection dest)
Transfers session state from source connection to destination connection.
|
public void transferSessionState(java.util.EnumSet<SessionDirtyFlag> sessionState, java.sql.Connection src, java.sql.Connection dest) throws java.sql.SQLException
sessionState - Session state of source connectionsrc - The source connection to transfer state fromdest - The destination connection to transfer state tojava.sql.SQLException - if a database access error occurs, this method is called on a closed connection, this
method is called during a distributed transaction, or this method is called during a
transactionpublic void restoreSessionState(java.sql.Connection dest,
java.lang.Boolean readOnly,
java.lang.Boolean autoCommit)
throws java.sql.SQLException
dest - The destination connection to transfer state toreadOnly - ReadOnly flag to set toautoCommit - AutoCommit flag to set tojava.sql.SQLException - if a database access error occurs, this method is called on a closed connection, this
method is called during a distributed transaction, or this method is called during a
transaction