public class BOOLEAN extends Datum
ojiOracleDatumWithConnection, targetDatum| Constructor and Description |
|---|
BOOLEAN(boolean bool)
Construct a BOOLEAN from a primitive boolean.
|
BOOLEAN(java.lang.Boolean bool)
Construct a BOOLEAN from an instance of java.lang.Boolean.
|
BOOLEAN(byte[] _bytes)
Construct a BOOLEAN from a byte array.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
booleanValue()
Calls
toBooleanValue() to convert into a Java Boolean. |
boolean |
isConvertibleTo(java.lang.Class<?> cls)
Determines if the object can be converted to a particular class
|
java.lang.Object |
makeJdbcArray(int arraySize)
Returns a JDBC array representation of the datum
|
static boolean |
toBoolean(byte[] bytes)
Convert an Oracle Number to a Java boolean.
|
boolean |
toBooleanValue()
Calls toBoolean to convert into a Java Boolean.
|
java.lang.Object |
toJdbc()
Returns the JDBC representation of the datum object
|
asciiStreamValue, bigDecimalValue, binaryStreamValue, bytesEqual, bytesHashCode, byteValue, characterStreamValue, compareBytes, dateValue, doubleValue, equals, floatValue, getBytes, getConnectionDuringExceptionHandling, getLength, getStream, intValue, isNull, longValue, setBytes, setShareBytes, shareBytes, stringValue, stringValue, timestampValue, timestampValue, timeValue, timeValue, toClasspublic BOOLEAN(byte[] _bytes)
_bytes - input data from which this class instance is
constructed.public BOOLEAN(boolean bool)
bool - input data from which this class instance is
constructed.public BOOLEAN(java.lang.Boolean bool)
bool - input data from which this class instance is
constructed.public boolean isConvertibleTo(java.lang.Class<?> cls)
isConvertibleTo in class Datumcls - Class to convert topublic java.lang.Object toJdbc()
throws java.sql.SQLException
public boolean toBooleanValue()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean booleanValue()
throws java.sql.SQLException
toBooleanValue() to convert into a Java Boolean.booleanValue in class Datumjava.sql.SQLExceptionpublic static boolean toBoolean(byte[] bytes)
false and non-zero values
translate to truebytes - in byte array formatpublic java.lang.Object makeJdbcArray(int arraySize)
makeJdbcArray in class DatumarraySize - size of the arrayjava.sql.SQLException - if conversion to JDBC array representation
results in an error