EclipseLink 2.5.0, build 'v20130110-d839ca4' API Reference

org.eclipse.persistence.core.sessions
Interface CoreSession<DESCRIPTOR extends CoreDescriptor,LOGIN extends CoreLogin>

All Known Subinterfaces:
DatabaseSession, Server, Session, UnitOfWork
All Known Implementing Classes:
org.eclipse.persistence.internal.sessions.AbstractSession, ClientSession, org.eclipse.persistence.internal.core.sessions.CoreAbstractSession, org.eclipse.persistence.internal.sessions.DatabaseSessionImpl, DistributedSession, RemoteSession, ServerSession, SessionBroker

public interface CoreSession<DESCRIPTOR extends CoreDescriptor,LOGIN extends CoreLogin>


Method Summary
 LOGIN getDatasourceLogin()
          PUBLIC: Return the login, the login holds any database connection information given.
 DESCRIPTOR getDescriptor(java.lang.Class theClass)
          ADVANCED: Return the descriptor specified for the class.
 DESCRIPTOR getDescriptor(java.lang.Object domainObject)
          ADVANCED: Return the descriptor specified for the object's class.
 

Method Detail

getDatasourceLogin

LOGIN getDatasourceLogin()
PUBLIC: Return the login, the login holds any database connection information given. This return the Login interface and may need to be cast to the datasource specific implementation.


getDescriptor

DESCRIPTOR getDescriptor(java.lang.Class theClass)
ADVANCED: Return the descriptor specified for the class. If the class does not have a descriptor but implements an interface that is also implemented by one of the classes stored in the map, that descriptor will be stored under the new class.


getDescriptor

DESCRIPTOR getDescriptor(java.lang.Object domainObject)
ADVANCED: Return the descriptor specified for the object's class.


EclipseLink 2.5.0, build 'v20130110-d839ca4' API Reference