Top Description Methods
org.eclipse.persistence.core.sessions

public Interface CoreSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager>

Known Direct Subinterfaces
org.eclipse.persistence.sessions.Session
Known Direct Implementers
org.eclipse.persistence.internal.core.sessions.CoreAbstractSession
Imports
java.util.Map, org.eclipse.persistence.core.descriptors.CoreDescriptor, org.eclipse.persistence.internal.core.databaseaccess.CorePlatform

INTERNAL A abstraction of session capturing behavior common to all persistence types.

Method Summary

Modifier and TypeMethod and Description
public LOGIN
getDatasourceLogin()

PUBLIC: Return the login, the login holds any database connection information given.

public PLATFORM
getDatasourcePlatform()

PUBLIC: Return the database platform currently connected to.

public DESCRIPTOR
getDescriptor(Class<?> theClass)

ADVANCED: Return the descriptor specified for the class.

public DESCRIPTOR
getDescriptor(Object domainObject)

ADVANCED: Return the descriptor specified for the object's class.

public Map<Class<?>, DESCRIPTOR>
getDescriptors()

ADVANCED: Return all registered descriptors.

public SESSION_EVENT_MANAGER
getEventManager()

PUBLIC: Return the event manager.

public PROJECT
getProject()

PUBLIC: Return the project.

public void
setLogLevel(int logLevel)

PUBLIC: Set the log level.

Method Detail

getDatasourceLoginback to summary
public 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.

getDatasourcePlatformback to summary
public PLATFORM getDatasourcePlatform()

PUBLIC: Return the database platform currently connected to. The platform is used for database specific behavior.

getDescriptorback to summary
public DESCRIPTOR getDescriptor(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.

getDescriptorback to summary
public DESCRIPTOR getDescriptor(Object domainObject)

ADVANCED: Return the descriptor specified for the object's class.

getDescriptorsback to summary
public Map<Class<?>, DESCRIPTOR> getDescriptors()

ADVANCED: Return all registered descriptors.

getEventManagerback to summary
public SESSION_EVENT_MANAGER getEventManager()

PUBLIC: Return the event manager. The event manager can be used to register for various session events.

getProjectback to summary
public PROJECT getProject()

PUBLIC: Return the project. The project includes the login and descriptor and other configuration information.

setLogLevelback to summary
public void setLogLevel(int logLevel)

PUBLIC: Set the log level.