Package siena.core

Examples of siena.core.DecimalPrecision


      } catch (SQLException e) {
        throw new SienaException(e);
      }
    }
    if(BigDecimal.class == type){
      DecimalPrecision ann = field.getAnnotation(DecimalPrecision.class);
      if(ann==null){
        return (BigDecimal)value;
      }else {
        switch(ann.storageType()){
        case DOUBLE:
          return BigDecimal.valueOf((Double)value);
        case STRING:
          return new BigDecimal((String)value);
        case NATIVE:
View Full Code Here

TOP

Related Classes of siena.core.DecimalPrecision

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.