|
Oracle®Database JDBC Java API Reference 12c Release 1 (12.1.0.2) E56669-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.sql.Datum
oracle.sql.BINARY_FLOAT
public class BINARY_FLOAT
The BINARY_FLOAT class is a representation of the Oracle BINARY_FLOAT datatype. It is intended to be immutable. The user should not try to change its contents once it is constructed.
Field Summary | |
---|---|
static boolean |
TRACE |
Constructor Summary | |
---|---|
BINARY_FLOAT(Boolean b) Construct a BINARY_FLOAT from an instance of java.lang.Boolean |
|
BINARY_FLOAT(byte[] _bytes) Construct a BINARY_FLOAT from a byte array. |
|
BINARY_FLOAT(float f) Construct a BINARY_FLOAT from a primitive float. |
|
BINARY_FLOAT(Float f) Construct a BINARY_FLOAT from an instance of java.lang.Float. |
|
BINARY_FLOAT(String s) Construct a BINARY_FLOAT from an instance of java.lang.String. |
Method Summary | |
---|---|
BigDecimal |
bigDecimalValue() Convert this to a BigDecimal type. |
double |
doubleValue() Convert this to a double type. |
float |
floatValue() Convert this to a float type. |
boolean |
isConvertibleTo(Class jClass) Test whether this data object can be converted to the specified Java data type. |
String |
stringValue() Convert this data object into a String. |
Object |
toJdbc() Convert this data object into its default Java object type. |
Methods inherited from class oracle.sql.Datum |
---|
asciiStreamValue, binaryStreamValue, booleanValue, bytesEqual, byteValue, characterStreamValue, compareBytes, dateValue, equals, getBytes, getConnectionDuringExceptionHandling, getLength, getStream, intValue, isNull, longValue, setBytes, setShareBytes, shareBytes, stringValue, timestampValue, timestampValue, timeValue, timeValue, toClass |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean TRACE
Constructor Detail |
---|
public BINARY_FLOAT(byte[] _bytes)
_bytes
- input data from which this class instance is constructed.public BINARY_FLOAT(float f)
f
- input data from which this class instance is constructed.public BINARY_FLOAT(Float f)
f
- input data from which this class instance is constructed.public BINARY_FLOAT(String s) throws SQLException
s
- input data from which this class instance is constructed.SQLException
public BINARY_FLOAT(Boolean b)
b
- input data from which this class instance is constructed.Method Detail |
---|
public Object toJdbc() throws SQLException
toJdbc
in class Datum
SQLException
- if any of the lower layer code throws an exception.public boolean isConvertibleTo(Class jClass)
isConvertibleTo
in class Datum
jClass
- specifies the Java data type to test against.public String stringValue()
stringValue
in class Datum
public float floatValue() throws SQLException
floatValue
in class Datum
SQLException
public double doubleValue() throws SQLException
doubleValue
in class Datum
SQLException
public BigDecimal bigDecimalValue() throws SQLException
bigDecimalValue
in class Datum
SQLException
|
Oracle®Database JDBC Java API Reference 12c Release 1 (12.1.0.2) E56669-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |