Examples of MappingFile


Examples of com.ctp.cdi.query.meta.unit.EntityDescriptorReader.MappingFile

            EntityDescriptorReader reader = new EntityDescriptorReader();
            List<EntityDescriptor> entities = new LinkedList<EntityDescriptor>();
            List<MappedSuperclassDescriptor> superClasses = new LinkedList<MappedSuperclassDescriptor>();
            NodeList list = element.getElementsByTagName("mapping-file");
            for (int i = 0; i < list.getLength(); i++) {
                MappingFile mappings = reader.readAll(baseUrl, list.item(i).getTextContent());
                entities.addAll(mappings.getEntities());
                superClasses.addAll(mappings.getSuperClasses());
            }
            MappingFile mappings = reader.readDefaultOrm(baseUrl);
            entities.addAll(mappings.getEntities());
            superClasses.addAll(mappings.getSuperClasses());
            DescriptorHierarchyBuilder.newInstance(entities, superClasses).buildHierarchy();
            return entities;
        } catch (Exception e) {
            throw new RuntimeException("Failed initializing mapping files", e);
        }
View Full Code Here

Examples of com.sun.jdo.api.persistence.mapping.ejb.MappingFile

            MappingClassElement mappingClass = (MappingClassElement)iter.next();
            String ejbName = nameMapper.getEjbNameForPersistenceClass(
                    mappingClass.getName());
            mappingMap.put(ejbName, mappingClass);
        }
        MappingFile mf = new MappingFile();
        OutputStream sunCmpMapping = null;
        try {
            sunCmpMapping = new FileOutputStream(
                cmpMappingFile);
            mf.fromMappingClasses(sunCmpMapping, mappingMap,
                getConversionHelper());
        } catch (IOException ex) {
            throw ex;
        } finally {
            try {
View Full Code Here

Examples of com.sun.jdo.api.persistence.mapping.ejb.MappingFile

            MappingClassElement mappingClass = (MappingClassElement)iter.next();
            String ejbName = nameMapper.getEjbNameForPersistenceClass(
                    mappingClass.getName());
            mappingMap.put(ejbName, mappingClass);
        }
        MappingFile mf = new MappingFile();
        OutputStream sunCmpMapping = null;
        try {
            sunCmpMapping = new FileOutputStream(
                cmpMappingFile);
            mf.fromMappingClasses(sunCmpMapping, mappingMap,
                getConversionHelper());
        } catch (IOException ex) {
            throw ex;
        } finally {
            try {
View Full Code Here

Examples of com.sun.jdo.api.persistence.mapping.ejb.MappingFile

            MappingClassElement mappingClass = (MappingClassElement)iter.next();
            String ejbName = nameMapper.getEjbNameForPersistenceClass(
                    mappingClass.getName());
            mappingMap.put(ejbName, mappingClass);
        }
        MappingFile mf = new MappingFile();
        OutputStream sunCmpMapping = null;
        try {
            sunCmpMapping = new FileOutputStream(
                cmpMappingFile);
            mf.fromMappingClasses(sunCmpMapping, mappingMap,
                getConversionHelper());
        } catch (IOException ex) {
            throw ex;
        } finally {
            try {
View Full Code Here

Examples of nz.org.winters.appspot.acrareporter.store.MappingFile

          QueryResultIterator<MappingFile> iterator = mapsquery.iterator();
          while (iterator.hasNext())
          {
            while (iterator.hasNext())
            {
              MappingFile map = iterator.next();

              MappingFileInfo mfi = new MappingFileInfo();
              mfi.Owner = map.Owner;
              mfi.version = map.version;
              mfi.PACKAGE_NAME = map.getApppackage();
              mfi.uploadDate = map.uploadDate;
             
              Key<MappingFileInfo> resultkey = ObjectifyService.ofy().save().entity(mfi).now();
             
              MappingFileData mfd = new MappingFileData();
View Full Code Here

Examples of org.apache.deltaspike.data.impl.meta.unit.EntityDescriptorReader.MappingFile

            List<EntityDescriptor> entities = new LinkedList<EntityDescriptor>();
            List<MappedSuperclassDescriptor> superClasses = new LinkedList<MappedSuperclassDescriptor>();
            NodeList list = element.getElementsByTagName("mapping-file");
            for (int i = 0; i < list.getLength(); i++)
            {
                MappingFile mappings = reader.readAll(baseUrl, list.item(i).getTextContent());
                entities.addAll(mappings.getEntities());
                superClasses.addAll(mappings.getSuperClasses());
            }
            MappingFile mappings = reader.readDefaultOrm(baseUrl);
            entities.addAll(mappings.getEntities());
            superClasses.addAll(mappings.getSuperClasses());
            DescriptorHierarchyBuilder.newInstance(entities, superClasses).buildHierarchy();
            return entities;
        }
        catch (Exception e)
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.