Oracle Application Server TopLink API Reference
10g Release 2 (10.1.2)

B15903-01


oracle.toplink.remote
Class RemoteSession

java.lang.Object
  extended byoracle.toplink.publicinterface.Session
      extended byoracle.toplink.remote.DistributedSession
          extended byoracle.toplink.remote.RemoteSession

All Implemented Interfaces:
java.lang.Cloneable, CommandProcessor, java.io.Serializable, Session

public class RemoteSession
extends DistributedSession

Purpose: Provide transparent remote three-tiered replacation support. The remote session allows for complex three-tiered applications to be easily built. It gives the remote client the fully functionality of the TopLink api including,

This session is a primary interface which resides on the client side. Users would interact with session just the same way as if it was a normal session.

See Also:
Serialized Form

Field Summary

Fields inherited from interface oracle.toplink.remotecommand.CommandProcessor
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING

Constructor Summary
RemoteSession(oracle.toplink.internal.remote.RemoteConnection remoteConnection)

Method Summary
oracle.toplink.publicinterface.UnitOfWork acquireUnitOfWork()
PUBLIC: Return a unit of work for this session.
java.lang.Object executeQuery(DatabaseQuery query)
PUBLIC: Execute the database query.
DatabaseLogin getLogin()
PUBLIC: Return the login.
void initializeSequencing()
ADVANCED: Creates sequencing object for the session.

Methods inherited from class oracle.toplink.remote.DistributedSession
beginTransaction, commitTransaction, executeQuery, executeQuery, executeQuery, executeQuery, initializeAllIdentityMaps, isConnected, release, rollbackTransaction, toString

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

RemoteSession

public RemoteSession(oracle.toplink.internal.remote.RemoteConnection remoteConnection)

Method Detail

acquireUnitOfWork

public oracle.toplink.publicinterface.UnitOfWork acquireUnitOfWork()
PUBLIC: Return a unit of work for this session. The unit of work is an object level transaction that allows a group of changes to be applied as a unit.
Specified by:
acquireUnitOfWork in interface Session
Specified by:
acquireUnitOfWork in class DistributedSession
See Also:
UnitOfWork

executeQuery

public java.lang.Object executeQuery(DatabaseQuery query)
PUBLIC: Execute the database query.
Specified by:
executeQuery in interface Session
Specified by:
executeQuery in class DistributedSession

getLogin

public DatabaseLogin getLogin()
PUBLIC: Return the login. This must retreive the login information from the server this first time called. This is useful to be able to do things differently depending on the database platform.
Specified by:
getLogin in interface Session
Overrides:
getLogin in class oracle.toplink.publicinterface.Session

initializeSequencing

public void initializeSequencing()
ADVANCED: Creates sequencing object for the session. Typically there is no need for the user to call this method - it is called from the constructor.

Copyright © 1998, 2005 Oracle Corporation. All Rights Reserved.