|
Oracle TopLink Java API Reference 10g Release 3 (10.1.3.1) B28219-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
DatabaseSessionImpl
oracle.toplink.sessionbroker.SessionBroker
Purpose: Provide a single view to a TopLink session that transparently accesses multple databases.
Responsibilities:
Constructor Summary | |
SessionBroker() PUBLIC: Create and return a session broker. |
Method Summary | |
SessionBroker |
acquireClientSessionBroker() PUBLIC: Return a session broker that behaves as a client session broker. |
UnitOfWork |
acquireUnitOfWork() PUBLIC: Return a unit of work for this session broker. |
void |
addDescriptor(Descriptor descriptor) PUBLIC: You cannot add a descriptor to a session broker, you must add it to its session. |
void |
addDescriptors(Project project) PUBLIC: You cannot add a project to a session broker, you must add it to its session. |
void |
addDescriptors(java.util.Vector descriptors) PUBLIC: You cannot add descriptors to a session broker, you must add them to its session. |
boolean |
containsQuery(java.lang.String queryName) PUBLIC: Return true if the pre-defined query is defined on the session. |
AsOfClause |
getAsOfClause() ADVANCED: Answers the past time this session is as of. |
DatabaseQuery |
getQuery(java.lang.String name) PUBLIC: Return the query from the session pre-defined queries with the given name. |
DatabaseQuery |
getQuery(java.lang.String name, java.util.Vector arguments) PUBLIC: Return the query from the session pre-defined queries with the given name and argument types. |
Sequencing |
getSequencing() PUBLIC: Return the Sequencing object used by the session. |
void |
initializeSequencing() ADVANCED: Creates sequencing object for the session broker. |
boolean |
isClientSessionBroker() PUBLIC: Return if this session is a client session broker. |
boolean |
isConnected() PUBLIC: Return if all sessions are still connected to the database. |
boolean |
isServerSessionBroker() PUBLIC: Return if this session is a server session broker. |
void |
login() PUBLIC: Connect to the database using the predefined login. |
void |
login(java.lang.String userName, java.lang.String password) PUBLIC: Connect to the database using the predefined login. |
void |
logout() PUBLIC: Disconnect from all databases. |
void |
registerSession(java.lang.String name, Session session) PUBLIC: Register the session under its name. |
void |
registerSession(java.lang.String name, Session session) PUBLIC: Register the session under its name. |
void |
release() PUBLIC: Release the session. |
void |
releaseClientSessionBroker() Deprecated. Since OracleAS TopLink 10g (10.0.3). Use release(). |
void |
setIntegrityChecker(IntegrityChecker integrityChecker) PUBLIC: set the integrityChecker. |
void |
setLog(java.io.Writer log) PUBLIC: Set the message log. |
void |
setProfiler(SessionProfiler profiler) PUBLIC: Set the profiler for the session. |
void |
setSessionLog(SessionLog log) PUBLIC: Set the session log. |
void |
setShouldLogMessages(boolean shouldLog) Deprecated. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SessionBroker()
Method Detail |
public SessionBroker acquireClientSessionBroker()
public UnitOfWork acquireUnitOfWork()
UnitOfWork
public void addDescriptor(Descriptor descriptor)
public void addDescriptors(java.util.Vector descriptors) throws ValidationException
ValidationException
public void addDescriptors(Project project) throws ValidationException
ValidationException
public boolean containsQuery(java.lang.String queryName)
public AsOfClause getAsOfClause()
null
if no clause set, or this a regular session.oracle.toplink.expressions.AsOfClause
, #acquireSessionAsOf(java.lang.Number)
, #acquireSessionAsOf(java.util.Date)
, #hasAsOfClause
public DatabaseQuery getQuery(java.lang.String name)
public DatabaseQuery getQuery(java.lang.String name, java.util.Vector arguments)
public boolean isClientSessionBroker()
public boolean isConnected()
public boolean isServerSessionBroker()
public void login() throws DatabaseException
DatabaseException
public void login(java.lang.String userName, java.lang.String password) throws DatabaseException
DatabaseException
public void logout() throws DatabaseException
TopLinkException
- if a transaction is active, you must rollback any active transaction before logout.DatabaseException
- the database will also raise an error if their is an active transaction, or a general error occurs.public void registerSession(java.lang.String name, Session session)
public void registerSession(java.lang.String name, Session session)
public void release()
public void releaseClientSessionBroker()
public void setIntegrityChecker(IntegrityChecker integrityChecker)
public void setSessionLog(SessionLog log)
#logMessages()
public void setLog(java.io.Writer log)
#logMessages()
public void setProfiler(SessionProfiler profiler)
public void setShouldLogMessages(boolean shouldLog)
#setLogLevel(int level, String category)
public void initializeSequencing()
public Sequencing getSequencing()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |