| Modifier and Type | Method and Description |
|---|---|
Session |
Session.clone()
Clones a session.
If the session is closed, a PersistenceException is thrown. The cloned session will always be non-grouped. |
Session |
SessionFactory.create(SessionInfo sessionInfo)
Creates a session.
|
protected Session |
PooledSessionTaskDispatcher.createSession()
Creates a new db session.
|
static Session |
Session.getCurrentSession()
Gets the session used by the current thread.
|
Session[] |
PooledSessionTaskDispatcher.getDbSessions()
Gets the db sessions.
|
Session |
SessionTaskDispatcherLock.getSession()
Gets the session associated to this lock.
|
Session |
SessionTaskDispatcher.getSession()
Gets the session.
|
Session |
SessionProvider.getSession()
Gets the session.
|
Session |
PersistenceException.getSession()
Gets the session.
|
Session |
SessionHolder.getSession()
Gets the session.
The threadlocal session is returned if the session is null. |
Session |
ModificationEvent.getSession()
Gets the session.
|
Session |
ThreadLocalSessionHolder.getSession() |
static Session |
Session.getSession()
Gets the thread local session.
|
Session |
AbstractSessionTask.getSession()
Gets the db the runnable must use.
|
Session |
DefaultSessionTaskDispatcher.getSession() |
Session |
ExclusiveSessionProvider.requestSession()
Requests a session for exclusive use.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SessionCloseHandler.afterClose(Session session)
Invoked after closing.
|
void |
SessionCloseHandler.beforeClose(Session session)
Invoked before closing.
|
long |
ModificationTracker.countModification(Session session,
String name)
Counts the modification for a given name.
Used to trigger modification events. |
protected Task |
SessionKeepAliveDaemon.createAliveTask(Session session,
long interval)
Creates a keep alive task.
|
void |
SessionKeepAliveDaemon.keepAliveIntervalChanged(Session session)
Handles the change of a keep alive interval of a session.
|
void |
SessionUtilities.keepAliveIntervalChanged(Session session)
Handles the change of a keep alive interval of a session.
|
void |
ReturnableSessionProvider.putSession(Session session)
Returns a session to the provider.
|
boolean |
ExclusiveSessionProvider.releaseSession(Session session)
Releases the session.
|
void |
SessionKeepAliveDaemon.removeAliveTask(Session session)
Removes the task for given session.
|
static void |
Session.setCurrentSession(Session session)
Sets the session used by the current thread.
The session is stored as ThreadLocal. |
void |
SessionTaskDispatcher.setSession(Session session)
Sets the session.
|
protected void |
PersistenceException.setSession(Session session)
Sets the db.
|
void |
SessionHolder.setSession(Session session)
Sets the session.
|
void |
SessionDependable.setSession(Session session)
Sets the logical session for this object.
|
void |
ThreadLocalSessionHolder.setSession(Session session) |
void |
AbstractSessionTask.setSession(Session session)
Sets the db.
Done by SessionTaskDispatcher. |
void |
DefaultSessionTaskDispatcher.setSession(Session session) |
| Constructor and Description |
|---|
AlreadyLoggedInException(Session session,
SessionInfo loginInfo)
Creates an
AlreadyLoggedInException. |
ConstraintException(Session session)
Constructs a new database constraint violation exception for a given session
with
null as its detail message. |
ConstraintException(Session session,
String message)
Constructs a new database constraint violation exception for a given session with the specified detail message.
|
ConstraintException(Session session,
String message,
Throwable cause)
Constructs a new database constraint violation exception for a given session with the specified detail message and
cause.
|
ConstraintException(Session session,
Throwable 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).
|
DefaultSessionTaskDispatcher(String name,
Session session,
boolean useMutexLocking,
long keepAliveMillis,
long deadInterval)
Creates an execution thread for a given session.
The session must not be used by any other thread! |
LoginFailedException(Session session)
Constructs a new login failed exception for a given session
with
null as its detail message. |
LoginFailedException(Session session,
String message)
Constructs a new login failed exception for a given session with the specified detail message.
|
LoginFailedException(Session session,
String message,
Throwable cause)
Constructs a new login failed exception for a given session with the specified detail message and
cause.
|
LoginFailedException(Session session,
Throwable 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).
|
ModificationEvent(Session session,
Collection<ModificationEventDetail> details)
Creates a modification event.
|
ModificationEvent(Session session,
long serial)
Creates a modification master event.
|
NotFoundException(Session session)
Constructs a new database object not found exception for a given session
with
null as its detail message. |
NotFoundException(Session session,
String message)
Constructs a new database object not found exception for a given session with the specified detail message.
|
NotFoundException(Session session,
String message,
Throwable cause)
Constructs a new database object not found exception for a given session with the specified detail message and
cause.
|
NotFoundException(Session session,
Throwable 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).
|
NotRemovableException(Session session)
Constructs a new not-removable exception for a given session
with
null as its detail message. |
NotRemovableException(Session session,
String message)
Constructs a new not-removable exception for a given session with the specified detail message.
|
NotRemovableException(Session session,
String message,
Throwable cause)
Constructs a new not-removable exception for a given session with the specified detail message and
cause.
|
NotRemovableException(Session session,
Throwable 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).
|
PersistenceException(Session session)
Constructs a new database runtime exception for a given db connection
with
null as its detail message. |
PersistenceException(Session session,
String message)
Constructs a new database runtime exception for a given db connection with the specified detail message.
|
PersistenceException(Session session,
String message,
Throwable cause)
Constructs a new database runtime exception for a given db connection with the specified detail message and
cause.
|
PersistenceException(Session session,
Throwable cause)
Constructs a new database runtime exception for a given db connection with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause).
|
SessionClosedException(Session session)
Constructs a new database session closed exception for a given session
with
null as its detail message. |
SessionClosedException(Session session,
String message)
Constructs a new database session closed exception for a given session with the specified detail message.
|
SessionClosedException(Session session,
String message,
Throwable cause)
Constructs a new database session closed exception for a given session with the specified detail message and
cause.
|
SessionClosedException(Session session,
Throwable 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).
|
SessionKeepAliveTask(SessionKeepAliveDaemon daemon,
Session session,
long interval,
long timeOut)
Creates a keep alive task.
|
Tentackle - distributed, domain- and model-driven