Package net.snowflake.client.core.json
Class NumberConverter
- java.lang.Object
-
- net.snowflake.client.core.json.NumberConverter
-
public class NumberConverter extends Object
-
-
Constructor Summary
Constructors Constructor Description NumberConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimal
getBigDecimal(Object obj, int columnType)
BigDecimal
getBigDecimal(Object obj, int columnType, Integer scale)
Object
getBigInt(Object obj, int columnType)
byte
getByte(Object obj)
double
getDouble(Object obj, int columnType)
float
getFloat(Object obj, int columnType)
int
getInt(Object obj, int columnType)
long
getLong(Object obj, int columnType)
short
getShort(Object obj, int columnType)
-
-
-
Method Detail
-
getByte
public byte getByte(Object obj)
-
getShort
public short getShort(Object obj, int columnType) throws SFException
- Throws:
SFException
-
getInt
public int getInt(Object obj, int columnType) throws SFException
- Throws:
SFException
-
getLong
public long getLong(Object obj, int columnType) throws SFException
- Throws:
SFException
-
getBigDecimal
public BigDecimal getBigDecimal(Object obj, int columnType) throws SFException
- Throws:
SFException
-
getBigDecimal
public BigDecimal getBigDecimal(Object obj, int columnType, Integer scale) throws SFException
- Throws:
SFException
-
getFloat
public float getFloat(Object obj, int columnType) throws SFException
- Throws:
SFException
-
getDouble
public double getDouble(Object obj, int columnType) throws SFException
- Throws:
SFException
-
getBigInt
public Object getBigInt(Object obj, int columnType) throws SFException
- Throws:
SFException
-
-