Skip to Main Content
Oracle in a Nutshell
book

Oracle in a Nutshell

by Rick Greenwald, David C. Kreines
December 2002
Intermediate to advanced content levelIntermediate to advanced
928 pages
85h 29m
English
O'Reilly Media, Inc.
Content preview from Oracle in a Nutshell

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.Date date) 
DATE(java.sql.Date date, java.util.Calendar cal) 
DATE(java.lang.Object obj) 
DATE(java.lang.Object obj, java.util.Calendar cal) 
DATE(java.lang.String str) 
DATE(java.lang.String str, java.util.Calendar cal) -- New with Oracle9i.
DATE(java.sql.Time time) 
DATE(java.sql.Time time, java.util.Calendar cal) 
DATE(java.sql.Timestamp timestamp) 
DATE(java.sql.Timestamp timestamp, java.util.Calendar cal)

Fields

BDA
Static int
BDAL
Static int
BDT
Static int
BHR
Static int
BHRL
Static int
BMN
Static int
BMNL
Static int
BMO
Static int
BMOL
Static int
BSC
Static int
BSCL
Static int
BYR
Static int
BYRL
Static int
HRZER0
Static int
MIZERO
Static int
MSD
Static int
SEZERO
Static int
YR0
Static int

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle Internals

Oracle Internals

Donald K. Burleson
Oracle PL/SQL

Oracle PL/SQL

Lewis Cunningham
Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Rick Greenwald, Robert Stackowiak, Jonathan Stern

Publisher Resources

ISBN: 0596003366Errata Page