public class TIMESTAMPLTZ extends Datum
The TIMESTAMPLTZ class provides conversions between the
Oracle Date (ldx_t) data type and Java classes java.sql.Date,
java.sql.Time, java.sql.Timestamp
The internal data for this object is stored as a eleven byte array in the super class' storage area. The bytes are arranged as follows:
Byte Represents
0 Century (119 for 1990)
1 Decade (190 for 1990)
2 Month
3 Day
4 Hour
5 Minute
6 Seconds
7 Nanoseconds (Most Significant bit)
8 Nanoseconds
9 Nanoseconds
10 Nanoseconds (Least Significant Bit)
-We add 100 to the century and decade fields so that negative values
will be positive and positive values will be higher than negative values
-We add 1 to the month,hour,minute,second fields for the java objects since
they start of from 0.
Static methods are used for conversions.
ojiOracleDatumWithConnection, targetDatum| Constructor and Description |
|---|
TIMESTAMPLTZ()
Constructs a TIMESTAMPLTZ object initialized to 1/1/1970.
|
TIMESTAMPLTZ(byte[] timestampltz)
Create an Oracle TIMESTAMPLTZ object represented by the given
Oracle Timestampltz
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.util.Calendar sess,
java.sql.Date date)
Create an Oracle TIMESTAMPLTZ object represented by the Java Date
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.util.Calendar sess,
DATE date)
Create an Oracle TIMESTAMPLTZ object represented by the Oracle DATE
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.util.Calendar sess,
java.lang.String str)
Deprecated.
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.util.Calendar sess,
java.sql.Time time)
Create an Oracle TIMESTAMPLTZ object represented by the given Java Time
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.util.Calendar sess,
java.sql.Timestamp timestamp)
Create an Oracle TIMESTAMPLTZ object represented by the Java Timestamp
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.sql.Date date)
Create an Oracle TIMESTAMPLTZ object represented by the Java Date
|
TIMESTAMPLTZ(java.sql.Connection conn,
DATE date)
Create an Oracle TIMESTAMPLTZ object represented by the Oracle DATE
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.sql.Date date,
java.util.Calendar dbtz)
Deprecated.
|
TIMESTAMPLTZ(java.sql.Connection conn,
DATE date,
java.util.Calendar dbtz)
Deprecated.
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.time.LocalDateTime ldt)
Create an Oracle TIMESTAMPLTZ object represented by the LocalDateTime
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.time.OffsetDateTime odt)
Create an Oracle TIMESTAMPLTZ object represented by the OffsetDateTime
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.time.OffsetTime ot)
Create an Oracle TIMESTAMPLTZ object represented by the OffsetTime
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.lang.String str)
Deprecated.
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.lang.String str,
java.util.Calendar dbtz)
Deprecated.
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.sql.Time time)
Create an Oracle TIMESTAMPLTZ object represented by the given Java Time
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.sql.Time time,
java.util.Calendar dbtz)
Deprecated.
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.sql.Timestamp timestamp)
Create an Oracle TIMESTAMPLTZ object represented by the Java Timestamp
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.sql.Timestamp timestamp,
java.util.Calendar dbtz)
Deprecated.
|
TIMESTAMPLTZ(java.sql.Connection conn,
java.time.ZonedDateTime zdt)
Create an Oracle TIMESTAMPLTZ object represented by the ZonedDateTime
|
| Modifier and Type | Method and Description |
|---|---|
java.sql.Date |
dateValue(java.sql.Connection conn)
Calls toDate(Connection, byte[]) to convert internal Oracle
TIMESTAMPLTZ to a Java Date.
|
java.sql.Date |
dateValue(java.sql.Connection conn,
java.util.Calendar cal)
Calls toDate(Connection, byte[], Calendar) to convert internal Oracle
TIMESTAMPLTZ to a Java Date.
|
boolean |
isConvertibleTo(java.lang.Class<?> cls)
Determines if the object can be converted to a particular class
|
java.time.LocalDateTime |
localDateTimeValue(java.sql.Connection conn)
Calls toLocalDateTime(Connection, byte[]) to convert internal Oracle
TIMESTAMPLTZ to a Java LocalDateTime.
|
java.lang.Object |
makeJdbcArray(int arraySize)
Returns a JDBC array representation of the datum
|
static TIMESTAMPLTZ |
of(java.sql.Connection conn,
java.time.LocalDateTime ldt)
Creates TIMESTAMPLTZ from the LocalDateTime.
|
static TIMESTAMPLTZ |
of(java.sql.Connection conn,
java.time.OffsetDateTime odt)
Creates TIMESTAMPLTZ from the OffsetDateTime.
|
static TIMESTAMPLTZ |
of(java.sql.Connection conn,
java.time.OffsetTime ot)
Creates TIMESTAMPLTZ from the OffsetTime.
|
static TIMESTAMPLTZ |
of(java.sql.Connection conn,
java.time.ZonedDateTime zdt)
Creates TIMESTAMPLTZ from the ZonedDateTime.
|
java.time.OffsetDateTime |
offsetDateTimeValue(java.sql.Connection conn)
Calls toOffsetDateTime(Connection, byte[]) to convert internal Oracle
TIMESTAMPLTZ to a Java OffsetDateTime.
|
java.time.OffsetTime |
offsetTimeValue(java.sql.Connection conn)
Calls toOffsetTime(Connection, byte[]) to convert internal Oracle
TIMESTAMPLTZ to a Java OffsetTime.
|
java.lang.String |
stringValue(java.sql.Connection conn)
Calls toString(Connection, byte[]) to convert internal Oracle
TIMESTAMPLTZ to a Java String.
|
java.lang.String |
stringValue(java.sql.Connection conn,
java.util.Calendar cal)
Calls toString(Connection, byte[], Calendar) to convert internal Oracle
TIMESTAMPLTZ to a Java String.
|
java.sql.Timestamp |
timestampValue(java.sql.Connection conn) |
java.sql.Timestamp |
timestampValue(java.sql.Connection conn,
java.util.Calendar dbtz)
Calls toTimestamp to convert internal Oracle TIMESTAMPLTZ
to a Java Timestamp.
|
java.sql.Time |
timeValue(java.sql.Connection conn)
Calls toTime to convert internal Oracle TIMESTAMPLTZ to a Java Time.
|
java.sql.Time |
timeValue(java.sql.Connection conn,
java.util.Calendar cal)
Calls toTime to convert internal Oracle TIMESTAMPLTZ to a Java Time.
|
static void |
TimeZoneAdjust(java.sql.Connection conn,
java.util.Calendar cal1,
java.util.Calendar cal2) |
static long |
TimeZoneAdjustUTC(java.sql.Connection conn,
java.util.Calendar cal1) |
byte[] |
toBytes()
Convert Oracle TIMESTAMPLTZ object into a byte array
|
static byte[] |
toBytes(java.sql.Connection conn,
java.util.Calendar cal,
java.sql.Date date)
Convert Java Date to Oracle TIMESTAMPLTZ.
|
static byte[] |
toBytes(java.sql.Connection conn,
java.util.Calendar cal,
DATE date)
Convert Oracle DATE to Oracle TIMESTAMPLTZ
|
static byte[] |
toBytes(java.sql.Connection conn,
java.util.Calendar sess,
java.lang.String str)
Convert Java String to Oracle TIMESTAMPLTZ.
|
static byte[] |
toBytes(java.sql.Connection conn,
java.util.Calendar cal,
java.sql.Time time)
Convert Java Time to Oracle TIMESTAMPLTZ.
|
static byte[] |
toBytes(java.sql.Connection conn,
java.util.Calendar cal,
java.sql.Timestamp timestamp)
Convert Java Timestamp to Oracle TIMESTAMPLTZ
|
static byte[] |
toBytes(java.sql.Connection conn,
java.sql.Date date,
java.util.Calendar dbtz)
Deprecated.
|
static byte[] |
toBytes(java.sql.Connection conn,
DATE date,
java.util.Calendar dbtz)
Deprecated.
|
static byte[] |
toBytes(java.sql.Connection conn,
java.time.LocalDateTime ldt)
Convert Java LocalDateTime to Oracle TIMESTAMPLTZ.
|
static byte[] |
toBytes(java.sql.Connection conn,
java.time.OffsetDateTime odt)
Convert Java OffsetDateTime to Oracle TIMESTAMPLTZ.
|
static byte[] |
toBytes(java.sql.Connection conn,
java.time.OffsetTime ot)
Convert Java OffsetTime to Oracle TIMESTAMPLTZ.
|
static byte[] |
toBytes(java.sql.Connection conn,
java.lang.String str,
java.util.Calendar dbtz)
Convert Java String to Oracle TIMESTAMPLTZ.
|
static byte[] |
toBytes(java.sql.Connection conn,
java.sql.Time time,
java.util.Calendar dbtz)
Deprecated.
|
static byte[] |
toBytes(java.sql.Connection conn,
java.sql.Timestamp timestamp,
java.util.Calendar dbtz)
Deprecated.
|
static byte[] |
toBytes(java.sql.Connection conn,
java.time.ZonedDateTime zdt)
Convert Java ZonedDateTime to Oracle TIMESTAMPLTZ.
|
static java.sql.Date |
toDate(java.sql.Connection conn,
byte[] timestampltz)
Convert a byte array representing a TIMESTAMPLTZ object to a
Java Date Object
|
static DATE |
toDATE(java.sql.Connection conn,
byte[] timestampltz)
Convert a byte array representing a TIMESTAMPLTZ object to a
Oracle DATE Object
|
static java.sql.Date |
toDate(java.sql.Connection conn,
byte[] timestampltz,
java.util.Calendar dbtz)
Deprecated.
|
static DATE |
toDATE(java.sql.Connection conn,
byte[] timestampltz,
java.util.Calendar dbtz)
Deprecated.
|
java.lang.Object |
toJdbc()
Returns the JDBC representation of the datum object
|
java.time.LocalDateTime |
toLocalDateTime(java.sql.Connection conn)
Convert a byte array representing a TIMESTAMPLTZ object to a
Java LocalDateTime Object
|
static java.time.LocalDateTime |
toLocalDateTime(java.sql.Connection conn,
byte[] timestampltz)
Convert a byte array representing a TIMESTAMPLTZ object to a
Java LocalDateTime Object
|
static java.time.OffsetDateTime |
toOffsetDateTime(java.sql.Connection conn,
byte[] timestampltz)
Convert a byte array representing a TIMESTAMPLTZ object to a
Java OffsetDateTime Object
|
static java.time.OffsetTime |
toOffsetTime(java.sql.Connection conn,
byte[] timestampltz)
Convert a byte array representing a TIMESTAMPLTZ object to a
Java OffsetTime Object
|
static java.lang.String |
toString(java.sql.Connection conn,
byte[] timestampltz)
Converts a TIMESTAMPLTZ to a string
|
static java.lang.String |
toString(java.sql.Connection conn,
byte[] timestampltz,
java.util.Calendar dbtz)
Deprecated.
|
static java.sql.Time |
toTime(java.sql.Connection conn,
byte[] timestampltz)
Convert a byte array representing a TIMESTAMPLTZ object to a
Java Time Object
|
static java.sql.Time |
toTime(java.sql.Connection conn,
byte[] timestampltz,
java.util.Calendar dbtz)
Deprecated.
|
static java.sql.Timestamp |
toTimestamp(java.sql.Connection conn,
byte[] timestampltz)
Convert a byte array representing a TIMESTAMPLTZ object to a
Java Timestamp Object
|
static TIMESTAMP |
toTIMESTAMP(java.sql.Connection conn,
byte[] timestampltz)
Convert a byte array representing a TIMESTAMPLTZ object to a
Oracle TIMESTAMP Object
|
static java.sql.Timestamp |
toTimestamp(java.sql.Connection conn,
byte[] timestampltz,
java.util.Calendar dbtz)
Deprecated.
|
static TIMESTAMPTZ |
toTIMESTAMPTZ(java.sql.Connection conn,
byte[] timestampltz)
Convert a byte array representing a TIMESTAMPLTZ object to a
Oracle TIMESTAMPTZ Object
|
static java.time.ZonedDateTime |
toZonedDateTime(java.sql.Connection conn,
byte[] timestampltz)
Convert a byte array representing a TIMESTAMPLTZ object to a
Java ZonedDateTime Object
|
java.time.ZonedDateTime |
zonedDateTimeValue(java.sql.Connection conn)
Calls toZonedDateTime(Connection, byte[]) to convert internal Oracle
TIMESTAMPLTZ to a Java ZonedDateTime.
|
asciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, bytesEqual, bytesHashCode, byteValue, characterStreamValue, compareBytes, dateValue, doubleValue, equals, floatValue, getBytes, getConnectionDuringExceptionHandling, getLength, getStream, intValue, isNull, longValue, setBytes, setShareBytes, shareBytes, stringValue, timestampValue, timestampValue, timeValue, timeValue, toClasspublic TIMESTAMPLTZ()
public TIMESTAMPLTZ(byte[] timestampltz)
Connection - connpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.sql.Time time,
java.util.Calendar dbtz)
throws java.sql.SQLException
conn - JDBC connection
time Java Time object
dbtz Calendar object containing Database Timezonejava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.sql.Date date,
java.util.Calendar dbtz)
throws java.sql.SQLException
conn - JDBC connection
date Java Date object
dbtz Calendar object containing Database Timezonejava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.sql.Timestamp timestamp,
java.util.Calendar dbtz)
throws java.sql.SQLException
conn - Connection
timestamp Java Timestamp object
dbtz Calendar object containing Database Timezonejava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
DATE date,
java.util.Calendar dbtz)
throws java.sql.SQLException
conn - JDBC connection
date Oracle DATE object
dbtz Calendar object containing Database Timezonejava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.lang.String str,
java.util.Calendar dbtz)
throws java.sql.SQLException
conn - JDBC connection
str Java String object
dbtz Calendar object containing Database Timezonejava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.util.Calendar sess,
java.sql.Time time)
throws java.sql.SQLException
conn - JDBC connection
sess Calendar object containing Session Timezone
time Java Time objectjava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.util.Calendar sess,
java.sql.Date date)
throws java.sql.SQLException
conn - JDBC connection
sess Calendar object containing Session Timezone
date Java Date objectjava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.util.Calendar sess,
java.sql.Timestamp timestamp)
throws java.sql.SQLException
conn - Connection
sess Calendar object containing Session Timezone
timestamp Java Timestamp objectjava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.util.Calendar sess,
DATE date)
throws java.sql.SQLException
conn - JDBC connection
sess Calendar object containing Session Timezone
date Oracle DATE objectjava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.util.Calendar sess,
java.lang.String str)
throws java.sql.SQLException
conn - JDBC connection
sess Calendar object containing Session Timezone
str Java String objectjava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.sql.Time time)
throws java.sql.SQLException
conn - JDBC connection
time Java Time objectjava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.sql.Date date)
throws java.sql.SQLException
conn - JDBC connection
date Java Date objectjava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.sql.Timestamp timestamp)
throws java.sql.SQLException
conn - Connection
timestamp Java Timestamp objectjava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
DATE date)
throws java.sql.SQLException
conn - JDBC connection
date Oracle DATE objectjava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.lang.String str)
throws java.sql.SQLException
conn - JDBC connection
str Java String objectjava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.time.OffsetDateTime odt)
throws java.sql.SQLException
conn - JDBC connection
odt OffsetDateTime objectjava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.time.OffsetTime ot)
throws java.sql.SQLException
conn - JDBC connection
ot OffsetTime objectjava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.time.ZonedDateTime zdt)
throws java.sql.SQLException
conn - JDBC connection
zdt ZonedDateTime objectjava.sql.SQLExceptionpublic TIMESTAMPLTZ(java.sql.Connection conn,
java.time.LocalDateTime ldt)
throws java.sql.SQLException
conn - JDBC connection
ldt LocalDateTime objectjava.sql.SQLExceptionpublic static java.sql.Date toDate(java.sql.Connection conn,
byte[] timestampltz,
java.util.Calendar dbtz)
throws java.sql.SQLException
conn - JDBC connection
timestampltz Oracle TIMESTAMPLTZ object
dbtz Database timezonejava.sql.SQLExceptionpublic static java.sql.Time toTime(java.sql.Connection conn,
byte[] timestampltz,
java.util.Calendar dbtz)
throws java.sql.SQLException
conn - JDBC connection
timestampltz Oracle TIMESTAMPLTZ object
dbtz Database timezonejava.sql.SQLExceptionpublic static java.sql.Timestamp toTimestamp(java.sql.Connection conn,
byte[] timestampltz,
java.util.Calendar dbtz)
throws java.sql.SQLException
conn - JDBC connection
timestampltz Oracle TIMESTAMPLTZ object
dbtz Database timezonejava.sql.SQLExceptionpublic static DATE toDATE(java.sql.Connection conn, byte[] timestampltz, java.util.Calendar dbtz) throws java.sql.SQLException
conn - JDBC connection
timestampltz Oracle TIMESTAMPLTZ object
dbtz Database timezonejava.sql.SQLExceptionpublic java.sql.Timestamp timestampValue(java.sql.Connection conn,
java.util.Calendar dbtz)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Timestamp timestampValue(java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String toString(java.sql.Connection conn,
byte[] timestampltz,
java.util.Calendar dbtz)
throws java.sql.SQLException
date - a byte arrayjava.sql.SQLExceptionpublic byte[] toBytes()
public static byte[] toBytes(java.sql.Connection conn,
java.sql.Time time,
java.util.Calendar dbtz)
throws java.sql.SQLException
conn - JDBC connection
time java.sql.Time object to be converted.
dbtz Database timezonejava.sql.SQLExceptionpublic static byte[] toBytes(java.sql.Connection conn,
java.sql.Date date,
java.util.Calendar dbtz)
throws java.sql.SQLException
conn - JDBC connection
date java.sql.Date object to be converted.
dbtz Database timezonejava.sql.SQLExceptionpublic static byte[] toBytes(java.sql.Connection conn,
java.sql.Timestamp timestamp,
java.util.Calendar dbtz)
throws java.sql.SQLException
conn - JDBC connection
Timestamp java.sql.Timestamp object to be converted.
dbtz database timezonejava.sql.SQLExceptionpublic static byte[] toBytes(java.sql.Connection conn,
DATE date,
java.util.Calendar dbtz)
throws java.sql.SQLException
conn - JDBC connection
date oracle.sql.DATE object to be converted.
dbtz database timezonejava.sql.SQLExceptionpublic static byte[] toBytes(java.sql.Connection conn,
java.lang.String str,
java.util.Calendar dbtz)
throws java.sql.SQLException
conn - JDBC Connection
str java.lang.String object to be converted.
dbtz database timezonejava.sql.SQLExceptionpublic static java.sql.Date toDate(java.sql.Connection conn,
byte[] timestampltz)
throws java.sql.SQLException
conn - JDBC connection
timestampltz Oracle TIMESTAMPLTZ objectjava.sql.SQLExceptionpublic java.time.LocalDateTime toLocalDateTime(java.sql.Connection conn)
throws java.sql.SQLException
conn - JDBC connectionjava.sql.SQLExceptionpublic static java.time.LocalDateTime toLocalDateTime(java.sql.Connection conn,
byte[] timestampltz)
throws java.sql.SQLException
conn - JDBC connection
timestampltz Oracle TIMESTAMPLTZ objectjava.sql.SQLExceptionpublic static TIMESTAMPLTZ of(java.sql.Connection conn, java.time.OffsetDateTime odt) throws java.sql.SQLException
odt - OffsetDateTime objectjava.sql.SQLExceptionpublic static TIMESTAMPLTZ of(java.sql.Connection conn, java.time.OffsetTime ot) throws java.sql.SQLException
ot - OffsetTime objectjava.sql.SQLExceptionpublic static TIMESTAMPLTZ of(java.sql.Connection conn, java.time.ZonedDateTime zdt) throws java.sql.SQLException
zdt - ZonedDateTime objectjava.sql.SQLExceptionpublic static TIMESTAMPLTZ of(java.sql.Connection conn, java.time.LocalDateTime ldt) throws java.sql.SQLException
ldt - LocalDateTime objectjava.sql.SQLExceptionpublic static java.time.OffsetDateTime toOffsetDateTime(java.sql.Connection conn,
byte[] timestampltz)
throws java.sql.SQLException
conn - JDBC connection
timestampltz Oracle TIMESTAMPLTZ objectjava.sql.SQLExceptionpublic static java.time.OffsetTime toOffsetTime(java.sql.Connection conn,
byte[] timestampltz)
throws java.sql.SQLException
conn - JDBC connection
timestampltz Oracle TIMESTAMPLTZ objectjava.sql.SQLExceptionpublic static java.time.ZonedDateTime toZonedDateTime(java.sql.Connection conn,
byte[] timestampltz)
throws java.sql.SQLException
conn - JDBC connection
timestampltz Oracle TIMESTAMPLTZ objectjava.sql.SQLExceptionpublic static java.sql.Time toTime(java.sql.Connection conn,
byte[] timestampltz)
throws java.sql.SQLException
conn - JDBC connection
timestampltz Oracle TIMESTAMPLTZ objectjava.sql.SQLExceptionpublic static java.sql.Timestamp toTimestamp(java.sql.Connection conn,
byte[] timestampltz)
throws java.sql.SQLException
conn - JDBC connection
timestamp Oracle TIMESTAMP objectjava.sql.SQLExceptionpublic static DATE toDATE(java.sql.Connection conn, byte[] timestampltz) throws java.sql.SQLException
conn - JDBC connection
timestampltz Oracle TIMESTAMPLTZ objectjava.sql.SQLExceptionpublic static TIMESTAMP toTIMESTAMP(java.sql.Connection conn, byte[] timestampltz) throws java.sql.SQLException
conn - JDBC connection
timestamp Oracle TIMESTAMPLTZ objectjava.sql.SQLExceptionpublic static TIMESTAMPTZ toTIMESTAMPTZ(java.sql.Connection conn, byte[] timestampltz) throws java.sql.SQLException
conn - JDBC connection
timestamp Oracle TIMESTAMPLTZ objectjava.sql.SQLExceptionpublic static java.lang.String toString(java.sql.Connection conn,
byte[] timestampltz)
throws java.sql.SQLException
date - a byte arrayjava.sql.SQLExceptionpublic static byte[] toBytes(java.sql.Connection conn,
java.util.Calendar cal,
java.sql.Time time)
throws java.sql.SQLException
conn - JDBC connection
cal Session timezone
time java.sql.Time object to be converted.java.sql.SQLExceptionpublic static byte[] toBytes(java.sql.Connection conn,
java.util.Calendar cal,
java.sql.Date date)
throws java.sql.SQLException
conn - JDBC connection
cal Session timezone
date java.sql.Date object to be converted.java.sql.SQLExceptionpublic static byte[] toBytes(java.sql.Connection conn,
java.util.Calendar cal,
java.sql.Timestamp timestamp)
throws java.sql.SQLException
conn - JDBC connection
cal Session timezone
Timestamp java.sql.Timestamp object to be converted.java.sql.SQLExceptionpublic static byte[] toBytes(java.sql.Connection conn,
java.util.Calendar cal,
DATE date)
throws java.sql.SQLException
conn - JDBC connection
cal Session timezone
date oracle.sql.DATE object to be converted.java.sql.SQLExceptionpublic static byte[] toBytes(java.sql.Connection conn,
java.util.Calendar sess,
java.lang.String str)
throws java.sql.SQLException
conn - JDBC Connection
sess Calendar object containing Session Timezone
str java.lang.String object to be converted.java.sql.SQLExceptionpublic static byte[] toBytes(java.sql.Connection conn,
java.time.OffsetTime ot)
throws java.sql.SQLException
conn - JDBC Connection
odt OffsetTime objectjava.sql.SQLExceptionpublic static byte[] toBytes(java.sql.Connection conn,
java.time.ZonedDateTime zdt)
throws java.sql.SQLException
conn - JDBC Connection
zdt ZonedDateTime objectjava.sql.SQLExceptionpublic static byte[] toBytes(java.sql.Connection conn,
java.time.OffsetDateTime odt)
throws java.sql.SQLException
conn - JDBC Connection
odt OffsetDateTime objectjava.sql.SQLExceptionpublic static byte[] toBytes(java.sql.Connection conn,
java.time.LocalDateTime ldt)
throws java.sql.SQLException
conn - JDBC Connection
ldt LocalDateTime objectjava.sql.SQLExceptionpublic java.lang.String stringValue(java.sql.Connection conn)
throws java.sql.SQLException
stringValue in class Datumconn - oracle.JDBC.OracleConnection objectjava.sql.SQLExceptionpublic java.lang.String stringValue(java.sql.Connection conn,
java.util.Calendar cal)
throws java.sql.SQLException
conn - oracle.JDBC.OracleConnection object
cal java.util.Calendar objectjava.sql.SQLExceptionpublic java.sql.Date dateValue(java.sql.Connection conn,
java.util.Calendar cal)
throws java.sql.SQLException
conn - JDBC Connection object
cal java.util.Calendar objectjava.sql.SQLExceptionpublic java.sql.Date dateValue(java.sql.Connection conn)
throws java.sql.SQLException
conn - JDBC Connection objectjava.sql.SQLExceptionpublic java.time.LocalDateTime localDateTimeValue(java.sql.Connection conn)
throws java.sql.SQLException
conn - JDBC Connection objectjava.sql.SQLExceptionpublic java.time.OffsetDateTime offsetDateTimeValue(java.sql.Connection conn)
throws java.sql.SQLException
conn - JDBC Connection objectjava.sql.SQLExceptionpublic java.time.OffsetTime offsetTimeValue(java.sql.Connection conn)
throws java.sql.SQLException
conn - JDBC Connection objectjava.sql.SQLExceptionpublic java.time.ZonedDateTime zonedDateTimeValue(java.sql.Connection conn)
throws java.sql.SQLException
conn - JDBC Connection objectjava.sql.SQLExceptionpublic java.sql.Time timeValue(java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Time timeValue(java.sql.Connection conn,
java.util.Calendar cal)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object toJdbc()
throws java.sql.SQLException
public java.lang.Object makeJdbcArray(int arraySize)
makeJdbcArray in class DatumarraySize - size of the arraypublic boolean isConvertibleTo(java.lang.Class<?> cls)
isConvertibleTo in class Datumcls - Class to convert topublic static void TimeZoneAdjust(java.sql.Connection conn,
java.util.Calendar cal1,
java.util.Calendar cal2)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static long TimeZoneAdjustUTC(java.sql.Connection conn,
java.util.Calendar cal1)
throws java.sql.SQLException
java.sql.SQLException