DATE
Extends oracle.sql.Datum.
This class has many constructors, which can create dates from different types of information:
DATE( ) DATE(byte[]date
) DATE(java.sql.Datedate
) DATE(java.sql.Datedate
, java.util.Calendarcal
) DATE(java.lang.Objectobj
) DATE(java.lang.Objectobj
, java.util.Calendarcal
) DATE(java.lang.Stringstr
) DATE(java.lang.Stringstr
, java.util.Calendarcal
) -- New with Oracle9i. DATE(java.sql.Timetime
) DATE(java.sql.Timetime
, java.util.Calendarcal
) DATE(java.sql.Timestamptimestamp
) DATE(java.sql.Timestamptimestamp
, java.util.Calendarcal
)
Fields
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
|
Methods
- addJulianDays(int julianDay , int julianSec )
Returns DATE, which is julianDay and julianSec later.
- addMonths(int months )
Returns DATE, which is months later.
- checkValidity(byte[] date )
Returns int, which is either 0 if valid or a combination of the fields listed earlier to designate the invalid portions of date. Static method.
- compareTo(DATE date )
Returns -1 if DATE is less than date, 0 if DATE and date are equal, 1 if DATE is greater than date.
- dateValue( )
Returns java.sql.Date of internal Oracle DATE.
- dateValue(java.util.Calendar cal )
Returns java.sql.Date ...
Get Oracle in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.