insensa.helpers
Class DataTypeHelper

java.lang.Object
  extended by insensa.helpers.DataTypeHelper

public class DataTypeHelper
extends java.lang.Object


Constructor Summary
DataTypeHelper()
           
 
Method Summary
static boolean fitsInDataType(int dataType, java.math.BigDecimal number)
           
static int getBestDatatype(java.math.BigDecimal number)
           
static int getBestDataType(float number)
           
static java.lang.String getDataTypeName(int dataType)
           
static boolean isFloatingDataType(int dataType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTypeHelper

public DataTypeHelper()
Method Detail

fitsInDataType

public static boolean fitsInDataType(int dataType,
                                     java.math.BigDecimal number)
Parameters:
dataType -
number -
Returns:

getBestDatatype

public static int getBestDatatype(java.math.BigDecimal number)
Parameters:
number -
Returns:

getBestDataType

public static int getBestDataType(float number)
Parameters:
number -
Returns:

getDataTypeName

public static java.lang.String getDataTypeName(int dataType)
Parameters:
dataType -
Returns:

isFloatingDataType

public static boolean isFloatingDataType(int dataType)
Parameters:
dataType -
Returns: