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 BigDecimalgetBigDecimal(Object obj, int columnType)BigDecimalgetBigDecimal(Object obj, int columnType, Integer scale)ObjectgetBigInt(Object obj, int columnType)bytegetByte(Object obj)doublegetDouble(Object obj, int columnType)floatgetFloat(Object obj, int columnType)intgetInt(Object obj, int columnType)longgetLong(Object obj, int columnType)shortgetShort(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
-
-