Package org.objectweb.speedo.metadata

Examples of org.objectweb.speedo.metadata.SpeedoField.type()


                    + "' found for the" + sf.getSourceDesc());
    }
    SpeedoMap sm = (SpeedoMap) sf.jdoTuple;
    if (sm.keyType != null && ((String) sm.keyType).length() > 0) {
      //check the key field type and the
      if (keyfield.type().equalsIgnoreCase((String) sm.keyType)) {
                throw new SpeedoException("Bad type for the key field '" + se.value
                        + "' found for the" + sf.getSourceDesc());
      }
    } else {
      //specify the map key type from the keyField type
View Full Code Here


                throw new SpeedoException("Bad type for the key field '" + se.value
                        + "' found for the" + sf.getSourceDesc());
      }
    } else {
      //specify the map key type from the keyField type
      sm.keyType = keyfield.type();
    }

    // Add the SQL_NAME extension for the index field if it is specified
    // for the key field
    SpeedoExtension _se = keyfield.getExtensionByKey(SQL_NAME);
View Full Code Here

        } else {
            fieldName = sc.identity.columns[0].column.name;
        }
            mibh.createNameDefField(jc, fieldName, PTypeSpace.OBJLONG);
        } else {
            String type = pkField.type();
      if (!"java.lang.Long".equals(type) && !"Long".equals(type)
                    && !"long".equals(type)) {
                throw new SpeedoException(
                        "Impossible to use an auto incremented identifier: " +
                        "the field type of '" + pkField.name + "' is '" + pkField.type()
View Full Code Here

            String type = pkField.type();
      if (!"java.lang.Long".equals(type) && !"Long".equals(type)
                    && !"long".equals(type)) {
                throw new SpeedoException(
                        "Impossible to use an auto incremented identifier: " +
                        "the field type of '" + pkField.name + "' is '" + pkField.type()
                        + "' and 'java.lang.Long' or long is expected (class '"
                        + sc.getFQName() + "'.");
            }
            fieldName = pkField.name;
        }
View Full Code Here

        PType fieldType;
    if (pkField == null) {
            fieldName = ID_FIELD;
            fieldType = PTypeSpace.OBJLONG;
        } else {
            String type = pkField.type();
      if ("java.lang.Long".equals(type) || "Long".equals(type)) {
        fieldType = PTypeSpace.OBJLONG;
      } else if ("long".equals(type)) {
        fieldType = PTypeSpace.LONG;
      } else {
View Full Code Here

      } else if ("long".equals(type)) {
        fieldType = PTypeSpace.LONG;
      } else {
                throw new SpeedoException(
                        "Impossible to use an auto incremented identifier: " +
                        "the field type of '" + pkField.name + "' is '" + pkField.type()
                        + "' and 'java.lang.Long' or long is expected (class '"
                        + pkField.moClass.getFQName() + "'.");
            }
            fieldName = pkField.name;
        }
View Full Code Here

                fieldName = ID_FIELD;
                fieldType = PTypeSpace.OBJLONG;
            } else {
                fieldName = pkField.name;
                //Check the PK field type (Long or long only supported)
                String type = pkField.type();
          if ("java.lang.Long".equals(type) || "Long".equals(type)) {
            fieldType = PTypeSpace.OBJLONG;
          } else if ("long".equals(type)) {
            fieldType = PTypeSpace.LONG;
          } else {
View Full Code Here

          } else if ("long".equals(type)) {
            fieldType = PTypeSpace.LONG;
          } else {
                    throw new SpeedoException(
                            "Impossible to use an auto incremented identifier: " +
                            "the field type of '" + pkField.name + "' is '" + pkField.type()
                            + "' and 'java.lang.Long' or long is expected (class '"
                            + pkField.moClass.getFQName() + "'.");
                }
            }
            String prefix = mibh.getNameDefFieldPrefix(gcr, isGCId, isGCId, sf);
View Full Code Here

        while(it.hasNext()) {
            SpeedoField sf = (SpeedoField) it.next();
            if (sf.primaryKey) {
        java.lang.Class fieldType;
        PType fieldPType;
        if ("java.lang.Long".equals(sf.type()) || "Long".equals(sf.type())) {
          fieldType = Long.class;
          fieldPType = PTypeSpace.OBJLONG;
        } else if ("long".equals(sf.type())) {
          fieldType = Long.TYPE;
          fieldPType = PTypeSpace.LONG;
View Full Code Here

        while(it.hasNext()) {
            SpeedoField sf = (SpeedoField) it.next();
            if (sf.primaryKey) {
        java.lang.Class fieldType;
        PType fieldPType;
        if ("java.lang.Long".equals(sf.type()) || "Long".equals(sf.type())) {
          fieldType = Long.class;
          fieldPType = PTypeSpace.OBJLONG;
        } else if ("long".equals(sf.type())) {
          fieldType = Long.TYPE;
          fieldPType = PTypeSpace.LONG;
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.