Examples of TypeProperty


Examples of com.dooapp.gaedo.properties.TypeProperty

      Map<Property, Collection<CascadeType>> beanPropertiesFor = StrategyUtils.getBeanPropertiesFor(propertyProvider, objectClass, migrator);
      // Finally, create a fake "classesCollection" property and add it to
      // property
      try {
        beanPropertiesFor.put(new ClassCollectionProperty(objectClass), new LinkedList<CascadeType>());
        beanPropertiesFor.put(new TypeProperty(objectClass), new LinkedList<CascadeType>());
      } catch (Exception e) {
        logger.log(Level.SEVERE, "what ? a class without a \"class\" field ? WTF", e);
      }
      classes .put(objectClass, beanPropertiesFor);
    }
View Full Code Here

Examples of com.dooapp.gaedo.properties.TypeProperty

      Map<Property, Collection<CascadeType>> beanPropertiesFor = StrategyUtils.getBeanPropertiesFor(propertyProvider, objectClass, migrator);
      // Finally, create a fake "classesCollection" property and add it to
      // property
      try {
        beanPropertiesFor.put(new ClassCollectionProperty(objectClass), new LinkedList<CascadeType>());
        beanPropertiesFor.put(new TypeProperty(objectClass), new LinkedList<CascadeType>());
      } catch (Exception e) {
        logger.log(Level.SEVERE, "what ? a class without a \"class\" field ? WTF", e);
      }
      classes .put(objectClass, beanPropertiesFor);
    }
View Full Code Here

Examples of com.dooapp.gaedo.properties.TypeProperty

    }
    // Finally, create a fake "classesCollection" property and add it to
    // property
    try {
      returned.put(new ClassCollectionProperty(containedClass), new LinkedList<CascadeType>());
      returned.put(new TypeProperty(containedClass), new LinkedList<CascadeType>());
    } catch (Exception e) {
      logger.log(Level.SEVERE, "what ? a class without a \"class\" field ? WTF", e);
    }
    return returned;
  }
View Full Code Here

Examples of com.dooapp.gaedo.properties.TypeProperty

      Map<Property, Collection<CascadeType>> beanPropertiesFor = StrategyUtils.getBeanPropertiesFor(propertyProvider, objectClass, migrator);
      // Finally, create a fake "classesCollection" property and add it to
      // property
      try {
        beanPropertiesFor.put(new ClassCollectionProperty(objectClass), new LinkedList<CascadeType>());
        beanPropertiesFor.put(new TypeProperty(objectClass), new LinkedList<CascadeType>());
      } catch (Exception e) {
        logger.log(Level.SEVERE, "what ? a class without a \"class\" field ? WTF", e);
      }
      classes .put(objectClass, beanPropertiesFor);
    }
View Full Code Here

Examples of com.dooapp.gaedo.properties.TypeProperty

      // Finally, create a fake "classesCollection" property and add it to
      // property
      try {
        ClassCollectionProperty classes = new ClassCollectionProperty(objectClass).withAnnotation(new ManyObjectsToOneType(objectClass.getClass()));
        beanPropertiesFor.put(classes, StrategyUtils.extractCascadeOfJPAAnnotations(classes));
        TypeProperty type = new TypeProperty(objectClass).withAnnotation(new ManyObjectsToOneType(objectClass.getClass()));
        beanPropertiesFor.put(type, StrategyUtils.extractCascadeOfJPAAnnotations(type));
      } catch (Exception e) {
        logger.log(Level.SEVERE, "what ? a class without a \"class\" field ? WTF", e);
      }
      classes .put(objectClass, beanPropertiesFor);
View Full Code Here

Examples of com.dooapp.gaedo.properties.TypeProperty

      // Finally, create a fake "classesCollection" property and add it to
      // property
      try {
        ClassCollectionProperty classes = new ClassCollectionProperty(objectClass).withAnnotation(new ManyObjectsToOneType(objectClass.getClass()));
        beanPropertiesFor.put(classes, StrategyUtils.extractCascadeOfJPAAnnotations(classes));
        TypeProperty type = new TypeProperty(objectClass).withAnnotation(new ManyObjectsToOneType(objectClass.getClass()));
        beanPropertiesFor.put(type, StrategyUtils.extractCascadeOfJPAAnnotations(type));
      } catch (Exception e) {
        logger.log(Level.SEVERE, "what ? a class without a \"class\" field ? WTF", e);
      }
      classes .put(objectClass, beanPropertiesFor);
