Package org.objectweb.speedo.metadata

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


        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;
        } else {
          throw new PException(
              "Impossible to use an auto incremented identifier: " +
View Full Code Here


          fieldType = Long.TYPE;
          fieldPType = PTypeSpace.LONG;
        } else {
          throw new PException(
              "Impossible to use an auto incremented identifier: " +
              "the field type of '" + sf.name + "' is '" + sf.type()
              + "' and 'java.lang.Long' or 'long' is expected (class '"
              + sc.getFQName() + "'.");
        }
                return new NamingField[] {
                    new NamingField(sf.name, fieldType, "lid", fieldPType)};
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.