Module org.tentackle.session
Package org.tentackle.session
The low-level core of sessions, persistent objects and operations.
-
Interface Summary Interface Description ExclusiveSessionProvider An exclusive session provider.ModificationListener Listener for modifications.ModificationTracker Tracks global PDO changes.RemoteSession The remote session.
Provides access to the remote (server-side) client session.ReturnableSessionProvider Returnable session provider.Session The session.
Describes a persistence and security context.SessionCloseHandler A handler invoked whenever a Session is closed.SessionDependable Interface for objects depending on sessions.SessionFactory Factory forSessions.SessionHolder Holder for a session.SessionInfo Session information.SessionInfoFactory Factory forSessionInfo.SessionPool A pool of sessions.SessionPoolProvider An object maintaining a SessionPool.SessionProvider Session provider.SessionTaskDispatcher A TaskDispatcher using a Session. -
Class Summary Class Description AbstractSessionConfiguration Base class forBackendConfigurationandDriverConfiguration.AbstractSessionTask A task being executed by theSessionTaskDispatcher.BackendConfiguration Configuration for a database backend.
The configuration is stored via the standardPreferencesand provides the paramaters necessary to connect to the database backend.
The config refers to aDriverConfigurationthat loads the corresponding driver.DefaultSessionInfo The default implementation for a session info.DefaultSessionInfoFactory Default session info factory.DefaultSessionTaskDispatcher A thread executing tasks in a serialized manner on an exclusive connection.DriverConfiguration Configuration for a backend driver.
The configuration is stored via the standardPreferencesand provides the paramaters necessary to load the a driver.ModificationEvent Modification event.ModificationEventDetail Holds the event detail.ModificationListenerAdapter A modification listener adapter.SavepointHandle A savepoint handle.SessionBundle Bundle for the session module.SessionKeepAliveDaemon A task dispatcher to keep sessions alive.SessionKeepAliveTask The task to keep a session alive.
The task uses theExecutorServiceto spawn asynchroneous pings.SessionTaskDispatcherLock Lock for the DefaultSessionTaskDispatcher.SessionUtilities Utility methods for session related stuff.ThreadLocalSessionHolder A session holder returning the thread-local session.
Nice if no domain context available, e.g. -
Exception Summary Exception Description AlreadyLoggedInException Exception thrown if the user is already logged in.
Usually for appservers that don't allow a user logged in more than once.ConstraintException Runtime exception thrown for database constraint violations.LoginFailedException RMI servers should throw a LoginFailedException if authentication fails (or any other reason)NotFoundException Runtime exception thrown if objects that should exist are not found in the database.NotRemovableException Runtime exception thrown for not-removables.PersistenceException Database runtime exception.SessionClosedException Runtime exception thrown if the session is already closed.VersionInfoIncompatibleException Exception thrown if client's and server's versions don't match. -
Annotation Types Summary Annotation Type Description ClassId Annotation for the class id of a persistent object.Persistent Persistent fields and methods are annotated with this annotation.TableName Annotation for the tablename of a PDO.