Class LongConverter
- java.lang.Object
-
- com.databricks.jdbc.api.impl.converters.LongConverter
-
- All Implemented Interfaces:
ObjectConverter
public class LongConverter extends Object implements ObjectConverter
-
-
Field Summary
-
Fields inherited from interface com.databricks.jdbc.api.impl.converters.ObjectConverter
DEFAULT_TIMESTAMP_SCALE, POWERS_OF_TEN
-
-
Constructor Summary
Constructors Constructor Description LongConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimaltoBigDecimal(Object object)BigIntegertoBigInteger(Object object)booleantoBoolean(Object object)bytetoByte(Object object)byte[]toByteArray(Object object)DatetoDate(Object object)doubletoDouble(Object object)floattoFloat(Object object)inttoInt(Object object)longtoLong(Object object)shorttoShort(Object object)StringtoString(Object object)TimestamptoTimestamp(Object object)TimestamptoTimestamp(Object object, int scale)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.databricks.jdbc.api.impl.converters.ObjectConverter
toAsciiStream, toBigDecimal, toBinaryStream, toChar, toCharacterStream, toDatabricksArray, toDatabricksMap, toDatabricksStruct, toLocalDate, toTime, toUnicodeStream
-
-
-
-
Method Detail
-
toLong
public long toLong(Object object) throws DatabricksSQLException
- Specified by:
toLongin interfaceObjectConverter- Throws:
DatabricksSQLException
-
toByte
public byte toByte(Object object) throws DatabricksSQLException
- Specified by:
toBytein interfaceObjectConverter- Throws:
DatabricksSQLException
-
toShort
public short toShort(Object object) throws DatabricksSQLException
- Specified by:
toShortin interfaceObjectConverter- Throws:
DatabricksSQLException
-
toInt
public int toInt(Object object) throws DatabricksSQLException
- Specified by:
toIntin interfaceObjectConverter- Throws:
DatabricksSQLException
-
toFloat
public float toFloat(Object object) throws DatabricksSQLException
- Specified by:
toFloatin interfaceObjectConverter- Throws:
DatabricksSQLException
-
toDouble
public double toDouble(Object object) throws DatabricksSQLException
- Specified by:
toDoublein interfaceObjectConverter- Throws:
DatabricksSQLException
-
toBigDecimal
public BigDecimal toBigDecimal(Object object) throws DatabricksSQLException
- Specified by:
toBigDecimalin interfaceObjectConverter- Throws:
DatabricksSQLException
-
toBigInteger
public BigInteger toBigInteger(Object object) throws DatabricksSQLException
- Specified by:
toBigIntegerin interfaceObjectConverter- Throws:
DatabricksSQLException
-
toBoolean
public boolean toBoolean(Object object) throws DatabricksSQLException
- Specified by:
toBooleanin interfaceObjectConverter- Throws:
DatabricksSQLException
-
toByteArray
public byte[] toByteArray(Object object) throws DatabricksSQLException
- Specified by:
toByteArrayin interfaceObjectConverter- Throws:
DatabricksSQLException
-
toString
public String toString(Object object) throws DatabricksSQLException
- Specified by:
toStringin interfaceObjectConverter- Throws:
DatabricksSQLException
-
toTimestamp
public Timestamp toTimestamp(Object object) throws DatabricksSQLException
- Specified by:
toTimestampin interfaceObjectConverter- Throws:
DatabricksSQLException
-
toTimestamp
public Timestamp toTimestamp(Object object, int scale) throws DatabricksSQLException
- Specified by:
toTimestampin interfaceObjectConverter- Throws:
DatabricksSQLException
-
toDate
public Date toDate(Object object) throws DatabricksSQLException
- Specified by:
toDatein interfaceObjectConverter- Throws:
DatabricksSQLException
-
-