Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.7)

E10663-11

oracle.rules.rl.extensions
Class SQLDate

java.lang.Object
  extended by oracle.rules.rl.extensions.SQLDate

public class SQLDate
extends java.lang.Object


Constructor Summary
SQLDate()
           
 
Method Summary
static java.sql.Date dateFromDateString(java.lang.String dateString)
          Creates a Date instance for the specified ISO 8601 date.
static java.sql.Date dateFromDateTimeString(java.lang.String datetimeString)
          Creates a Date instance for the specified ISO 8601 date and time.
static java.sql.Date dateFromTimeString(java.lang.String timeString)
          Creates a Date instance for the specified ISO 8601 time.
static java.sql.Timestamp timestampFromDateTimeString(java.lang.String datetimeString)
          Creates a Timestamp instance for the specified extended ISO 8601 date and time.
static java.lang.String toDateString(java.sql.Date date)
          Return the ISO 8601 representation of the specified Date.
static java.lang.String toDateTimeString(java.sql.Date date)
          Return the ISO 8601 representation of the specified Date.
static java.lang.String toDateTimeString(java.sql.Timestamp ts)
          Return the ISO 8601 representation of the specified date and time.
static java.lang.String toTimeString(java.sql.Date date)
          Return the ISO 8601 representation of the specified Date.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLDate

public SQLDate()
Method Detail

dateFromDateString

public static java.sql.Date dateFromDateString(java.lang.String dateString)
                                        throws java.lang.IllegalArgumentException
Creates a Date instance for the specified ISO 8601 date.

Parameters:
dateString - the ISO 8601 representation of a date.
Returns:
a Date instance for the specified date.
Throws:
java.lang.IllegalArgumentException - if an error occurs parsing the date string.

dateFromTimeString

public static java.sql.Date dateFromTimeString(java.lang.String timeString)
                                        throws java.lang.IllegalArgumentException
Creates a Date instance for the specified ISO 8601 time.

Parameters:
timeString - the ISO 8601 representation of a point in time.
Returns:
a Date instance for the specified date and time.
Throws:
java.lang.IllegalArgumentException - if an error occurs parsing the date string.

dateFromDateTimeString

public static java.sql.Date dateFromDateTimeString(java.lang.String datetimeString)
                                            throws java.lang.IllegalArgumentException
Creates a Date instance for the specified ISO 8601 date and time.

Parameters:
datetimeString - the ISO 8601 representation of a date and time.
Returns:
a Date instance for the specified date and time.
Throws:
java.lang.IllegalArgumentException - if an error occurs parsing the date string.

toTimeString

public static java.lang.String toTimeString(java.sql.Date date)
Return the ISO 8601 representation of the specified Date.

Parameters:
date - the date/time to format.
Returns:
the ISO 8601 representation

toDateString

public static java.lang.String toDateString(java.sql.Date date)
Return the ISO 8601 representation of the specified Date.

Parameters:
date - the date/time to format.
Returns:
the ISO 8601 representation

toDateTimeString

public static java.lang.String toDateTimeString(java.sql.Date date)
Return the ISO 8601 representation of the specified Date.

Parameters:
date - the date/time to format.
Returns:
the ISO 8601 representation

timestampFromDateTimeString

public static java.sql.Timestamp timestampFromDateTimeString(java.lang.String datetimeString)
                                                      throws java.lang.IllegalArgumentException
Creates a Timestamp instance for the specified extended ISO 8601 date and time. Extended to allow YYYY-MM-DDTHH:MM:SS@TimeZoneId

Parameters:
datetimeString - the extended ISO 8601 representation of a date and time.
Returns:
a Timestamp instance for the specified date and time.
Throws:
java.lang.IllegalArgumentException - if an error occurs parsing the date string.

toDateTimeString

public static java.lang.String toDateTimeString(java.sql.Timestamp ts)
Return the ISO 8601 representation of the specified date and time.

Parameters:
ts - the timestamp to format.
Returns:
the ISO 8601 representation

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.7)

E10663-11

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.