|
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.INTERVALYM
public class INTERVALYM
INTERVALYM Class
The INTERVALYM
class specifies a value to be used to measure time differences.
The internal data for this object is stored as a five byte array in the super class' storage area. The bytes are arranged as follows:
Byte Represents 0 High byte of year 1 2nd high byte of year 2 3rd high byte of year 3 least byte of year 4 month val + 60
Static methods are used for conversions.
Field Summary | |
---|---|
static boolean |
TRACE |
Constructor Summary | |
---|---|
INTERVALYM() Constructs a INTERVALYM object initialized with YY:MM to 0:0. |
|
INTERVALYM(byte[] intervalYM) Create an Oracle INTERVALYM object represented by the given intervalYM byte array |
|
INTERVALYM(String str) Create an Oracle INTERVALYM object represented by the given String |
Method Summary | |
---|---|
boolean |
isConvertibleTo(Class cls) Determines if the object can be converted to a particular class |
Object |
makeJdbcArray(int arraySize) Returns a JDBC array representation of the datum |
String |
stringValue() Returns String for this INTERVALYM object |
byte[] |
toBytes() Convert Oracle INTERVALYM object into a byte array |
static byte[] |
toBytes(String str) Convert Java String to Oracle INTERVALYM. |
Object |
toJdbc() Returns the JDBC representation of the INTERVALYM object |
String |
toString() Converts a INTERVALYM to a string |
static String |
toString(byte[] inparray) Converts a INTERVALYM to a string |
Methods inherited from class oracle.sql.Datum |
---|
asciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, bytesEqual, byteValue, characterStreamValue, compareBytes, dateValue, doubleValue, equals, floatValue, 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, wait, wait, wait |
Field Detail |
---|
public static final boolean TRACE
Constructor Detail |
---|
public INTERVALYM()
public INTERVALYM(byte[] intervalYM)
intervalYM
- byte arraypublic INTERVALYM(String str)
str
- Java String objectMethod Detail |
---|
public byte[] toBytes()
public static byte[] toBytes(String str)
str
- java.lang.String object to be converted.public static String toString(byte[] inparray)
inparray
- a byte array representing the INTERVALYM objectpublic Object toJdbc()
toJdbc
in class Datum
public String stringValue()
stringValue
in class Datum
public String toString()
toString
in class Object
public Object makeJdbcArray(int arraySize)
makeJdbcArray
in class Datum
arraySize
- size of the arraypublic boolean isConvertibleTo(Class cls)
isConvertibleTo
in class Datum
cls
- Class to convert to
|
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 |