Class BooleanConverter
- java.lang.Object
-
- com.databricks.jdbc.api.impl.converters.BooleanConverter
-
- All Implemented Interfaces:
ObjectConverter
public class BooleanConverter 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 BooleanConverter()
-
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)chartoChar(Object object)doubletoDouble(Object object)floattoFloat(Object object)inttoInt(Object object)longtoLong(Object object)shorttoShort(Object object)StringtoString(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, toBinaryStream, toCharacterStream, toDatabricksArray, toDatabricksMap, toDatabricksStruct, toDate, toLocalDate, toTime, toTimestamp, toTimestamp, toUnicodeStream
-
-
-
-
Method Detail
-
toBoolean
public boolean toBoolean(Object object) throws DatabricksSQLException
- Specified by:
toBooleanin 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
-
toLong
public long toLong(Object object) throws DatabricksSQLException
- Specified by:
toLongin 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
-
toByteArray
public byte[] toByteArray(Object object) throws DatabricksSQLException
- Specified by:
toByteArrayin interfaceObjectConverter- Throws:
DatabricksSQLException
-
toChar
public char toChar(Object object) throws DatabricksSQLException
- Specified by:
toCharin interfaceObjectConverter- Throws:
DatabricksSQLException
-
toString
public String toString(Object object) throws DatabricksSQLException
- Specified by:
toStringin interfaceObjectConverter- Throws:
DatabricksSQLException
-
-