Class CoreProject<DESCRIPTOR extends CoreDescriptor,LOGIN extends CoreLogin,SESSION extends CoreSession>
java.lang.Object
org.eclipse.persistence.core.sessions.CoreProject<DESCRIPTOR,LOGIN,SESSION>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Project
public abstract class CoreProject<DESCRIPTOR extends CoreDescriptor,LOGIN extends CoreLogin,SESSION extends CoreSession>
extends Object
implements Serializable
INTERNAL
A abstraction of project capturing behavior common to all persistence types.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addDescriptor
(DESCRIPTOR descriptor) abstract void
convertClassNamesToClasses
(ClassLoader classLoader) INTERNAL: Convert all the class-name-based settings in this project to actual class-based settings.abstract SESSION
INTERNAL: Factory method to create session.abstract LOGIN
PUBLIC: Return the login, the login holds any database connection information given.abstract DESCRIPTOR
getDescriptor
(Class theClass) PUBLIC: Return the descriptor specified for the class.abstract List<DESCRIPTOR>
INTERNAL: Return the descriptors in the order added.abstract void
PUBLIC: Set the login to be used to connect to the database for this project.
-
Constructor Details
-
CoreProject
public CoreProject()
-
-
Method Details
-
addDescriptor
-
convertClassNamesToClasses
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. -
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. -
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
PUBLIC: Return the descriptor specified for the class. -
getOrderedDescriptors
INTERNAL: Return the descriptors in the order added. Used to maintain consistent order in XML. -
setLogin
PUBLIC: Set the login to be used to connect to the database for this project.
-