Module org.eclipse.persistence.jpa
Class XMLEntityMappingsReader
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.xml.XMLEntityMappingsReader
ORM.xml reader.
- Since:
- EclipseLink 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()Free the project and schema objects to avoid holding onto the memory.static XMLContextstatic Schemastatic XMLContextstatic Schemastatic XMLContextstatic Schemastatic XMLContextstatic Schemastatic XMLContextstatic Schemastatic XMLContextstatic Schemastatic XMLContextstatic Schemaprotected static SchemaloadLocalSchema(String schemaName) Load the XML schema from the jar resource.protected static XMLEntityMappingsINTERNAL:static XMLEntityMappingsread(String sourceName, Reader reader, ClassLoader classLoader, Map properties) INTERNAL:static XMLEntityMappingsread(URL url, ClassLoader classLoader, Properties properties) INTERNAL:
-
Field Details
-
ORM_1_0_XSD
- See Also:
-
ORM_1_0_NAMESPACE
- See Also:
-
ORM_2_0_XSD
- See Also:
-
ORM_2_0_NAMESPACE
- See Also:
-
ORM_2_1_XSD
- See Also:
-
ORM_2_1_NAMESPACE
- See Also:
-
ORM_2_2_XSD
- See Also:
-
ORM_2_2_NAMESPACE
- See Also:
-
ORM_3_0_XSD
- See Also:
-
ORM_3_0_NAMESPACE
- See Also:
-
ORM_3_1_XSD
- See Also:
-
ORM_3_1_NAMESPACE
- See Also:
-
ECLIPSELINK_ORM_XSD
- See Also:
-
ECLIPSELINK_ORM_NAMESPACE
- See Also:
-
-
Method Details
-
getEclipseLinkOrmProject
- Returns:
- the Eclipselink orm project.
-
getEclipseLinkOrmSchema
- Returns:
- the Eclipselink orm schema.
- Throws:
IOExceptionSAXException
-
getOrm1_0Project
- Returns:
- the JPA 1.0 orm project.
-
getOrm1_0Schema
- Returns:
- the JPA 1.0 orm schema.
- Throws:
IOExceptionSAXException
-
getOrm2_0Project
- Returns:
- the JPA 2.0 orm project.
-
getOrm2_0Schema
- Returns:
- the JPA 2.0 orm schema.
- Throws:
IOExceptionSAXException
-
getOrm2_1Project
- Returns:
- the JPA 2.1 orm project.
-
getOrm2_1Schema
- Returns:
- the JPA 2.1 orm schema.
- Throws:
IOExceptionSAXException
-
getOrm2_2Project
- Returns:
- the JPA 2.2 orm project.
-
getOrm2_2Schema
- Returns:
- the JPA 2.2 orm schema.
- Throws:
IOExceptionSAXException
-
getOrm3_0Project
- Returns:
- the JPA 3.0 orm project.
-
getOrm3_0Schema
- Returns:
- the JPA 3.0 orm schema.
- Throws:
IOExceptionSAXException
-
getOrm3_1Project
- Returns:
- the JPA 3.1 orm project.
-
getOrm3_1Schema
- Returns:
- the JPA 3.1 orm schema.
- Throws:
IOExceptionSAXException
-
clear
public static void clear()Free the project and schema objects to avoid holding onto the memory. This can be done post-deployment to conserve memory. -
loadLocalSchema
Load the XML schema from the jar resource.- Throws:
IOExceptionSAXException
-
read
public static XMLEntityMappings read(String sourceName, Reader reader, ClassLoader classLoader, Map properties) INTERNAL: -
read
protected static XMLEntityMappings read(String mappingFile, Reader reader1, Reader reader2, ClassLoader classLoader, Map properties) INTERNAL: -
read
public static XMLEntityMappings read(URL url, ClassLoader classLoader, Properties properties) throws IOException INTERNAL:- Parameters:
properties- - PersistenceUnitInfo properties on the project- Throws:
IOException
-