Class DateConverter
- java.lang.Object
-
- com.databricks.jdbc.api.impl.converters.DateConverter
-
- All Implemented Interfaces:
ObjectConverter
public class DateConverter 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 DateConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegertoBigInteger(Object object)DatetoDate(Object object)inttoInt(Object object)LocalDatetoLocalDate(Object object)longtoLong(Object object)shorttoShort(Object object)StringtoString(Object object)TimestamptoTimestamp(Object object)-
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, toBigDecimal, toBinaryStream, toBoolean, toByte, toByteArray, toChar, toCharacterStream, toDatabricksArray, toDatabricksMap, toDatabricksStruct, toDouble, toFloat, toTime, toTimestamp, toUnicodeStream
-
-
-
-
Method Detail
-
toDate
public Date toDate(Object object) throws DatabricksSQLException
- Specified by:
toDatein interfaceObjectConverter- Throws:
DatabricksSQLException
-
toLong
public long toLong(Object object) throws DatabricksSQLException
- Specified by:
toLongin 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
-
toBigInteger
public BigInteger toBigInteger(Object object) throws DatabricksSQLException
- Specified by:
toBigIntegerin interfaceObjectConverter- Throws:
DatabricksSQLException
-
toLocalDate
public LocalDate toLocalDate(Object object) throws DatabricksSQLException
- Specified by:
toLocalDatein 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
-
-