| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected boolean | |
| protected List | |
| protected transient RemoteSessionController | |
| protected List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public UnitOfWorkImpl | acquireUnitOfWork()
Overrides org. Implements org. |
| public UnitOfWorkImpl | acquireUnitOfWork(ReferenceMode
The reference type the UOW should use internally when
referencing Working clones. Setting this to WEAK means the UOW will use
weak references to reference clones that support active object change
tracking and hard references for deferred change tracked objects.
Setting to FORCE_WEAK means that all objects will be referenced by weak
references and if the application no longer references the clone the
clone may be garbage collected. If the clone
has uncommitted changes then those changes will be lost. referenceMode)Overrides org. Implements org. |
| public void | beginEarlyTransaction()
Overrides org. Implements org. |
| public UnitOfWorkChangeSet | calculateChanges(Map<K, V> registeredObjects, UnitOfWorkChangeSet changeSet, boolean assignSequences, boolean shouldCloneMap)
Overrides org. |
| protected List | collectNewObjects()
This is done to maintain correspondence between local new objects and returned new objects from serialization. |
| protected List | collectUnregisteredNewObjects()
This is done to maintain correspondence between local unregistered new objects and returned unregistered new objects from serialization. |
| protected void | commitIntoRemoteUnitOfWork()
The remote unit of work returned after its commit on the server is merged with remote unit of work on the remote side. |
| public void | commitRootUnitOfWork()
Overrides org. |
| protected void | |
| public Object | executeQuery(String queryName)
Overrides org. Implements org. |
| public Object | executeQuery(String queryName, Class<?> domainClass)
Overrides org. Implements org. |
| public Object | executeQuery(String queryName, Class<?> domainClass, Vector<E> argumentValues)
Overrides org. |
| public Object | executeQuery(String queryName, Vector<E> argumentValues)
Overrides org. |
| protected void | fixRemoteChangeSet(UnitOfWorkChangeSet uowChangeSet, Map<K, V> cloneMap, AbstractSession session)
INTERNAL: Fix the transient fields in the serialized change set. |
| public Platform | getDatasourcePlatform()
Overrides org. Implements org. |
| public ClassDescriptor | getDescriptor(Class<?> domainClass)
Overrides org. Implements org. |
| public ClassDescriptor | getDescriptorForAlias(String
The descriptor alias. alias)Overrides org. Implements org. |
| public List | |
| public RemoteSessionController | getParentSessionController()
INTERNAL: Method returns the parent RemoteSessionController for this Remote UnitOfWork Used to retrieve Valueholders that were used on the client |
| public DatabasePlatform | getPlatform()
Overrides org. Implements org. |
| public List | |
| public Object | internalExecuteQuery(DatabaseQuery query, AbstractRecord Record)
Overrides org. |
| public boolean | |
| protected boolean | |
| public boolean | isRemoteUnitOfWork()
Overrides org. Implements org. |
| protected void | prepareForMergeIntoRemoteUnitOfWork()
The returned remote unit of work from the server is prepared to merge with local remote unit of work. |
| public void | reinitializeForSession(AbstractSession session, RemoteSessionController parentSessionController)
INTERNAL: Re-initialize for the server-side session. |
| public void | resumeUnitOfWork()
Overrides org. |
| public void | |
| protected void | |
| protected void | |
| public void | setParentSessionController(RemoteSessionController parentSessionController)
INTERNAL: Sets the parent RemoteSessionController for this Remote UnitOfWork Used to retrieve Valueholders that were used on the client |
| protected void | setUnregisteredNewObjectsCache(List<E> unregisteredNewObjectsCache)
Set unregistered new object cache |
| public String | toString()
Overrides org. |
| public boolean | verifyDelete(Object domainObject)
Overrides org. |
| public void | writeChanges()
Overrides org. Implements org. |
| isFlush | back to summary |
|---|---|
| protected boolean isFlush | |
| isOnClient | back to summary |
|---|---|
| protected boolean isOnClient | |
| newObjectsCache | back to summary |
|---|---|
| protected List<E> newObjectsCache | |
| parentSessionController | back to summary |
|---|---|
| protected transient RemoteSessionController parentSessionController | |
| unregisteredNewObjectsCache | back to summary |
|---|---|
| protected List<E> unregisteredNewObjectsCache | |
| RemoteUnitOfWork | back to summary |
|---|---|
| public RemoteUnitOfWork() | |
| RemoteUnitOfWork | back to summary |
|---|---|
| public RemoteUnitOfWork(RemoteUnitOfWork parent) | |
| RemoteUnitOfWork | back to summary |
|---|---|
| public RemoteUnitOfWork(DistributedSession parent) | |
| RemoteUnitOfWork | back to summary |
|---|---|
| public RemoteUnitOfWork(RemoteUnitOfWork parent, ReferenceMode referenceMode) | |
| RemoteUnitOfWork | back to summary |
|---|---|
| public RemoteUnitOfWork(DistributedSession parent, ReferenceMode referenceMode) | |
| acquireUnitOfWork | back to summary |
|---|---|
| public UnitOfWorkImpl acquireUnitOfWork() Overrides org. Implements org. The nested unit of work must also be remote.
| |
| acquireUnitOfWork | back to summary |
|---|---|
| public UnitOfWorkImpl acquireUnitOfWork(ReferenceMode referenceMode) Overrides org. Implements org. The nested unit of work must also be remote.
| |
| beginEarlyTransaction | back to summary |
|---|---|
| public void beginEarlyTransaction() throws DatabaseException Overrides org. Implements org. PUBLIC: Tell the unit of work to begin a transaction now. By default the unit of work will begin a transaction at commit time. The default is the recommended approach, however sometimes it is necessary to start the transaction before commit time. When the unit of work commits, this transaction will be committed. | |
| calculateChanges | back to summary |
|---|---|
| public UnitOfWorkChangeSet calculateChanges(Map<K, V> registeredObjects, UnitOfWorkChangeSet changeSet, boolean assignSequences, boolean shouldCloneMap) Overrides org. INTERNAL: Changes are calculated on the client, so avoid recalculating them on the server.
| |
| collectNewObjects | back to summary |
|---|---|
| protected List This is done to maintain correspondence between local new objects and returned new objects from serialization. Object correspondence is maintained by comparing primary keys but for new objects it is possible that primary key value is null as it is still not inserted. The returned new objects from serialization will have primary key value which will be inserted into corresponding local new objects. | |
| collectUnregisteredNewObjects | back to summary |
|---|---|
| protected List This is done to maintain correspondence between local unregistered new objects and returned unregistered new objects from serialization. Object correspondence is maintained by comparing primary keys but for unregistered new objects it is possible that primary key value is null as it is still not inserted. The returned unregistered new objects from serialization will have primary key value which will be inserted into corresponding local new objects. | |
| commitIntoRemoteUnitOfWork | back to summary |
|---|---|
| protected void commitIntoRemoteUnitOfWork() The remote unit of work returned after its commit on the server is merged with remote unit of work on the remote side. | |
| commitRootUnitOfWork | back to summary |
|---|---|
| public void commitRootUnitOfWork() Overrides org. Starts committing the remote unit of work. This must serialize the unit of work across to the server, commit the unit of work on the server, serialize it back and merge any server-side changes (such as sequence numbers) it into itself, then merge into the parent remote session.
| |
| commitRootUnitOfWorkOnClient | back to summary |
|---|---|
| protected void commitRootUnitOfWorkOnClient() Merges remote unit of work to parent remote session. | |
| executeQuery | back to summary |
|---|---|
| public Object executeQuery(String queryName) throws DatabaseException Overrides org. Implements org. PUBLIC: Execute the pre-defined query by name and return the result. Queries can be pre-defined and named to allow for their reuse. The named query can be defined on the remote session or the server-side session.
| |
| executeQuery | back to summary |
|---|---|
| public Object executeQuery(String queryName, Class<?> domainClass) throws DatabaseException Overrides org. Implements org. PUBLIC: Execute the pre-defined query by name and return the result. Queries can be pre-defined and named to allow for their reuse. The class is the descriptor in which the query was pre-defined. The query is executed on the server-side session.
| |
| executeQuery | back to summary |
|---|---|
| public Object executeQuery(String queryName, Class<?> domainClass, Vector<E> argumentValues) throws DatabaseException Overrides org. PUBLIC: Execute the pre-defined query by name and return the result. Queries can be pre-defined and named to allow for their reuse. The class is the descriptor in which the query was pre-defined.
| |
| executeQuery | back to summary |
|---|---|
| public Object executeQuery(String queryName, Vector<E> argumentValues) throws DatabaseException Overrides org. PUBLIC: Execute the pre-defined query by name and return the result. Queries can be pre-defined and named to allow for their reuse.
| |
| fixRemoteChangeSet | back to summary |
|---|---|
| protected void fixRemoteChangeSet(UnitOfWorkChangeSet uowChangeSet, Map<K, V> cloneMap, AbstractSession session) INTERNAL: Fix the transient fields in the serialized change set. | |
| getDatasourcePlatform | back to summary |
|---|---|
| public Platform getDatasourcePlatform() Overrides org. Implements org. INTERNAL: Return the database platform currently connected to. The platform is used for database specific behavior.
| |
| getDescriptor | back to summary |
|---|---|
| public ClassDescriptor getDescriptor(Class<?> domainClass) Overrides org. Implements org. Return the table descriptor specified for the class.
| |
| getDescriptorForAlias | back to summary |
|---|---|
| public ClassDescriptor getDescriptorForAlias(String alias) Overrides org. Implements org. Return the table descriptor specified for the class.
| |
| getNewObjectsCache | back to summary |
|---|---|
| public List Returns a new object cache | |
| getParentSessionController | back to summary |
|---|---|
| public RemoteSessionController getParentSessionController() INTERNAL: Method returns the parent RemoteSessionController for this Remote UnitOfWork Used to retrieve Valueholders that were used on the client | |
| getPlatform | back to summary |
|---|---|
| public DatabasePlatform getPlatform() Overrides org. Implements org. INTERNAL: Return the database platform currently connected to. The platform is used for database specific behavior.
| |
| getUnregisteredNewObjectsCache | back to summary |
|---|---|
| public List Returns an unregistered new object cache | |
| internalExecuteQuery | back to summary |
|---|---|
| public Object internalExecuteQuery(DatabaseQuery query, AbstractRecord Record) throws DatabaseException, QueryException Overrides org. INTERNAL: Return the results from exeucting the database query. the arguments should be a database row with raw data values.
| |
| isFlush | back to summary |
|---|---|
| public boolean isFlush() | |
| isOnClient | back to summary |
|---|---|
| protected boolean isOnClient() | |
| isRemoteUnitOfWork | back to summary |
|---|---|
| public boolean isRemoteUnitOfWork() Overrides org. Implements org. Return if this session is a unit of work.
| |
| prepareForMergeIntoRemoteUnitOfWork | back to summary |
|---|---|
| protected void prepareForMergeIntoRemoteUnitOfWork() The returned remote unit of work from the server is prepared to merge with local remote unit of work. | |
| reinitializeForSession | back to summary |
|---|---|
| public void reinitializeForSession(AbstractSession session, RemoteSessionController parentSessionController) INTERNAL: Re-initialize for the server-side session. This is done when the uow is passed back to the server for committing. | |
| resumeUnitOfWork | back to summary |
|---|---|
| public void resumeUnitOfWork() Overrides org. INTERNAL: Resume is not required on the server.
| |
| setIsFlush | back to summary |
|---|---|
| public void setIsFlush(boolean isFlush) | |
| setIsOnClient | back to summary |
|---|---|
| protected void setIsOnClient(boolean isOnClient) | |
| setNewObjectsCache | back to summary |
|---|---|
| protected void setNewObjectsCache(List<E> newObjectsCache) Set a new object cache | |
| setParentSessionController | back to summary |
|---|---|
| public void setParentSessionController(RemoteSessionController parentSessionController) INTERNAL: Sets the parent RemoteSessionController for this Remote UnitOfWork Used to retrieve Valueholders that were used on the client | |
| setUnregisteredNewObjectsCache | back to summary |
|---|---|
| protected void setUnregisteredNewObjectsCache(List<E> unregisteredNewObjectsCache) Set unregistered new object cache | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Avoid the toString printing the accessor and platform.
| |
| verifyDelete | back to summary |
|---|---|
| public boolean verifyDelete(Object domainObject) Overrides org. TESTING: This is used by testing code to ensure that a deletion was successful.
| |
| writeChanges | back to summary |
|---|---|
| public void writeChanges() Overrides org. Implements org. Simulate a flush, current just begins a transaction and commits.
| |