View Full Code Here

Examples of com.dooapp.gaedo.properties.TypeProperty

      Map<Property, Collection<CascadeType>> beanPropertiesFor = StrategyUtils.getBeanPropertiesFor(propertyProvider, objectClass, migrator);
      // Finally, create a fake "classesCollection" property and add it to
      // property
      try {
        beanPropertiesFor.put(new ClassCollectionProperty(objectClass), new LinkedList<CascadeType>());
        beanPropertiesFor.put(new TypeProperty(objectClass), new LinkedList<CascadeType>());
      } catch (Exception e) {
        logger.log(Level.SEVERE, "what ? a class without a \"class\" field ? WTF", e);
      }
      classes .put(objectClass, beanPropertiesFor);
    }
View Full Code Here

Examples of com.dooapp.gaedo.properties.TypeProperty

      // Finally, create a fake "classesCollection" property and add it to
      // property
      try {
        ClassCollectionProperty classes = new ClassCollectionProperty(objectClass).withAnnotation(new ManyObjectsToOneType(objectClass.getClass()));
        beanPropertiesFor.put(classes, StrategyUtils.extractCascadeOfJPAAnnotations(classes));
        TypeProperty type = new TypeProperty(objectClass).withAnnotation(new ManyObjectsToOneType(objectClass.getClass()));
        beanPropertiesFor.put(type, StrategyUtils.extractCascadeOfJPAAnnotations(type));
      } catch (Exception e) {
        logger.log(Level.SEVERE, "what ? a class without a \"class\" field ? WTF", e);
      }
      classes .put(objectClass, beanPropertiesFor);
View Full Code Here

Examples of com.dooapp.gaedo.properties.TypeProperty

      // Finally, create a fake "classesCollection" property and add it to
      // property
      try {
        ClassCollectionProperty classes = new ClassCollectionProperty(objectClass).withAnnotation(new ManyObjectsToOneType(objectClass.getClass()));
        beanPropertiesFor.put(classes, StrategyUtils.extractCascadeOfJPAAnnotations(classes));
        TypeProperty type = new TypeProperty(objectClass).withAnnotation(new ManyObjectsToOneType(objectClass.getClass()));
        beanPropertiesFor.put(type, StrategyUtils.extractCascadeOfJPAAnnotations(type));
      } catch (Exception e) {
        logger.log(Level.SEVERE, "what ? a class without a \"class\" field ? WTF", e);
      }
      classes .put(objectClass, beanPropertiesFor);
View Full Code Here

Examples of org.exolab.castor.xml.schema.simpletypes.factory.TypeProperty

        //Adds the facets to the result
        Vector facets = type.getFacet();
        FacetFactory facetFactory = FacetFactory.getInstance();
        for (int index = 0; index < facets.size(); index++) {
            TypeProperty prop = (TypeProperty) facets.elementAt(index);
            if (!prop.getPseudo()) {
                //adds a "real" facet (defined in the xml specs)
                Facet facet = facetFactory.createFacet(prop.getName(), prop.getValue());
                facet.setOwningType(result);
                result.addFacet(facet);
            } else {
                //sets the information linked with the pseudo facet
                if (RealType.class.isInstance(result)) {
                    RealType realResult = (RealType) result;
                    if (prop.getName().equals("minM")) {
                        realResult.setMinMantissa(Long.parseLong(prop.getValue()));
                    } else if (prop.getName().equals("maxM")) {
                        realResult.setMaxMantissa(Long.parseLong(prop.getValue()));
                    } else if (prop.getName().equals("minE")) {
                        realResult.setMinExponent(Long.parseLong(prop.getValue()));
                    } else if (prop.getName().equals("maxE")) {
                        realResult.setMaxExponent(Long.parseLong(prop.getValue()));
                    }
                }
            }
        }
        return result;
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.