Interface ObjectConverter
-
- All Known Implementing Classes:
BigDecimalConverter,BitConverter,BooleanConverter,ByteArrayConverter,ByteConverter,DateConverter,DoubleConverter,FloatConverter,GeospatialConverter,IntConverter,LongConverter,ShortConverter,StringConverter,TimestampConverter
public interface ObjectConverter
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_TIMESTAMP_SCALEstatic long[]POWERS_OF_TEN
-
Method Summary
-
-
-
Field Detail
-
POWERS_OF_TEN
static final long[] POWERS_OF_TEN
-
DEFAULT_TIMESTAMP_SCALE
static final int DEFAULT_TIMESTAMP_SCALE
- See Also:
- Constant Field Values
-
-
Method Detail
-
toByte
default byte toByte(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toShort
default short toShort(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toInt
default int toInt(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toLong
default long toLong(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toFloat
default float toFloat(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toDouble
default double toDouble(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toBigDecimal
default BigDecimal toBigDecimal(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toBigDecimal
default BigDecimal toBigDecimal(Object object, int scale) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toBigInteger
default BigInteger toBigInteger(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toLocalDate
default LocalDate toLocalDate(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toBoolean
default boolean toBoolean(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toByteArray
default byte[] toByteArray(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toChar
default char toChar(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toString
default String toString(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toTime
default Time toTime(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toTimestamp
default Timestamp toTimestamp(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toTimestamp
default Timestamp toTimestamp(Object object, int scale) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toDate
default Date toDate(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toDatabricksArray
default DatabricksArray toDatabricksArray(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toDatabricksMap
default DatabricksMap toDatabricksMap(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toDatabricksStruct
default DatabricksStruct toDatabricksStruct(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toDatabricksGeometry
default DatabricksGeometry toDatabricksGeometry(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toDatabricksGeography
default DatabricksGeography toDatabricksGeography(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toBinaryStream
default InputStream toBinaryStream(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toUnicodeStream
default InputStream toUnicodeStream(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toAsciiStream
default InputStream toAsciiStream(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
toCharacterStream
default Reader toCharacterStream(Object object) throws DatabricksSQLException
- Throws:
DatabricksSQLException
-
-