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

public abstract Class 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>

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
org.eclipse.persistence.sessions.Project
Imports
java.io.Serializable, java.util.List, org.eclipse.persistence.core.descriptors.CoreDescriptor

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

Constructor Summary

AccessConstructor and Description
protected
CoreProject()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public abstract void
addDescriptor(DESCRIPTOR descriptor)

public abstract void
convertClassNamesToClasses(ClassLoader classLoader)

INTERNAL: Convert all the class-name-based settings in this project to actual class-based settings.

public abstract SESSION
createDatabaseSession()

INTERNAL: Factory method to create session.

public abstract LOGIN
getDatasourceLogin()

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

public abstract DESCRIPTOR
getDescriptor(Class<?> theClass)

PUBLIC: Return the descriptor specified for the class.

public abstract List<DESCRIPTOR>
getOrderedDescriptors()

INTERNAL: Return the descriptors in the order added.

public abstract void
setLogin(LOGIN datasourceLogin)

PUBLIC: Set the login to be used to connect to the database for this project.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CoreProjectback to summary
protected CoreProject()

Default constructor.

Method Detail

addDescriptorback to summary
public abstract void addDescriptor(DESCRIPTOR descriptor)
convertClassNamesToClassesback to summary
public abstract void convertClassNamesToClasses(ClassLoader classLoader)

INTERNAL: Convert all the class-name-based settings in this project to actual class-based settings. This will also reset any class references to the version of the class from the class loader.

createDatabaseSessionback to summary
public abstract SESSION createDatabaseSession()

INTERNAL: Factory method to create session. This returns an implementor of the CoreSession interface, which can be used to login and add descriptors from other projects. The CoreSession interface however should be used for reading and writing once connected for complete portability.

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

getDescriptorback to summary
public abstract DESCRIPTOR getDescriptor(Class<?> theClass)

PUBLIC: Return the descriptor specified for the class.

getOrderedDescriptorsback to summary
public abstract List<DESCRIPTOR> getOrderedDescriptors()

INTERNAL: Return the descriptors in the order added. Used to maintain consistent order in XML.

setLoginback to summary
public abstract void setLogin(LOGIN datasourceLogin)

PUBLIC: Set the login to be used to connect to the database for this project.