EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference

org.eclipse.persistence.core.sessions
Class CoreProject<DESCRIPTOR extends CoreDescriptor,LOGIN extends CoreLogin,SESSION extends CoreSession>

java.lang.Object
  extended by org.eclipse.persistence.core.sessions.CoreProject<DESCRIPTOR,LOGIN,SESSION>
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Project

public abstract class CoreProject<DESCRIPTOR extends CoreDescriptor,LOGIN extends CoreLogin,SESSION extends CoreSession>
extends java.lang.Object
implements java.io.Serializable

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

See Also:
Serialized Form

Constructor Summary
CoreProject()
           
 
Method Summary
abstract  void addDescriptor(DESCRIPTOR descriptor)
           
abstract  void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
          INTERNAL: Convert all the class-name-based settings in this project to actual class-based settings.
abstract  SESSION createDatabaseSession()
          INTERNAL: Factory method to create session.
abstract  LOGIN getDatasourceLogin()
          PUBLIC: Return the login, the login holds any database connection information given.
abstract  DESCRIPTOR getDescriptor(java.lang.Class theClass)
          PUBLIC: Return the descriptor specified for the class.
abstract  java.util.List<DESCRIPTOR> getOrderedDescriptors()
          INTERNAL: Return the descriptors in the order added.
abstract  void setLogin(LOGIN datasourceLogin)
          PUBLIC: Set the login to be used to connect to the database for this project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreProject

public CoreProject()
Method Detail

addDescriptor

public abstract void addDescriptor(DESCRIPTOR descriptor)

convertClassNamesToClasses

public abstract void convertClassNamesToClasses(java.lang.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.


createDatabaseSession

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.


getDatasourceLogin

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.


getDescriptor

public abstract DESCRIPTOR getDescriptor(java.lang.Class theClass)
PUBLIC: Return the descriptor specified for the class.


getOrderedDescriptors

public abstract java.util.List<DESCRIPTOR> getOrderedDescriptors()
INTERNAL: Return the descriptors in the order added. Used to maintain consistent order in XML.


setLogin

public abstract void setLogin(LOGIN datasourceLogin)
PUBLIC: Set the login to be used to connect to the database for this project.


EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference