Package org.objectweb.speedo.metadata

Examples of org.objectweb.speedo.metadata.SpeedoFetchGroup.addField()


            SpeedoFetchGroup sfg = (SpeedoFetchGroup) mo;
            if (logger.isLoggable(BasicLevel.DEBUG)) {
                logger.log(BasicLevel.DEBUG, "add field '" + f.name
                    + "' into the fetchgroup '" + sfg.name +"'");
            }
            sfg.addField(f);
        }
        return f;
    }
    private Object treatMap(Node node, Object mo) throws SpeedoException {
        SpeedoField f = (SpeedoField) mo;
View Full Code Here


                Node fieldNode = (Node) l.get(j);
                String fieldName = getStringAttributeValue(fieldNode, "name", null);
                if (fieldName != null) {
                    SpeedoField field = fieldOwner.getField(fieldName);
                    if (field != null) {
                        fg.addField(field);
                    } else {
                        logger.log(BasicLevel.WARN, "Bad field name '"
                                + fieldName + "'in the fetch group '"
                                + fg.name + "' in the class "
                                + fieldOwner.getSourceDesc() + ".");
View Full Code Here

        if (fields != null) {
          for (Iterator fieldIt = fields.iterator(); fieldIt.hasNext();) {
              Node fieldNode = (Node) fieldIt.next();
              SpeedoField sf = new SpeedoField();
              sf.name = getStringAttributeValue(fieldNode, "name", null);
                fg.addField(sf);
                //depth for a field
                String depth = getStringAttributeValue(fieldNode, "fetch-depth", null);
                if (depth == null) {
                  depth = getStringAttributeValue(fieldNode, "depth", null);
                  logger.log(BasicLevel.WARN, "attribute 'depth' is deprecated, use 'fetch-depth'.");
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.