Package oracle.sql

Class TIMESTAMPLTZ

java.lang.Object
oracle.sql.Datum
oracle.sql.TIMESTAMPLTZ
All Implemented Interfaces:
Serializable

public class TIMESTAMPLTZ extends Datum
TIMESTAMPLTZ Class


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.

Since:
release specific (what release of product did this appear in)
See Also:
  • Constructor Details

    • TIMESTAMPLTZ

      public TIMESTAMPLTZ()
      Constructs a TIMESTAMPLTZ object initialized to 1/1/1970.
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(byte[] timestampltz)
      Create an Oracle TIMESTAMPLTZ object represented by the given Oracle Timestampltz
      Parameters:
      Connection - conn
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, Time time, Calendar dbtz) throws SQLException
      Deprecated.
      Create an Oracle TIMESTAMPLTZ object represented by the given Java Time
      Parameters:
      conn - JDBC connection time Java Time object dbtz Calendar object containing Database Timezone
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, Date date, Calendar dbtz) throws SQLException
      Deprecated.
      Create an Oracle TIMESTAMPLTZ object represented by the Java Date
      Parameters:
      conn - JDBC connection date Java Date object dbtz Calendar object containing Database Timezone
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, Timestamp timestamp, Calendar dbtz) throws SQLException
      Deprecated.
      Create an Oracle TIMESTAMPLTZ object represented by the Java Timestamp
      Parameters:
      conn - Connection timestamp Java Timestamp object dbtz Calendar object containing Database Timezone
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, DATE date, Calendar dbtz) throws SQLException
      Deprecated.
      Create an Oracle TIMESTAMPLTZ object represented by the Oracle DATE
      Parameters:
      conn - JDBC connection date Oracle DATE object dbtz Calendar object containing Database Timezone
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, String str, Calendar dbtz) throws SQLException
      Deprecated.
      Create a TIMESTAMPLTZ object given a Java String object.
      Parameters:
      conn - JDBC connection str Java String object dbtz Calendar object containing Database Timezone
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, Calendar sess, Time time) throws SQLException
      Create an Oracle TIMESTAMPLTZ object represented by the given Java Time
      Parameters:
      conn - JDBC connection sess Calendar object containing Session Timezone time Java Time object
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, Calendar sess, Date date) throws SQLException
      Create an Oracle TIMESTAMPLTZ object represented by the Java Date
      Parameters:
      conn - JDBC connection sess Calendar object containing Session Timezone date Java Date object
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, Calendar sess, Timestamp timestamp) throws SQLException
      Create an Oracle TIMESTAMPLTZ object represented by the Java Timestamp
      Parameters:
      conn - Connection sess Calendar object containing Session Timezone timestamp Java Timestamp object
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, Calendar sess, DATE date) throws SQLException
      Create an Oracle TIMESTAMPLTZ object represented by the Oracle DATE
      Parameters:
      conn - JDBC connection sess Calendar object containing Session Timezone date Oracle DATE object
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, Calendar sess, String str) throws SQLException
      Deprecated.
      Create a TIMESTAMPLTZ object given a Java String object.
      Parameters:
      conn - JDBC connection sess Calendar object containing Session Timezone str Java String object
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, Time time) throws SQLException
      Create an Oracle TIMESTAMPLTZ object represented by the given Java Time
      Parameters:
      conn - JDBC connection time Java Time object
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, Date date) throws SQLException
      Create an Oracle TIMESTAMPLTZ object represented by the Java Date
      Parameters:
      conn - JDBC connection date Java Date object
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, Timestamp timestamp) throws SQLException
      Create an Oracle TIMESTAMPLTZ object represented by the Java Timestamp
      Parameters:
      conn - Connection timestamp Java Timestamp object
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, DATE date) throws SQLException
      Create an Oracle TIMESTAMPLTZ object represented by the Oracle DATE
      Parameters:
      conn - JDBC connection date Oracle DATE object
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, String str) throws SQLException
      Deprecated.
      Create a TIMESTAMPLTZ object given a Java String object.
      Parameters:
      conn - JDBC connection str Java String object
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, OffsetDateTime odt) throws SQLException
      Create an Oracle TIMESTAMPLTZ object represented by the OffsetDateTime
      Parameters:
      conn - JDBC connection odt OffsetDateTime object
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, OffsetTime ot) throws SQLException
      Create an Oracle TIMESTAMPLTZ object represented by the OffsetTime
      Parameters:
      conn - JDBC connection ot OffsetTime object
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, ZonedDateTime zdt) throws SQLException
      Create an Oracle TIMESTAMPLTZ object represented by the ZonedDateTime
      Parameters:
      conn - JDBC connection zdt ZonedDateTime object
      Throws:
      SQLException
    • TIMESTAMPLTZ

      public TIMESTAMPLTZ(Connection conn, LocalDateTime ldt) throws SQLException
      Create an Oracle TIMESTAMPLTZ object represented by the LocalDateTime
      Parameters:
      conn - JDBC connection ldt LocalDateTime object
      Throws:
      SQLException
  • Method Details

    • toDate

      public static Date toDate(Connection conn, byte[] timestampltz, Calendar dbtz) throws SQLException
      Deprecated.
      Convert a byte array representing a TIMESTAMPLTZ object to a Java Date Object
      Parameters:
      conn - JDBC connection timestampltz Oracle TIMESTAMPLTZ object dbtz Database timezone
      Returns:
      the Java date object represented by Oracle TIMESTAMPLTZ object
      Throws:
      SQLException
    • toTime

      public static Time toTime(Connection conn, byte[] timestampltz, Calendar dbtz) throws SQLException
      Deprecated.
      Convert a byte array representing a TIMESTAMPLTZ object to a Java Time Object
      Parameters:
      conn - JDBC connection timestampltz Oracle TIMESTAMPLTZ object dbtz Database timezone
      Returns:
      the java.sql.Time object represented by Oracle TIMESTAMPLTZ object. Only the hour, minute and seconds are contained in the java.sql.Time object that is returned and hence callers should not attempt to access the date component of the returned object.
      Throws:
      SQLException
    • toTimestamp

      public static Timestamp toTimestamp(Connection conn, byte[] timestampltz, Calendar dbtz) throws SQLException
      Deprecated.
      Convert a byte array representing a TIMESTAMPLTZ object to a Java Timestamp Object
      Parameters:
      conn - JDBC connection timestampltz Oracle TIMESTAMPLTZ object dbtz Database timezone
      Returns:
      the Java timestamp object represented by Oracle TIMESTAMPLTZ object
      Throws:
      SQLException
    • toDATE

      public static DATE toDATE(Connection conn, byte[] timestampltz, Calendar dbtz) throws SQLException
      Deprecated.
      Convert a byte array representing a TIMESTAMPLTZ object to a Oracle DATE Object
      Parameters:
      conn - JDBC connection timestampltz Oracle TIMESTAMPLTZ object dbtz Database timezone
      Returns:
      the oracle DATE object represented by Oracle TIMESTAMPLTZ object
      Throws:
      SQLException
    • timestampValue

      public Timestamp timestampValue(Connection conn, Calendar dbtz) throws SQLException
      Calls toTimestamp to convert internal Oracle TIMESTAMPLTZ to a Java Timestamp.
      Returns:
      a Java Timestamp value
      Throws:
      SQLException
    • timestampValue

      public Timestamp timestampValue(Connection conn) throws SQLException
      Throws:
      SQLException
    • toString

      public static String toString(Connection conn, byte[] timestampltz, Calendar dbtz) throws SQLException
      Deprecated.
      Converts a TIMESTAMPLTZ to a String
      Parameters:
      date - a byte array
      Returns:
      String representing the date
      Throws:
      SQLException
    • toBytes

      public byte[] toBytes()
      Convert Oracle TIMESTAMPLTZ object into a byte array
      Returns:
      the byte array stored in the TIMESTAMPLTZ object
    • toBytes

      public static byte[] toBytes(Connection conn, Time time, Calendar dbtz) throws SQLException
      Deprecated.
      Convert Java Time to Oracle TIMESTAMPLTZ.
      Parameters:
      conn - JDBC connection time java.sql.Time object to be converted. dbtz Database timezone
      Returns:
      the byte array representing the java Time.
      Throws:
      SQLException
    • toBytes

      public static byte[] toBytes(Connection conn, Date date, Calendar dbtz) throws SQLException
      Deprecated.
      Convert Java Date to Oracle TIMESTAMPLTZ.
      Parameters:
      conn - JDBC connection date java.sql.Date object to be converted. dbtz Database timezone
      Returns:
      the byte array representing the java Date.
      Throws:
      SQLException
    • toBytes

      public static byte[] toBytes(Connection conn, Timestamp timestamp, Calendar dbtz) throws SQLException
      Deprecated.
      Convert Java Timestamp to Oracle TIMESTAMPLTZ
      Parameters:
      conn - JDBC connection Timestamp java.sql.Timestamp object to be converted. dbtz database timezone
      Returns:
      the byte array representing the input date.
      Throws:
      SQLException
    • toBytes

      public static byte[] toBytes(Connection conn, DATE date, Calendar dbtz) throws SQLException
      Deprecated.
      Convert Oracle DATE to Oracle TIMESTAMPLTZ
      Parameters:
      conn - JDBC connection date oracle.sql.DATE object to be converted. dbtz database timezone
      Returns:
      the byte array representing the Oracle DATE.
      Throws:
      SQLException
    • toBytes

      public static byte[] toBytes(Connection conn, String str, Calendar dbtz) throws SQLException
      Convert Java String to Oracle TIMESTAMPLTZ.
      Parameters:
      conn - JDBC Connection str java.lang.String object to be converted. dbtz database timezone
      Returns:
      the byte array representing the input string.
      Throws:
      SQLException
    • toDate

      public static Date toDate(Connection conn, byte[] timestampltz) throws SQLException
      Convert a byte array representing a TIMESTAMPLTZ object to a Java Date Object
      Parameters:
      conn - JDBC connection timestampltz Oracle TIMESTAMPLTZ object
      Returns:
      the Java date object represented by Oracle TIMESTAMPLTZ object
      Throws:
      SQLException
    • toLocalDateTime

      public LocalDateTime toLocalDateTime(Connection conn) throws SQLException
      Convert a byte array representing a TIMESTAMPLTZ object to a Java LocalDateTime Object
      Parameters:
      conn - JDBC connection
      Returns:
      the Java LocalDateTime object represented by the Oracle TIMESTAMPLTZ object
      Throws:
      SQLException
    • toLocalDateTime

      public static LocalDateTime toLocalDateTime(Connection conn, byte[] timestampltz) throws SQLException
      Convert a byte array representing a TIMESTAMPLTZ object to a Java LocalDateTime Object
      Parameters:
      conn - JDBC connection timestampltz Oracle TIMESTAMPLTZ object
      Returns:
      the Java LocalDateTime object represented by the Oracle TIMESTAMPLTZ object
      Throws:
      SQLException
    • of

      public static TIMESTAMPLTZ of(Connection conn, OffsetDateTime odt) throws SQLException
      Creates TIMESTAMPLTZ from the OffsetDateTime.
      Parameters:
      odt - OffsetDateTime object
      Returns:
      TIMESTAMPLTZ object
      Throws:
      SQLException
    • of

      public static TIMESTAMPLTZ of(Connection conn, OffsetTime ot) throws SQLException
      Creates TIMESTAMPLTZ from the OffsetTime.
      Parameters:
      ot - OffsetTime object
      Returns:
      TIMESTAMPLTZ object
      Throws:
      SQLException
    • of

      public static TIMESTAMPLTZ of(Connection conn, ZonedDateTime zdt) throws SQLException
      Creates TIMESTAMPLTZ from the ZonedDateTime.
      Parameters:
      zdt - ZonedDateTime object
      Returns:
      TIMESTAMPLTZ object
      Throws:
      SQLException
    • of

      public static TIMESTAMPLTZ of(Connection conn, LocalDateTime ldt) throws SQLException
      Creates TIMESTAMPLTZ from the LocalDateTime.
      Parameters:
      ldt - LocalDateTime object
      Returns:
      TIMESTAMPLTZ object
      Throws:
      SQLException
    • toOffsetDateTime

      public static OffsetDateTime toOffsetDateTime(Connection conn, byte[] timestampltz) throws SQLException
      Convert a byte array representing a TIMESTAMPLTZ object to a Java OffsetDateTime Object
      Parameters:
      conn - JDBC connection timestampltz Oracle TIMESTAMPLTZ object
      Returns:
      the Java OffsetDateTime object represented by the Oracle TIMESTAMPLTZ object
      Throws:
      SQLException
    • toOffsetTime

      public static OffsetTime toOffsetTime(Connection conn, byte[] timestampltz) throws SQLException
      Convert a byte array representing a TIMESTAMPLTZ object to a Java OffsetTime Object
      Parameters:
      conn - JDBC connection timestampltz Oracle TIMESTAMPLTZ object
      Returns:
      the Java OffsetTime object represented by the Oracle TIMESTAMPLTZ object
      Throws:
      SQLException
    • toZonedDateTime

      public static ZonedDateTime toZonedDateTime(Connection conn, byte[] timestampltz) throws SQLException
      Convert a byte array representing a TIMESTAMPLTZ object to a Java ZonedDateTime Object
      Parameters:
      conn - JDBC connection timestampltz Oracle TIMESTAMPLTZ object
      Returns:
      the Java ZonedDateTime object represented by the Oracle TIMESTAMPLTZ object
      Throws:
      SQLException
    • toTime

      public static Time toTime(Connection conn, byte[] timestampltz) throws SQLException
      Convert a byte array representing a TIMESTAMPLTZ object to a Java Time Object
      Parameters:
      conn - JDBC connection timestampltz Oracle TIMESTAMPLTZ object
      Returns:
      the Java time object represented by Oracle TIMESTAMPLTZ object
      Throws:
      SQLException
    • toTimestamp

      public static Timestamp toTimestamp(Connection conn, byte[] timestampltz) throws SQLException
      Convert a byte array representing a TIMESTAMPLTZ object to a Java Timestamp Object
      Parameters:
      conn - JDBC connection timestamp Oracle TIMESTAMP object
      Returns:
      the Java timestamp object represented by Oracle TIMESTAMP object
      Throws:
      SQLException
    • toDATE

      public static DATE toDATE(Connection conn, byte[] timestampltz) throws SQLException
      Convert a byte array representing a TIMESTAMPLTZ object to a Oracle DATE Object
      Parameters:
      conn - JDBC connection timestampltz Oracle TIMESTAMPLTZ object
      Returns:
      the Oracle DATE object represented by Oracle TIMESTAMPLTZ object
      Throws:
      SQLException
    • toTIMESTAMP

      public static TIMESTAMP toTIMESTAMP(Connection conn, byte[] timestampltz) throws SQLException
      Convert a byte array representing a TIMESTAMPLTZ object to a Oracle TIMESTAMP Object
      Parameters:
      conn - JDBC connection timestamp Oracle TIMESTAMPLTZ object
      Returns:
      the oracle TIMESTAMP object represented by Oracle TIMESTAMPLTZ object
      Throws:
      SQLException
    • toTIMESTAMPTZ

      public static TIMESTAMPTZ toTIMESTAMPTZ(Connection conn, byte[] timestampltz) throws SQLException
      Convert a byte array representing a TIMESTAMPLTZ object to a Oracle TIMESTAMPTZ Object
      Parameters:
      conn - JDBC connection timestamp Oracle TIMESTAMPLTZ object
      Returns:
      the oracle TIMESTAMPTZ object represented by Oracle TIMESTAMPLTZ object
      Throws:
      SQLException
    • toString

      public static String toString(Connection conn, byte[] timestampltz) throws SQLException
      Converts a TIMESTAMPLTZ to a string
      Parameters:
      date - a byte array
      Returns:
      String representing the date
      Throws:
      SQLException
    • toBytes

      public static byte[] toBytes(Connection conn, Calendar cal, Time time) throws SQLException
      Convert Java Time to Oracle TIMESTAMPLTZ.
      Parameters:
      conn - JDBC connection cal Session timezone time java.sql.Time object to be converted.
      Returns:
      the byte array representing the java Time.
      Throws:
      SQLException
    • toBytes

      public static byte[] toBytes(Connection conn, Calendar cal, Date date) throws SQLException
      Convert Java Date to Oracle TIMESTAMPLTZ.
      Parameters:
      conn - JDBC connection cal Session timezone date java.sql.Date object to be converted.
      Returns:
      the byte array representing the java Date.
      Throws:
      SQLException
    • toBytes

      public static byte[] toBytes(Connection conn, Calendar cal, Timestamp timestamp) throws SQLException
      Convert Java Timestamp to Oracle TIMESTAMPLTZ
      Parameters:
      conn - JDBC connection cal Session timezone Timestamp java.sql.Timestamp object to be converted.
      Returns:
      the byte array representing the input date.
      Throws:
      SQLException
    • toBytes

      public static byte[] toBytes(Connection conn, Calendar cal, DATE date) throws SQLException
      Convert Oracle DATE to Oracle TIMESTAMPLTZ
      Parameters:
      conn - JDBC connection cal Session timezone date oracle.sql.DATE object to be converted.
      Returns:
      the byte array representing the Oracle DATE.
      Throws:
      SQLException
    • toBytes

      public static byte[] toBytes(Connection conn, Calendar sess, String str) throws SQLException
      Convert Java String to Oracle TIMESTAMPLTZ.
      Parameters:
      conn - JDBC Connection sess Calendar object containing Session Timezone str java.lang.String object to be converted.
      Returns:
      the byte array representing the input string.
      Throws:
      SQLException
    • toBytes

      public static byte[] toBytes(Connection conn, OffsetTime ot) throws SQLException
      Convert Java OffsetTime to Oracle TIMESTAMPLTZ.
      Parameters:
      conn - JDBC Connection odt OffsetTime object
      Returns:
      the byte array representing the input string.
      Throws:
      SQLException
    • toBytes

      public static byte[] toBytes(Connection conn, ZonedDateTime zdt) throws SQLException
      Convert Java ZonedDateTime to Oracle TIMESTAMPLTZ.
      Parameters:
      conn - JDBC Connection zdt ZonedDateTime object
      Returns:
      the byte array representing the input string.
      Throws:
      SQLException
    • toBytes

      public static byte[] toBytes(Connection conn, OffsetDateTime odt) throws SQLException
      Convert Java OffsetDateTime to Oracle TIMESTAMPLTZ.
      Parameters:
      conn - JDBC Connection odt OffsetDateTime object
      Returns:
      the byte array representing the input string.
      Throws:
      SQLException
    • toBytes

      public static byte[] toBytes(Connection conn, LocalDateTime ldt) throws SQLException
      Convert Java LocalDateTime to Oracle TIMESTAMPLTZ.
      Parameters:
      conn - JDBC Connection ldt LocalDateTime object
      Returns:
      the byte array representing the input string.
      Throws:
      SQLException
    • stringValue

      public String stringValue(Connection conn) throws SQLException
      Calls toString(Connection, byte[]) to convert internal Oracle TIMESTAMPLTZ to a Java String.
      Overrides:
      stringValue in class Datum
      Parameters:
      conn - oracle.JDBC.OracleConnection object
      Returns:
      a Java String value
      Throws:
      SQLException
    • stringValue

      public String stringValue(Connection conn, Calendar cal) throws SQLException
      Calls toString(Connection, byte[], Calendar) to convert internal Oracle TIMESTAMPLTZ to a Java String.
      Parameters:
      conn - oracle.JDBC.OracleConnection object cal java.util.Calendar object
      Returns:
      a Java String value
      Throws:
      SQLException
    • dateValue

      public Date dateValue(Connection conn, Calendar cal) throws SQLException
      Calls toDate(Connection, byte[], Calendar) to convert internal Oracle TIMESTAMPLTZ to a Java Date.
      Parameters:
      conn - JDBC Connection object cal java.util.Calendar object
      Returns:
      a Java Date
      Throws:
      SQLException
    • dateValue

      public Date dateValue(Connection conn) throws SQLException
      Calls toDate(Connection, byte[]) to convert internal Oracle TIMESTAMPLTZ to a Java Date.
      Parameters:
      conn - JDBC Connection object
      Returns:
      a Java Date
      Throws:
      SQLException
    • localDateTimeValue

      public LocalDateTime localDateTimeValue(Connection conn) throws SQLException
      Calls toLocalDateTime(Connection, byte[]) to convert internal Oracle TIMESTAMPLTZ to a Java LocalDateTime.
      Parameters:
      conn - JDBC Connection object
      Returns:
      a Java LocalDateTime
      Throws:
      SQLException
    • offsetDateTimeValue

      public OffsetDateTime offsetDateTimeValue(Connection conn) throws SQLException
      Calls toOffsetDateTime(Connection, byte[]) to convert internal Oracle TIMESTAMPLTZ to a Java OffsetDateTime.
      Parameters:
      conn - JDBC Connection object
      Returns:
      a Java OffsetDateTime
      Throws:
      SQLException
    • offsetTimeValue

      public OffsetTime offsetTimeValue(Connection conn) throws SQLException
      Calls toOffsetTime(Connection, byte[]) to convert internal Oracle TIMESTAMPLTZ to a Java OffsetTime.
      Parameters:
      conn - JDBC Connection object
      Returns:
      a Java OffsetTime
      Throws:
      SQLException
    • zonedDateTimeValue

      public ZonedDateTime zonedDateTimeValue(Connection conn) throws SQLException
      Calls toZonedDateTime(Connection, byte[]) to convert internal Oracle TIMESTAMPLTZ to a Java ZonedDateTime.
      Parameters:
      conn - JDBC Connection object
      Returns:
      a Java ZonedDateTime
      Throws:
      SQLException
    • timeValue

      public Time timeValue(Connection conn) throws SQLException
      Calls toTime to convert internal Oracle TIMESTAMPLTZ to a Java Time.
      Returns:
      a Java Time value
      Throws:
      SQLException
    • timeValue

      public Time timeValue(Connection conn, Calendar cal) throws SQLException
      Calls toTime to convert internal Oracle TIMESTAMPLTZ to a Java Time.
      Returns:
      a Java Time value
      Throws:
      SQLException
    • toJdbc

      public Object toJdbc() throws SQLException
      Returns the JDBC representation of the datum object
      Specified by:
      toJdbc in class Datum
      Returns:
      an object containing the JDBC value
      Throws:
      SQLException - if conversion to JDBC representation results in an error
    • makeJdbcArray

      public Object makeJdbcArray(int arraySize)
      Returns a JDBC array representation of the datum
      Specified by:
      makeJdbcArray in class Datum
      Parameters:
      arraySize - size of the array
      Returns:
      an object containing the JDBC array value
    • isConvertibleTo

      public boolean isConvertibleTo(Class<?> cls)
      Determines if the object can be converted to a particular class
      Specified by:
      isConvertibleTo in class Datum
      Parameters:
      cls - Class to convert to
      Returns:
      true, if conversion to cls is permitted false, if conversion to cls is not permitted
    • TimeZoneAdjust

      public static void TimeZoneAdjust(Connection conn, Calendar cal1, Calendar cal2) throws SQLException
      Throws:
      SQLException
    • TimeZoneAdjustUTC

      public static long TimeZoneAdjustUTC(Connection conn, Calendar cal1) throws SQLException
      Throws:
      SQLException