|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1) E10663-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.rules.rl.extensions.Duration
oracle.rules.sdk2.extensions.OracleDuration
public final class OracleDuration
Method Summary | |
---|---|
static int |
compare(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2) Compares two dates and returns an int value of 0 if they are equal, less than 0 if cal1 represents a point in time before ts2 , greater than 0 if cal1 represents a point in time after ts2 . |
static int |
compare(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2) Compares two dates and returns an int value of 0 if they are equal, less than 0 if ts1 represents a point in time before cal2 , greater than 0 if ts1 represents a point in time after cal2 . |
static int |
compare(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2) Compares two dates and returns an int value of 0 if they are equal, less than 0 if ts1 represents a point in time before ts2 , greater than 0 if ts1 represents a point in time after ts2 . |
static int |
compare(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2) Compares two dates and returns an int value of 0 if they are equal, less than 0 if ts1 represents a point in time before cal2 , greater than 0 if ts1 represents a point in time after cal2 . |
static int |
compare(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2) Compares two dates and returns an int value of 0 if they are equal, less than 0 if cal1 represents a point in time before ts2 , greater than 0 if cal1 represents a point in time after ts2 . |
static int |
daysBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in days. |
static int |
daysBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2) Returns the difference between the two dates in days. |
static int |
daysBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in days. |
static int |
daysBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2) Returns the difference between the two dates in days. |
static int |
daysBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in days. |
static long |
hoursBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in hours. |
static long |
hoursBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2) Returns the difference between the two dates in hours. |
static long |
hoursBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in hours. |
static long |
hoursBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2) Returns the difference between the two dates in hours. |
static long |
hoursBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in hours. |
static long |
millisecondsBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in milliseconds. |
static long |
millisecondsBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2) Returns the difference between the two dates in milliseconds. |
static long |
millisecondsBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in milliseconds. |
static long |
millisecondsBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2) Returns the difference between the two dates in milliseconds. |
static long |
millisecondsBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in milliseconds. |
static long |
minutesBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in minutes. |
static long |
minutesBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2) Returns the difference between the two dates in minutes. |
static long |
minutesBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in minutes. |
static long |
minutesBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2) Returns the difference between the two dates in minutes. |
static long |
minutesBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in minutes. |
static int |
monthsBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in months. |
static int |
monthsBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2) Returns the difference between the two dates in months. |
static int |
monthsBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in months. |
static int |
monthsBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2) Returns the difference between the two dates in months. |
static int |
monthsBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in months. |
static long |
secondsBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in seconds. |
static long |
secondsBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2) Returns the difference between the two dates in seconds. |
static long |
secondsBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in seconds. |
static long |
secondsBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2) Returns the difference between the two dates in seconds. |
static long |
secondsBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in seconds. |
static int |
weeksBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in weeks. |
static int |
weeksBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2) Returns the difference between the two dates in weeks. |
static int |
weeksBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in weeks. |
static int |
weeksBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2) Returns the difference between the two dates in weeks. |
static int |
weeksBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in weeks. |
static int |
yearsBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in years. |
static int |
yearsBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2) Returns the difference between the two dates in years. |
static int |
yearsBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in years. |
static int |
yearsBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2) Returns the difference between the two dates in years. |
static int |
yearsBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2) Returns the difference between the two dates in years. |
Methods inherited from class oracle.rules.rl.extensions.Duration |
---|
compare, compare, compare, compare, daysBetween, daysBetween, daysBetween, daysBetween, hoursBetween, hoursBetween, hoursBetween, hoursBetween, millisecondsBetween, millisecondsBetween, millisecondsBetween, millisecondsBetween, minutesBetween, minutesBetween, minutesBetween, minutesBetween, monthsBetween, monthsBetween, monthsBetween, monthsBetween, secondsBetween, secondsBetween, secondsBetween, secondsBetween, weeksBetween, weeksBetween, weeksBetween, weeksBetween, yearsBetween, yearsBetween, yearsBetween, yearsBetween |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int yearsBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2)
ts1
and ts2
are converted to instances of GregorianCalendar
before the difference is calculated.ts1
- the starting Timestamp instancets2
- the ending Timestamp instancets1
and ts2
.java.lang.NullPointerException
- if either ts1
or ts2
is null.public static int yearsBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2)
ts1
is converted to an instance of GregorianCalendar
before the difference is calculated.ts1
- the starting Timestamp instancecal2
- the ending Calendar instancets1
and cal2
.java.lang.NullPointerException
- if either ts1
or cal2
is null.public static int yearsBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2)
date2
is converted to an instance of GregorianCalendar
before the difference is calculated.cal1
- the starting Calendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static int yearsBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2)
date1
and date2
are converted to GregorianCalendar
before the difference is calculated.ts1
- the starting Timestamp instancecal2
- the ending XMLGregorianCalendar instancejava.lang.NullPointerException
- if either ts1
or cal2
is null.public static int yearsBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2)
date1
and date2
are converted to GregorianCalendar
before the difference is calculated.cal1
- the starting XMLGregorianCalendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static int monthsBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2)
ts1
- the starting Timestamp instancets2
- the ending Timestamp instancets1
and ts2
.java.lang.NullPointerException
- if either ts1
or ts2
is null.public static int monthsBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
- the starting Calendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static int monthsBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2)
ts1
- the starting Timestamp instancecal2
- the ending Calendar instancets1
and cal2
.java.lang.NullPointerException
- if either ts1
or cal2
is null.public static int monthsBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
- the starting XMLGregorianCalendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static int monthsBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2)
ts1
- the starting Timestamp instancecal2
- the ending XMLGregorianCalendar instancets1
and cal2
.java.lang.NullPointerException
- if either ts1
or cal2
is null.public static int weeksBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2)
ts1
and ts2
are converted to GregorianCalendar
before the difference is calculated.ts1
- the starting Timestamp instancets2
- the ending Timestamp instancets1
and ts2
.java.lang.NullPointerException
- if either ts1
or ts2
is null.public static int weeksBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2)
ts1
and cal2
are converted to GregorianCalendar
before the difference is calculated.ts1
- the starting Timestamp instancecal2
- the ending Calendar instancets1
and cal2
.java.lang.NullPointerException
- if either ts1
or cal2
is null.public static int weeksBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
and ts2
are converted to GregorianCalendar
before the difference is calculated.cal1
- the starting Calendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static int weeksBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2)
ts1
and cal2
are converted to GregorianCalendar
before the difference is calculated.ts1
- the starting Timestamp instancecal2
- the ending XMLGregorianCalendar instancets1
and cal2
.java.lang.NullPointerException
- if either ts1
or cal2
is null.public static int weeksBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
and ts2
are converted to GregorianCalendar
before the difference is calculated.cal1
- the starting XMLGregorianCalendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static int daysBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2)
ts1
and ts2
are converted to GregorianCalendar
before the difference is calculated.ts1
- the starting Timestamp instancets2
- the ending Timestamp instancets1
and ts2
.java.lang.NullPointerException
- if either ts1
or ts2
is null.public static int daysBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
and ts2
are converted to GregorianCalendar
before the difference is calculated.cal1
- the starting Calendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static int daysBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2)
ts1
and cal2
are converted to GregorianCalendar
before the difference is calculated.ts1
- the starting Timestamp instancecal2
- the ending Calendar instancets1
and cal2
.java.lang.NullPointerException
- if either ts1
or cal2
is null.public static int daysBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
and ts2
are converted to GregorianCalendar
before the difference is calculated.cal1
- the starting XMLGregorianCalendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static int daysBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2)
ts1
and cal2
are converted to GregorianCalendar
before the difference is calculated.ts1
- the starting Timestamp instancecal2
- the ending Calendar instancets1
and cal2
.java.lang.NullPointerException
- if either ts1
or cal2
is null.public static long hoursBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2)
ts1
- the starting Timestamp instancets2
- the ending Timestamp instancets1
and ts2
.java.lang.NullPointerException
- if either ts1
or ts2
is null.public static long hoursBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2)
ts1
- the starting Timestamp instancecal2
- the ending Calendar instancets1
and cal2
.java.lang.NullPointerException
- if either ts1
or cal2
is null.public static long hoursBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
- the starting Calendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static long hoursBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2)
ts1
- the starting Timestamp instancecal2
- the ending Calendar instancets1
and cal2
.java.lang.NullPointerException
- if either ts1
or cal2
is null.public static long hoursBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
- the starting XMLGregorianCalendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static long minutesBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2)
ts1
- the starting Timestamp instancets2
- the ending Timestamp instancets1
and ts2
.java.lang.NullPointerException
- if either ts1
or ts2
is null.public static long minutesBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2)
ts1
- the starting Timestamp instancecal2
- the ending Calendar instancets1
and cal2
.java.lang.NullPointerException
- if either ts1
or cal2
is null.public static long minutesBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
- the starting Calendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static long minutesBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2)
ts1
- the starting Timestamp instancecal2
- the ending Calendar instancets1
and cal2
.java.lang.NullPointerException
- if either ts1
or cal2
is null.public static long minutesBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
- the starting XMLGregorianCalendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static long secondsBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2)
ts1
- the starting Timestamp instancets2
- the ending Timestamp instancets1
and ts2
.java.lang.NullPointerException
- if either ts1
or ts2
is null.public static long secondsBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2)
ts1
- the starting Timestamp instancecal2
- the ending Calendar instancets1
and cal2
.java.lang.NullPointerException
- if either ts1
or cal2
is null.public static long secondsBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
- the starting Calendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static long secondsBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2)
ts1
- the starting Timestamp instancecal2
- the ending Calendar instancets1
and cal2
.java.lang.NullPointerException
- if either ts1
or cal2
is null.public static long secondsBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
- the starting XMLGregorianCalendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static long millisecondsBetween(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2)
ts1
- the starting Timestamp instancets2
- the ending Timestamp instancets1
and ts2
.java.lang.NullPointerException
- if either ts1
or ts2
is null.public static long millisecondsBetween(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
- the starting Calendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static long millisecondsBetween(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2)
ts1
- the starting Timestamp instancecal2
- the ending Calendar instancets1
and cal2
.java.lang.NullPointerException
- if either ts1
or cal2
is null.public static long millisecondsBetween(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
- the starting XMLGregorianCalendar instancets2
- the ending Timestamp instancecal1
the ts2
.java.lang.NullPointerException
- if either cal1 or ts2
is null.public static long millisecondsBetween(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2)
ts1
- the starting Timestamp instancecal2
- the ending XMLGregorianCalendar instancets1
and cal2
.java.lang.NullPointerException
- if either ts1
or cal2
is null.public static int compare(oracle.jbo.domain.Timestamp ts1, oracle.jbo.domain.Timestamp ts2)
ts1
represents a point in time before ts2
,ts1
represents a point in time after ts2
.ts1
- the left-hand side Timestamp instancets2
- the right-hand side Timestamp instancepublic static int compare(oracle.jbo.domain.Timestamp ts1, java.util.Calendar cal2)
ts1
represents a point in time before cal2
,ts1
represents a point in time after cal2
.ts1
- the left-hand side Timestamp instancecal2
- the right-hand side Calendar instancepublic static int compare(java.util.Calendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
represents a point in time before ts2
,cal1
represents a point in time after ts2
.cal1
- the left-hand side Calendar instancets2
- the right-hand side Timestamp instancepublic static int compare(oracle.jbo.domain.Timestamp ts1, javax.xml.datatype.XMLGregorianCalendar cal2)
ts1
represents a point in time before cal2
,ts1
represents a point in time after cal2
.ts1
- the left-hand side Timestamp instancecal2
- the right-hand side XMLGregorianCalendar instancepublic static int compare(javax.xml.datatype.XMLGregorianCalendar cal1, oracle.jbo.domain.Timestamp ts2)
cal1
represents a point in time before ts2
,cal1
represents a point in time after ts2
.cal1
- the left-hand side XMLGregorianCalendar instancets2
- the right-hand side Timestamp instance
|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1) E10663-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |