Examples of asFloat()


Examples of com.orientechnologies.orient.core.metadata.schema.OType.asFloat()

            + min + " requested");
      else if (p.getType().equals(OType.INTEGER) && (fieldValue != null && type.asInt(fieldValue) < Integer.parseInt(min)))
        throw new OValidationException("The field " + iRecord.getClassName() + "." + p.getName() + " is minor than " + min);
      else if (p.getType().equals(OType.LONG) && (fieldValue != null && type.asLong(fieldValue) < Long.parseLong(min)))
        throw new OValidationException("The field " + iRecord.getClassName() + "." + p.getName() + " is minor than " + min);
      else if (p.getType().equals(OType.FLOAT) && (fieldValue != null && type.asFloat(fieldValue) < Float.parseFloat(min)))
        throw new OValidationException("The field " + iRecord.getClassName() + "." + p.getName() + " is minor than " + min);
      else if (p.getType().equals(OType.DOUBLE) && (fieldValue != null && type.asDouble(fieldValue) < Double.parseDouble(min)))
        throw new OValidationException("The field " + iRecord.getClassName() + "." + p.getName() + " is minor than " + min);
      else if (p.getType().equals(OType.DATE)) {
        try {
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OType.asFloat()

            + max + " requested");
      else if (p.getType().equals(OType.INTEGER) && (fieldValue != null && type.asInt(fieldValue) > Integer.parseInt(max)))
        throw new OValidationException("The field " + iRecord.getClassName() + "." + p.getName() + " is major than " + max);
      else if (p.getType().equals(OType.LONG) && (fieldValue != null && type.asLong(fieldValue) > Long.parseLong(max)))
        throw new OValidationException("The field " + iRecord.getClassName() + "." + p.getName() + " is major than " + max);
      else if (p.getType().equals(OType.FLOAT) && (fieldValue != null && type.asFloat(fieldValue) > Float.parseFloat(max)))
        throw new OValidationException("The field " + iRecord.getClassName() + "." + p.getName() + " is major than " + max);
      else if (p.getType().equals(OType.DOUBLE) && (fieldValue != null && type.asDouble(fieldValue) > Double.parseDouble(max)))
        throw new OValidationException("The field " + iRecord.getClassName() + "." + p.getName() + " is major than " + max);
      else if (p.getType().equals(OType.DATE)) {
        try {
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OType.asFloat()

        throw new OValidationException("The field '" + p.getFullName() + "' contains fewer bytes than " + min + " requested");
      else if (p.getType().equals(OType.INTEGER) && (fieldValue != null && type.asInt(fieldValue) < Integer.parseInt(min)))
        throw new OValidationException("The field '" + p.getFullName() + "' is less than " + min);
      else if (p.getType().equals(OType.LONG) && (fieldValue != null && type.asLong(fieldValue) < Long.parseLong(min)))
        throw new OValidationException("The field '" + p.getFullName() + "' is less than " + min);
      else if (p.getType().equals(OType.FLOAT) && (fieldValue != null && type.asFloat(fieldValue) < Float.parseFloat(min)))
        throw new OValidationException("The field '" + p.getFullName() + "' is less than " + min);
      else if (p.getType().equals(OType.DOUBLE) && (fieldValue != null && type.asDouble(fieldValue) < Double.parseDouble(min)))
        throw new OValidationException("The field '" + p.getFullName() + "' is less than " + min);
      else if (p.getType().equals(OType.DATE)) {
        try {
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OType.asFloat()

        throw new OValidationException("The field '" + p.getFullName() + "' contains more bytes than " + max + " requested");
      else if (p.getType().equals(OType.INTEGER) && (fieldValue != null && type.asInt(fieldValue) > Integer.parseInt(max)))
        throw new OValidationException("The field '" + p.getFullName() + "' is greater than " + max);
      else if (p.getType().equals(OType.LONG) && (fieldValue != null && type.asLong(fieldValue) > Long.parseLong(max)))
        throw new OValidationException("The field '" + p.getFullName() + "' is greater than " + max);
      else if (p.getType().equals(OType.FLOAT) && (fieldValue != null && type.asFloat(fieldValue) > Float.parseFloat(max)))
        throw new OValidationException("The field '" + p.getFullName() + "' is greater than " + max);
      else if (p.getType().equals(OType.DOUBLE) && (fieldValue != null && type.asDouble(fieldValue) > Double.parseDouble(max)))
        throw new OValidationException("The field '" + p.getFullName() + "' is greater than " + max);
      else if (p.getType().equals(OType.DATE)) {
        try {
View Full Code Here

Examples of com.workingdogs.village.Value.asFloat()

                    {
                        obj2 = new Double(value.asDouble());
                    }
                    if (value.isFloat())
                    {
                        obj2 = new Float(value.asFloat());
                    }
                    if (value.isBoolean())
                    {
                        // JDK 1.3 has no Boolean.valueOf(boolean)
                        obj2 = new Boolean(value.asBoolean());
View Full Code Here

Examples of com.workingdogs.village.Value.asFloat()

                if (value.isDate()) obj2 = value.asDate();
                if (value.isShort()) obj2 = new Short(value.asShort());
                if (value.isInt()) obj2 = new Integer(value.asInt());
                if (value.isLong()) obj2 = new Long(value.asLong());
                if (value.isDouble()) obj2 = new Double(value.asDouble());
                if (value.isFloat()) obj2 = new Float(value.asFloat());
                if (value.isBoolean()) obj2 = new Boolean(value.asBoolean());
                if (value.isString()) obj2 = value.asString();
                if (value.isTime()) obj2 = value.asTime();
                if (value.isTimestamp()) obj2 = value.asTimestamp();
                if (value.isUtilDate()) obj2 = value.asUtilDate();
View Full Code Here

Examples of com.workingdogs.village.Value.asFloat()

                else if (value.isLong())
                    obj2 = new Long(value.asLong());
                else if (value.isDouble())
                    obj2 = new Double(value.asDouble());
                else if (value.isFloat())
                    obj2 = new Float(value.asFloat());
                else if (value.isBoolean())
                    obj2 = new Boolean(value.asBoolean());
                else if (value.isTime())
                    obj2 = value.asTime();
                else if (value.isTimestamp())
View Full Code Here

Examples of com.workingdogs.village.Value.asFloat()

                    {
                        obj2 = new Double(value.asDouble());
                    }
                    if (value.isFloat())
                    {
                        obj2 = new Float(value.asFloat());
                    }
                    if (value.isBoolean())
                    {
                        // JDK 1.3 has no Boolean.valueOf(boolean)
                        obj2 = new Boolean(value.asBoolean());
View Full Code Here

Examples of com.workingdogs.village.Value.asFloat()

                    {
                        obj2 = new Double(value.asDouble());
                    }
                    if (value.isFloat())
                    {
                        obj2 = new Float(value.asFloat());
                    }
                    if (value.isBoolean())
                    {
                        obj2 = new Boolean(value.asBoolean());
                    }
View Full Code Here

Examples of com.workingdogs.village.Value.asFloat()

                    if (value.isDate()) obj2 = value.asDate();
                    if (value.isShort()) obj2 = new Short(value.asShort());
                    if (value.isInt()) obj2 = new Integer(value.asInt());
                    if (value.isLong()) obj2 = new Long(value.asLong());
                    if (value.isDouble()) obj2 = new Double(value.asDouble());
                    if (value.isFloat()) obj2 = new Float(value.asFloat());
                    if (value.isBoolean()) obj2 = new Boolean(value.asBoolean());
                    if (value.isString()) obj2 = value.asString();
                    if (value.isTime()) obj2 = value.asTime();
                    if (value.isTimestamp()) obj2 = value.asTimestamp();
                    if (value.isUtilDate()) obj2 = value.asUtilDate();
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.