Class XMLProjectReader
java.lang.Object
org.eclipse.persistence.sessions.factories.XMLProjectReader
Purpose: Allow for a EclipseLink Mapping Workbench generated deployment XML project file to be read. This reader returns an instance of Project to be used to initialize a EclipseLink session. This class supports reading the 11g 11.1.1 and 10g 10.1.3.
- Author:
- James Sutherland
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringprotected static ProjectCache the creation and initialization of the EclipseLink XML mapping project.static final Stringprotected static booleanAllow for usage of schema validation to be configurable.static final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProjectPUBLIC: Read the EclipseLink project deployment XML from the reader on the file.static Projectread(Reader reader, ClassLoader classLoader) PUBLIC: Read the EclipseLink project deployment XML from the reader on the file.static ProjectPUBLIC: Read the EclipseLink project deployment XML from the file or resource name.static Projectread(String fileOrResourceName, ClassLoader classLoader) PUBLIC: Read the EclipseLink project deployment XML from the file or resource name.static Projectread1013Format(Document document, ClassLoader classLoader) INTERNAL: Read the TopLink 10.1.3 deployment XML format.static Projectread1111Format(Document document, ClassLoader classLoader) INTERNAL: Read the TopLink 11.1.1 deployment XML format.static ProjectreadObjectPersistenceRuntimeFormat(Document document, ClassLoader classLoader, Project opmProject) Read a project in the format of an ObjectPersistenceRuntimeXMLProject.static voidsetShouldUseSchemaValidation(boolean value) PUBLIC: Set if schema validation will be used when parsing the deployment XML.static booleanPUBLIC: Return if schema validation will be used when parsing the deployment XML.
-
Field Details
-
shouldUseSchemaValidation
protected static boolean shouldUseSchemaValidationAllow for usage of schema validation to be configurable. -
project
Cache the creation and initialization of the EclipseLink XML mapping project. -
SCHEMA_DIR
- See Also:
-
OPM_SCHEMA
- See Also:
-
ECLIPSELINK_SCHEMA
- See Also:
-
ECLIPSELINK_1_0_SCHEMA
- See Also:
-
TOPLINK_11_SCHEMA
- See Also:
-
TOPLINK_10_SCHEMA
- See Also:
-
-
Constructor Details
-
XMLProjectReader
public XMLProjectReader()
-
-
Method Details
-
shouldUseSchemaValidation
public static boolean shouldUseSchemaValidation()PUBLIC: Return if schema validation will be used when parsing the deployment XML. -
setShouldUseSchemaValidation
public static void setShouldUseSchemaValidation(boolean value) PUBLIC: Set if schema validation will be used when parsing the deployment XML. By default schema validation is on, but can be turned off if validation problems occur, or to improve parsing performance. -
read
PUBLIC: Read the EclipseLink project deployment XML from the file or resource name. If a resource name is used the default class loader will be used to resolve the resource. Note the default class loader must be able to resolve the domain classes. Note the file must be the deployment XML, not the Mapping Workbench project file. -
read
PUBLIC: Read the EclipseLink project deployment XML from the reader on the file. Note the class loader must be able to resolve the domain classes. Note the file must be the deployment XML, not the Mapping Workbench project file. This API supports 10g (10.0.3), 11g (11.1.1) formats. -
read
PUBLIC: Read the EclipseLink project deployment XML from the file or resource name. If a resource name is used the class loader will be used to resolve the resource. Note the class loader must be able to resolve the domain classes. Note the file must be the deployment XML, not the Mapping Workbench project file. -
read1013Format
INTERNAL: Read the TopLink 10.1.3 deployment XML format. -
read1111Format
INTERNAL: Read the TopLink 11.1.1 deployment XML format. -
readObjectPersistenceRuntimeFormat
public static Project readObjectPersistenceRuntimeFormat(Document document, ClassLoader classLoader, Project opmProject) Read a project in the format of an ObjectPersistenceRuntimeXMLProject. This could include a TopLink 11.1.1 project or a TopLink 10.1.3 project- Parameters:
document-classLoader-opmProject-- Returns:
-
read
PUBLIC: Read the EclipseLink project deployment XML from the reader on the file. Note the default class loader must be able to resolve the domain classes. Note the file must be the deployment XML, not the Mapping Workbench project file.
-