Package oracle.sql
Class BINARY_DOUBLE
java.lang.Object
oracle.sql.Datum
oracle.sql.BINARY_DOUBLE
- All Implemented Interfaces:
Serializable
The BINARY_DOUBLE class is a representation of the Oracle BINARY_DOUBLE datatype.
It is intended to be immutable. The user should not try to change
its contents once it is constructed.
- See Also:
-
Field Summary
Fields inherited from class oracle.sql.Datum
ojiOracleDatumWithConnection, targetDatum -
Constructor Summary
ConstructorsConstructorDescriptionBINARY_DOUBLE(byte[] _bytes) Construct a BINARY_DOUBLE from a byte array.BINARY_DOUBLE(double d) Construct a BINARY_DOUBLE from a primitive double.Construct a BINARY_DOUBLE from an instance of java.lang.Boolean.Construct a BINARY_DOUBLE from an instance of java.lang.Double.Construct a BINARY_DOUBLE from an instance of java.lang.String. -
Method Summary
Modifier and TypeMethodDescriptionConvert this to a BigDecimal type.doubleConvert this to a double type.booleanisConvertibleTo(Class<?> jClass) Test whether this data object can be converted to the specified Java data type.Convert this data object into a String.toJdbc()Convert this data object into its default Java object type.Methods inherited from class oracle.sql.Datum
asciiStreamValue, binaryStreamValue, booleanValue, bytesEqual, bytesHashCode, byteValue, characterStreamValue, compareBytes, dateValue, equals, floatValue, getBytes, getConnectionDuringExceptionHandling, getLength, getStream, intValue, isNull, longValue, setBytes, setShareBytes, shareBytes, stringValue, timestampValue, timestampValue, timeValue, timeValue, toClass
-
Constructor Details
-
BINARY_DOUBLE
public BINARY_DOUBLE(byte[] _bytes) Construct a BINARY_DOUBLE from a byte array.- Parameters:
_bytes- input data from which this class instance is constructed.
-
BINARY_DOUBLE
public BINARY_DOUBLE(double d) Construct a BINARY_DOUBLE from a primitive double.- Parameters:
d- input data from which this class instance is constructed.
-
BINARY_DOUBLE
Construct a BINARY_DOUBLE from an instance of java.lang.Double.- Parameters:
d- input data from which this class instance is constructed.
-
BINARY_DOUBLE
Construct a BINARY_DOUBLE from an instance of java.lang.String.- Parameters:
s- input data from which this class instance is constructed.- Throws:
SQLException
-
BINARY_DOUBLE
Construct a BINARY_DOUBLE from an instance of java.lang.Boolean.- Parameters:
b- input data from which this class instance is constructed.
-
-
Method Details
-
toJdbc
Convert this data object into its default Java object type.- Specified by:
toJdbcin classDatum- Returns:
- the data value as a byte array.
- Throws:
SQLException- if any of the lower layer code throws an exception.
-
isConvertibleTo
Test whether this data object can be converted to the specified Java data type.- Specified by:
isConvertibleToin classDatum- Parameters:
jClass- specifies the Java data type to test against.- Returns:
- true if this data object is convertible to the specified Java class, and a corresponding xxxValue() method is available; otherwise, a false is returned.
-
stringValue
Convert this data object into a String.- Overrides:
stringValuein classDatum- Returns:
- the data value in String representation.
-
doubleValue
Convert this to a double type.- Overrides:
doubleValuein classDatum- Returns:
- The double value of this type
- Throws:
SQLException
-
bigDecimalValue
Convert this to a BigDecimal type.- Overrides:
bigDecimalValuein classDatum- Returns:
- The BigDecimal value of this type
- Throws:
SQLException
-