| Access | Constructor and Description |
|---|---|
| public | |
| public | IsolatedClientSession(ServerSession parent, ConnectionPolicy connectionPolicy, Map<K, V> properties)
|
| Modifier and Type | Method and Description |
|---|---|
| protected CacheKey | getCacheKeyFromTargetSessionForMerge(Object implementation, ObjectBuilder builder, ClassDescriptor descriptor, MergeManager mergeManager)
Overrides org. |
| public AbstractSession | Returns: a session with a live accessormay store session name or reference class for brokers case query)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 void | initializeIdentityMapAccessor()
Overrides org. |
| public boolean | isIsolatedClientSession()
Overrides org. |
| protected boolean | isIsolatedQuery(DatabaseQuery query)
INTERNAL: Answers if this query is an isolated query and must be executed locally. |
| public boolean | isProtectedSession()
Overrides org. |
| protected boolean | shouldExecuteLocally(DatabaseQuery query)
INTERNAL: Helper method to calculate whether to execute this query locally or send it to the server session. |
| IsolatedClientSession | back to summary |
|---|---|
| public IsolatedClientSession(ServerSession parent, ConnectionPolicy connectionPolicy) | |
| IsolatedClientSession | back to summary |
|---|---|
| public IsolatedClientSession(ServerSession parent, ConnectionPolicy connectionPolicy, Map<K, V> properties) | |
| getCacheKeyFromTargetSessionForMerge | back to summary |
|---|---|
| protected CacheKey getCacheKeyFromTargetSessionForMerge(Object implementation, ObjectBuilder builder, ClassDescriptor descriptor, MergeManager mergeManager) Overrides org. INTERNAL: For use within the merge process this method will get an object from the shared cache using a readlock. If a readlock is unavailable then the merge manager will be transitioned to deferred locks and a deferred lock will be used.
| |
| getExecutionSession | back to summary |
|---|---|
| public AbstractSession getExecutionSession(DatabaseQuery query) Overrides org. INTERNAL: Gets the session which this query will be executed on. Generally will be called immediately before the call is translated, which is immediately before session.executeCall. Since the execution session also knows the correct datasource platform to execute on, it is often used in the mappings where the platform is needed for type conversion, or where calls are translated. Is also the session with the accessor. Will return a ClientSession if it is in transaction and has a write connection.
| |
| getParentIdentityMapSession | back to summary |
|---|---|
| public AbstractSession getParentIdentityMapSession(ClassDescriptor descriptor, boolean canReturnSelf, boolean terminalOnly) Overrides org. INTERNAL: Returns the appropriate IdentityMap session for this descriptor. Sessions can be chained and each session can have its own Cache/IdentityMap. Entities can be stored at different levels based on Cache Isolation. This method will return the correct Session for a particular Entity class based on the Isolation Level and the attributes provided.
| |
| initializeIdentityMapAccessor | back to summary |
|---|---|
| public void initializeIdentityMapAccessor() Overrides org. INTERNAL: Set up the IdentityMapManager. This method allows subclasses of Session to override the default IdentityMapManager functionality.
| |
| isIsolatedClientSession | back to summary |
|---|---|
| public boolean isIsolatedClientSession() Overrides org. PUBLIC: Return if this session is an isolated client session.
| |
| isIsolatedQuery | back to summary |
|---|---|
| protected boolean isIsolatedQuery(DatabaseQuery query) INTERNAL: Answers if this query is an isolated query and must be executed locally. | |
| isProtectedSession | back to summary |
|---|---|
| public boolean isProtectedSession() Overrides org. PUBLIC: Returns true if Protected Entities should be built within this session
| |
| shouldExecuteLocally | back to summary |
|---|---|
| protected boolean shouldExecuteLocally(DatabaseQuery query) INTERNAL: Helper method to calculate whether to execute this query locally or send it to the server session. | |