Package org.jugile.util

Examples of org.jugile.util.Money


      if (f.getAnnotation(Fld.class) != null) {
        if (val != null) {
          if (f.getType() == Time.class) {
            o = new Time(val,TSFORMAT);
          } else if (f.getType() == Money.class) {
            o = new Money(parseIntSafe(val));
          } else if (f.getType() == String.class) {
            if (val.equals(""+NULLCHAR+NULLCHAR)) val = ""+NULLCHAR;
            o = val;
          } else if (f.getType() == int.class) {
            o = parseIntSafe(val);
View Full Code Here


      if (f.getType() == Time.class) {
        val = val==null?null:new Time((java.util.Date)val);       
      } else if (f.getType() == double.class) {
        val = val==null?0.0:((BigDecimal)val).doubleValue()
      } else if (f.getType() == Money.class) {
        val = val==null?null:new Money((Integer)val)
      } else if (f.getType() == boolean.class) {
        val = val==null?false:val; 
      } else if (hasInterface(f.getType(),EnumType.class)) {
        if (val != null) {
          val = Proxy.staticCall(f.getType(), "map",(Integer)val);
View Full Code Here

TOP

Related Classes of org.jugile.util.Money

Copyright © 2018 www.massapicom. 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.