Module org.eclipse.persistence.jpa
Class XMLEntityMappingsReader
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.metadata.xml.XMLEntityMappingsReader
-
public class XMLEntityMappingsReader extends Object
ORM.xml reader.- Since:
- EclipseLink 1.0
- Author:
- Guy Pelletier
-
-
Field Summary
Fields Modifier and Type Field Description static StringECLIPSELINK_ORM_NAMESPACEstatic StringECLIPSELINK_ORM_XSDstatic StringORM_1_0_NAMESPACEstatic StringORM_1_0_XSDstatic StringORM_2_0_NAMESPACEstatic StringORM_2_0_XSDstatic StringORM_2_1_NAMESPACEstatic StringORM_2_1_XSDstatic StringORM_2_2_NAMESPACEstatic StringORM_2_2_XSDstatic StringORM_3_0_NAMESPACEstatic StringORM_3_0_XSDstatic StringORM_3_1_NAMESPACEstatic StringORM_3_1_XSD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclear()Free the project and schema objects to avoid holding onto the memory.static XMLContextgetEclipseLinkOrmProject()static SchemagetEclipseLinkOrmSchema()static XMLContextgetOrm1_0Project()static SchemagetOrm1_0Schema()static XMLContextgetOrm2_0Project()static SchemagetOrm2_0Schema()static XMLContextgetOrm2_1Project()static SchemagetOrm2_1Schema()static XMLContextgetOrm2_2Project()static SchemagetOrm2_2Schema()static XMLContextgetOrm3_0Project()static SchemagetOrm3_0Schema()static XMLContextgetOrm3_1Project()static SchemagetOrm3_1Schema()protected static SchemaloadLocalSchema(String schemaName)Load the XML schema from the jar resource.protected static XMLEntityMappingsread(String mappingFile, Reader reader1, Reader reader2, ClassLoader classLoader, Map properties)INTERNAL:static XMLEntityMappingsread(String sourceName, Reader reader, ClassLoader classLoader, Map properties)INTERNAL:static XMLEntityMappingsread(URL url, ClassLoader classLoader, Properties properties)INTERNAL:
-
-
-
Field Detail
-
ORM_1_0_XSD
public static final String ORM_1_0_XSD
- See Also:
- Constant Field Values
-
ORM_1_0_NAMESPACE
public static final String ORM_1_0_NAMESPACE
- See Also:
- Constant Field Values
-
ORM_2_0_XSD
public static final String ORM_2_0_XSD
- See Also:
- Constant Field Values
-
ORM_2_0_NAMESPACE
public static final String ORM_2_0_NAMESPACE
- See Also:
- Constant Field Values
-
ORM_2_1_XSD
public static final String ORM_2_1_XSD
- See Also:
- Constant Field Values
-
ORM_2_1_NAMESPACE
public static final String ORM_2_1_NAMESPACE
- See Also:
- Constant Field Values
-
ORM_2_2_XSD
public static final String ORM_2_2_XSD
- See Also:
- Constant Field Values
-
ORM_2_2_NAMESPACE
public static final String ORM_2_2_NAMESPACE
- See Also:
- Constant Field Values
-
ORM_3_0_XSD
public static final String ORM_3_0_XSD
- See Also:
- Constant Field Values
-
ORM_3_0_NAMESPACE
public static final String ORM_3_0_NAMESPACE
- See Also:
- Constant Field Values
-
ORM_3_1_XSD
public static final String ORM_3_1_XSD
- See Also:
- Constant Field Values
-
ORM_3_1_NAMESPACE
public static final String ORM_3_1_NAMESPACE
- See Also:
- Constant Field Values
-
ECLIPSELINK_ORM_XSD
public static final String ECLIPSELINK_ORM_XSD
- See Also:
- Constant Field Values
-
ECLIPSELINK_ORM_NAMESPACE
public static final String ECLIPSELINK_ORM_NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEclipseLinkOrmProject
public static XMLContext getEclipseLinkOrmProject()
- Returns:
- the Eclipselink orm project.
-
getEclipseLinkOrmSchema
public static Schema getEclipseLinkOrmSchema() throws IOException, SAXException
- Returns:
- the Eclipselink orm schema.
- Throws:
IOExceptionSAXException
-
getOrm1_0Project
public static XMLContext getOrm1_0Project()
- Returns:
- the JPA 1.0 orm project.
-
getOrm1_0Schema
public static Schema getOrm1_0Schema() throws IOException, SAXException
- Returns:
- the JPA 1.0 orm schema.
- Throws:
IOExceptionSAXException
-
getOrm2_0Project
public static XMLContext getOrm2_0Project()
- Returns:
- the JPA 2.0 orm project.
-
getOrm2_0Schema
public static Schema getOrm2_0Schema() throws IOException, SAXException
- Returns:
- the JPA 2.0 orm schema.
- Throws:
IOExceptionSAXException
-
getOrm2_1Project
public static XMLContext getOrm2_1Project()
- Returns:
- the JPA 2.1 orm project.
-
getOrm2_1Schema
public static Schema getOrm2_1Schema() throws IOException, SAXException
- Returns:
- the JPA 2.1 orm schema.
- Throws:
IOExceptionSAXException
-
getOrm2_2Project
public static XMLContext getOrm2_2Project()
- Returns:
- the JPA 2.2 orm project.
-
getOrm2_2Schema
public static Schema getOrm2_2Schema() throws IOException, SAXException
- Returns:
- the JPA 2.2 orm schema.
- Throws:
IOExceptionSAXException
-
getOrm3_0Project
public static XMLContext getOrm3_0Project()
- Returns:
- the JPA 3.0 orm project.
-
getOrm3_0Schema
public static Schema getOrm3_0Schema() throws IOException, SAXException
- Returns:
- the JPA 3.0 orm schema.
- Throws:
IOExceptionSAXException
-
getOrm3_1Project
public static XMLContext getOrm3_1Project()
- Returns:
- the JPA 3.1 orm project.
-
getOrm3_1Schema
public static Schema getOrm3_1Schema() throws IOException, SAXException
- 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
protected static Schema loadLocalSchema(String schemaName) throws IOException, SAXException
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
-
-