Package org.objectweb.jorm.metainfo.api

Examples of org.objectweb.jorm.metainfo.api.Mapping


        if (cp == null) {
            throw new SpeedoException("No classproject found for the class "
                    + clazz.getFQName() + " and  the project " + scp.projectName);
        }
        int idx =  scp.mapperName.indexOf('.');
        Mapping m = cp.getMapping(idx == -1
                ? scp.mapperName
                : scp.mapperName.substring(0, idx));
        if (m == null) {
            throw new SpeedoException("No mapping found for the class "
                    + clazz.getFQName() + ",  the project " + scp.projectName
View Full Code Here


        if (projectName != null && mapperName != null) {
            ClassProject cp = clazz.getClassProject(projectName);
            if (cp == null) {
                cp = clazz.createClassProject(projectName);
            }
            Mapping mapping = cp.getMapping(mapperName);
            if (mapping != null) {
                //If the mapping is already defined then that means the jorm meta
                // information has been already defined.
                // => no meta object has been added.
                return;
View Full Code Here

                                 Collection createdMOs)
            throws SpeedoException, PException {
        Class clazz = manager.getClass(sc.getFQName());
        logger.log(BasicLevel.DEBUG, "Generate the Jorm MI for the references of class "
                + clazz.getFQName());
        Mapping mapping = null;
        ClassMapping cm = null;
        if (projectName != null && mapperName != null) {
            mapping = clazz.getClassProject(projectName)
                .getMapping(mapperName);
            cm = mapping.getClassMapping();
        }
        Iterator fieldsIt = sc.fields.values().iterator();
        //System.out.println("Manage reference of the class " + sc.getFQName());
        while (fieldsIt.hasNext()) {
            SpeedoField sp = (SpeedoField) fieldsIt.next();
View Full Code Here

    if (cp == null) {
      throw new SpeedoException("No classproject found for the class "
          + clazz.getFQName() + " and  the project " + scp.projectName);
    }
    int idx =  scp.mapperName.indexOf('.');
    Mapping m = cp.getMapping(idx == -1
        ? scp.mapperName
        : scp.mapperName.substring(0, idx));
    if (m == null) {
      throw new SpeedoException("No mapping found for the class "
          + clazz.getFQName() + ",  the project " + scp.projectName
View Full Code Here

TOP

Related Classes of org.objectweb.jorm.metainfo.api.Mapping

Copyright © 2018 www.massapicom. 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.