Description: This session is brokered by the server session for use in three-tiered applications. It is used to store the context of the connection, i.e. the login to be used for this client. This allows each client connected to the server to contain its own user login.
Responsibilities:
This class is an implementation of org..
Please refer to that class for a full API. The public interface should be used.
Server, org.eclipse.persistence.sessions.Session , org.eclipse.persistence.sessions.UnitOfWork
| Modifier and Type | Field and Description |
|---|---|
| protected ConnectionPolicy | |
| protected boolean | |
| protected ServerSession | |
| protected Sequencing | |
| protected Map |
| Access | Constructor and Description |
|---|---|
| public | ClientSession(ServerSession parent, ConnectionPolicy connectionPolicy)
INTERNAL: Create and return a new client session. |
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Accessor | addWriteConnection(String poolName, Accessor writeConnection)
INTERNAL: Add the connection to the client session. |
| public void | basicCommitTransaction()
Overrides org. |
| public void | basicRollbackTransaction()
Overrides org. |
| public void | |
| public boolean | containsQuery(String queryName)
Overrides org. Implements org. org..
|
| public void | disconnect(Accessor accessor)
INTERNAL: Disconnect the accessor only (this must be the write connection as the read is shared). |
| public Object | executeCall(Call call, AbstractRecord translationRow, DatabaseQuery query)
Overrides org. |
| public Accessor | getAccessor()
Overrides org. |
| public Collection | getAccessors()
Overrides org. |
| public CommandManager | Returns: a remote command managerOverrides org. Implements org. |
| public ConnectionPolicy | getConnectionPolicy()
ADVANCED: This method will return the connection policy that was used during the acquisition of this client session. |
| public Map | getDescriptors()
Overrides org. Implements org. |
| public AbstractSession | Returns: a session with a live accessormay store session name or reference class for brokers case query)Overrides org. |
| public ServerSession | getParent()
Overrides org. |
| public AbstractSession | Returns: Session with the required IdentityMaptrue when method calls itself. If the path
starting at canReturnSelf, boolean this is acceptable. Sometimes true if want to
move to the first valid session, i.e. executing on ClientSession when really
should be on ServerSession.return the last session in the chain where the Enitity is stored. terminalOnly)Overrides org. |
| public Object | getProperty(String name)
Overrides org. Implements org. |
| public DatabaseQuery | getQuery(String name)
Overrides org. Implements org. org..
|
| public DatabaseQuery | getQuery(String name, Vector<E> args)
Overrides org. |
| public Sequencing | getSequencing()
Overrides org. |
| public ServerPlatform | getServerPlatform()
Overrides org. Implements org. |
| public String | getSessionTypeString()
Overrides org. |
| public Accessor | |
| public Map | |
| public boolean | |
| public void | initializeIdentityMapAccessor()
Overrides org. |
| public void | |
| public boolean | isActive()
INTERNAL:
Was PUBLIC: customer will be redirected to |
| public boolean | isClientSession()
Overrides org. Implements org. |
| public boolean | isConnected()
Overrides org. Implements org. org..
|
| public boolean | isExclusiveConnectionRequired()
Overrides org. |
| public void | release()
Overrides org. Implements org. org..
|
| public void | releaseConnectionAfterCall(DatabaseQuery query)
Overrides org. |
| public void | releaseJTSConnection()
Overrides org. |
| public void | releaseReadConnection(Accessor connection)
Overrides org. |
| protected void | releaseWriteConnection()
INTERNAL: This is internal to the unit of work and should not be called otherwise. |
| public Object | retryQuery(DatabaseQuery query, AbstractRecord row, DatabaseException databaseException, int retryCount, AbstractSession executionSession)
Overrides org. |
| public DatabaseException | retryTransaction(Accessor writeConnection, DatabaseException databaseException, int retryCount, AbstractSession executionSession)
Overrides org. |
| public void | |
| protected void | |
| protected void | |
| public void | setWriteConnection(Accessor writeConnection)
INTERNAL: Set the connection to be used for database modification. |
| public void | setWriteConnections(Map<String, Accessor> writeConnections)
INTERNAL: Set the connection to be used for database modification. |
| public boolean | shouldPropagateChanges()
Overrides org. |
| public String | toString()
Overrides org. |