Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Null integers in Oracle and Java

Re: Null integers in Oracle and Java

From: Timo Biesenbach <Timo.Biesenbach_at_igd.fhg.de>
Date: Wed, 23 Feb 2000 09:04:50 +0100
Message-ID: <38B394A2.905F9051@igd.fhg.de>


Hi,

you can test if the data is null with the wasNull() Method of the ResultSet Object:

while (rset.next()) {

	int i = rset.getInt(1);
	if rset.wasNull() {
		doTheErrorHandling
	}

}

-Timo
--
+---+---+-+-+-+-+

|   |   |-+-+-+-+ Fraunhofer-Institut fuer Graphische Datenverarbeitung

+---+---+-+-+-+-+ Fraunhofer-Institute for Computer Graphics
| | |-+-+-+-+ Abteilung / Department : Document Imaging
+---+---+-+-+-+-+
|      __   _   | Dipl.Ing. (BA) Timo Biesenbach
|  !  ! _  ! \  | Rundeturmstr. 6      phone  ++49 6151 155 578
|  !  !__! !_/  | 64283 Darmstadt      fax    ++49 6151 155 299 
+---------------+ Germany              email  timo.biesenbach_at_igd.fhg.de
Received on Wed Feb 23 2000 - 02:04:50 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US