Clones a session.
If the session is closed, a PersistenceException is thrown.
The cloned session will always be non-grouped.
Creates a session with the default session info.
Creates a session for a pool.
Notice that this method is provided for
SessionPool implementations only.
Gets a session from the pool for a given session info.
Gets the session used by the current thread.
Gets the db the runnable must use.
Gets the thread-local session.
Gets the session.
The thread-local session is returned if the session is null.
Gets the session associated to this lock.
Requests a session for exclusive use.
void
void
long
Counts the modification for a given name.
Used to trigger modification events.
SessionPoolFactory.create(String name,
Session session,
int iniSize,
int incSize,
int minSize,
int maxSize,
long maxIdleMinutes,
long maxUsageMinutes)
Creates a single-user session pool.
SessionPoolFactory.create(String name,
Session session,
int maxSize,
int maxTotalSize,
long maxIdleMinutes,
long maxUsageMinutes)
Creates a multi-user session pool.
Creates a keep alive task.
protected boolean
Returns whether the exception message spans multiple lines.
void
Handles the change of a keep alive interval of a session.
void
Handles the change of a keep alive interval of a session.
void
Returns a session back to the pool.
Returning a closed session will remove it from the pool.
void
Returns a session to the provider.
boolean
void
Removes the task for given session.
static void
Sets the session used by the current thread.
The session is stored as
ThreadLocal.
void
void
void
Sets the logical session for this object.
void
void
void
Creates an AlreadyLoggedInException.
Constructs a new database constraint violation exception for a given session
with null as its detail message.
Constructs a new database constraint violation exception for a given session with the specified detail message.
Constructs a new database constraint violation exception for a given session with the specified detail message and
cause.
Constructs a new database constraint violation exception for a given session with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause).
Creates an execution thread for a given session.
The session must not be used by any other thread!
Constructs a new login failed exception for a given session
with null as its detail message.
Constructs a new login failed exception for a given session with the specified detail message.
Constructs a new login failed exception for a given session with the specified detail message and
cause.
Constructs a new login failed exception for a given session with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause).
Creates a modification master event.
Creates a modification event.
Constructs a new database object not found exception for a given session
with null as its detail message.
Constructs a new database object not found exception for a given session with the specified detail message.
Constructs a new database object not found exception for a given session with the specified detail message and
cause.
Constructs a new database object not found exception for a given session with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause).
Constructs a new not-removable exception for a given session
with null as its detail message.
Constructs a new not-removable exception for a given session with the specified detail message.
Constructs a new not-removable exception for a given session with the specified detail message and
cause.
Constructs a new not-removable exception for a given session with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause).
Constructs a new database runtime exception for a given session
with null as its detail message.
Constructs a new database runtime exception for a given session with the specified detail message.
Constructs a new database runtime exception for a given session with the specified detail message and
cause.
Constructs a new database runtime exception for a given session with the specified cause and a
detail message of (cause==null ? null : cause.toString()).
Constructs a new database session closed exception for a given session
with null as its detail message.
Constructs a new database session closed exception for a given session with the specified detail message.
Constructs a new database session closed exception for a given session with the specified detail message and
cause.
Constructs a new database session closed exception for a given session with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause).
Creates a keep alive task.