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
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
protected static Project
Cache the creation and initialization of the EclipseLink XML mapping project.static final String
protected static boolean
Allow for usage of schema validation to be configurable.static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Project
PUBLIC: Read the EclipseLink project deployment XML from the reader on the file.static Project
read
(Reader reader, ClassLoader classLoader) PUBLIC: Read the EclipseLink project deployment XML from the reader on the file.static Project
PUBLIC: Read the EclipseLink project deployment XML from the file or resource name.static Project
read
(String fileOrResourceName, ClassLoader classLoader) PUBLIC: Read the EclipseLink project deployment XML from the file or resource name.static Project
read1013Format
(Document document, ClassLoader classLoader) INTERNAL: Read the TopLink 10.1.3 deployment XML format.static Project
read1111Format
(Document document, ClassLoader classLoader) INTERNAL: Read the TopLink 11.1.1 deployment XML format.static Project
readObjectPersistenceRuntimeFormat
(Document document, ClassLoader classLoader, Project opmProject) Read a project in the format of an ObjectPersistenceRuntimeXMLProject.static void
setShouldUseSchemaValidation
(boolean value) PUBLIC: Set if schema validation will be used when parsing the deployment XML.static boolean
PUBLIC: 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.
-