static class XmlaHandler.ValueInfo extends Object
If the input DataType is Integer, then it attempts to return an XSD_INT with value java.lang.Integer (and failing that an XSD_LONG (java.lang.Long) or XSD_INTEGER (java.math.BigInteger)). Worst case is the value loses precision with any integral representation and must be returned as a decimal type (Double or java.math.BigDecimal).
If the input DataType is Decimal, then it attempts to return an XSD_DOUBLE with value java.lang.Double (and failing that an XSD_DECIMAL (java.math.BigDecimal)).
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
isDecimal |
(package private) Object |
value |
(package private) String |
valueType |
Constructor and Description |
---|
XmlaHandler.ValueInfo(String dataType,
Object inputValue) |
Modifier and Type | Method and Description |
---|---|
(package private) static String |
getValueTypeHint(String dataType)
Returns XSD_INT, XSD_DOUBLE, XSD_STRING or null.
|
XmlaHandler.ValueInfo(String dataType, Object inputValue)
static String getValueTypeHint(String dataType)
dataType
- null, Integer, Numeric or non-null.