Class XMLEntityMappingsReader


  • public class XMLEntityMappingsReader
    extends java.lang.Object
    ORM.xml reader.
    Since:
    EclipseLink 1.0
    Author:
    Guy Pelletier
    • Constructor Detail

      • XMLEntityMappingsReader

        public XMLEntityMappingsReader()
    • Method Detail

      • getEclipseLinkOrmProject

        public static org.eclipse.persistence.oxm.XMLContext getEclipseLinkOrmProject()
        Returns:
        the Eclipselink orm project.
      • getEclipseLinkOrmSchema

        public static javax.xml.validation.Schema getEclipseLinkOrmSchema()
                                                                   throws java.io.IOException,
                                                                          org.xml.sax.SAXException
        Returns:
        the Eclipselink orm schema.
        Throws:
        java.io.IOException
        org.xml.sax.SAXException
      • getOrm1_0Project

        public static org.eclipse.persistence.oxm.XMLContext getOrm1_0Project()
        Returns:
        the JPA 1.0 orm project.
      • getOrm1_0Schema

        public static javax.xml.validation.Schema getOrm1_0Schema()
                                                           throws java.io.IOException,
                                                                  org.xml.sax.SAXException
        Returns:
        the JPA 1.0 orm schema.
        Throws:
        java.io.IOException
        org.xml.sax.SAXException
      • getOrm2_0Project

        public static org.eclipse.persistence.oxm.XMLContext getOrm2_0Project()
        Returns:
        the JPA 2.0 orm project.
      • getOrm2_0Schema

        public static javax.xml.validation.Schema getOrm2_0Schema()
                                                           throws java.io.IOException,
                                                                  org.xml.sax.SAXException
        Returns:
        the JPA 2.0 orm schema.
        Throws:
        java.io.IOException
        org.xml.sax.SAXException
      • getOrm2_1Project

        public static org.eclipse.persistence.oxm.XMLContext getOrm2_1Project()
        Returns:
        the JPA 2.1 orm project.
      • getOrm2_1Schema

        public static javax.xml.validation.Schema getOrm2_1Schema()
                                                           throws java.io.IOException,
                                                                  org.xml.sax.SAXException
        Returns:
        the JPA 2.1 orm schema.
        Throws:
        java.io.IOException
        org.xml.sax.SAXException
      • getOrm2_2Project

        public static org.eclipse.persistence.oxm.XMLContext getOrm2_2Project()
        Returns:
        the JPA 2.2 orm project.
      • getOrm2_2Schema

        public static javax.xml.validation.Schema getOrm2_2Schema()
                                                           throws java.io.IOException,
                                                                  org.xml.sax.SAXException
        Returns:
        the JPA 2.2 orm schema.
        Throws:
        java.io.IOException
        org.xml.sax.SAXException
      • 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 javax.xml.validation.Schema loadLocalSchema​(java.lang.String schemaName)
                                                              throws java.io.IOException,
                                                                     org.xml.sax.SAXException
        Load the XML schema from the jar resource.
        Throws:
        java.io.IOException
        org.xml.sax.SAXException
      • read

        public static XMLEntityMappings read​(java.lang.String sourceName,
                                             java.io.Reader reader,
                                             java.lang.ClassLoader classLoader,
                                             java.util.Map properties)
        INTERNAL:
      • read

        protected static XMLEntityMappings read​(java.lang.String mappingFile,
                                                java.io.Reader reader1,
                                                java.io.Reader reader2,
                                                java.lang.ClassLoader classLoader,
                                                java.util.Map properties)
        INTERNAL:
      • read

        public static XMLEntityMappings read​(java.net.URL url,
                                             java.lang.ClassLoader classLoader,
                                             java.util.Properties properties)
                                      throws java.io.IOException
        INTERNAL:
        Parameters:
        url -
        classLoader -
        properties - - PersistenceUnitInfo properties on the project
        Returns:
        Throws:
        java.io.IOException