Examples of HintContainer


Examples of org.dozer.fieldmap.HintContainer

        if (o instanceof List<?>) {
            List<?> l = (List<?>) o;
            if (l.size() > 0) {
                // Correction : prise en compte du cas o� la liste contient des nulls.
                Class<?> c = null;
                HintContainer hc = new HintContainer();
                for (Object element : l) {
                    if (element != null) {
                        c = element.getClass();
                        break;
                    }
                }
                if (c == null) {
                    c = Void.class;
                }
                hc.setHintName(c.getName());
                fm.setDestHintContainer(hc);
            }
        }

    }
View Full Code Here

Examples of org.dozer.fieldmap.HintContainer

        if (o instanceof List<?>) {
            List<?> l = (List<?>) o;
            if (l.size() > 0) {
                // Correction : prise en compte du cas o� la liste contient des nulls.
                Class<?> c = null;
                HintContainer hc = new HintContainer();
                for (Object element : l) {
                    if (element != null) {
                        c = element.getClass();
                        break;
                    }
                }
                if (c == null) {
                    c = Void.class;
                }
                hc.setHintName(c.getName());
                fm.setDestHintContainer(hc);
            }
        }

    }
View Full Code Here

Examples of org.dozer.fieldmap.HintContainer

        genericType = ReflectionUtils.determineGenericsType(method, false);
      } catch (Throwable e) {
        log.warn("The destination object: " + destObj + " does not have a write method");
      }
      if (genericType != null) {
        HintContainer destHintContainer = new HintContainer();
        destHintContainer.setHintName(genericType.getName());
        fieldMap.setDestHintContainer(destHintContainer);
      }
    }

    // if it is an iterator object turn it into a List
View Full Code Here

Examples of org.dozer.fieldmap.HintContainer

      this.removeOrphans = value;
      return this;
    }

    public FieldMappingBuilder srcHintContainer(String hint) {
      HintContainer hintContainer = new HintContainer();
      hintContainer.setHintName(hint);
      this.srcHintContainer = hintContainer;
      return this;
    }
View Full Code Here

Examples of org.dozer.fieldmap.HintContainer

      this.srcHintContainer = hintContainer;
      return this;
    }

    public FieldMappingBuilder destHintContainer(String hint) {
      HintContainer hintContainer = new HintContainer();
      hintContainer.setHintName(hint);
      this.destHintContainer = hintContainer;
      return this;
    }
View Full Code Here

Examples of org.dozer.fieldmap.HintContainer

      this.destHintContainer = hintContainer;
      return this;
    }

    public FieldMappingBuilder srcDeepIndexHintContainer(String hint) {
      HintContainer hintContainer = new HintContainer();
      hintContainer.setHintName(hint);
      this.srcDeepIndexHintContainer = hintContainer;
      return this;
    }
View Full Code Here

Examples of org.dozer.fieldmap.HintContainer

      this.srcDeepIndexHintContainer = hintContainer;
      return this;
    }

    public FieldMappingBuilder destDeepIndexHintContainer(String hint) {
      HintContainer hintContainer = new HintContainer();
      hintContainer.setHintName(hint);
      this.destDeepIndexHintContainer = hintContainer;
      return this;
    }
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.