You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by dg...@apache.org on 2003/10/19 22:32:09 UTC
cvs commit: jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/driver SqlNullCheckedResultSet.java
dgraham 2003/10/19 13:32:09
Modified: dbutils/src/java/org/apache/commons/dbutils/driver
SqlNullCheckedResultSet.java
Log:
Cleaned up example in javadoc.
Revision Changes Path
1.4 +161 -255 jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/driver/SqlNullCheckedResultSet.java
Index: SqlNullCheckedResultSet.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/driver/SqlNullCheckedResultSet.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SqlNullCheckedResultSet.java 19 Oct 2003 20:20:06 -0000 1.3
+++ SqlNullCheckedResultSet.java 19 Oct 2003 20:32:09 -0000 1.4
@@ -82,28 +82,26 @@
* the column value is SQL null, an alternate value is returned. The alternate
* value defaults to the Java <code>null</code> value, which can be overridden
* for instances of the class.
+ *
* <p>
* Usage example:
* <blockquote>
* <pre>
* Connection conn = getConnection(); // somehow get a connection
- * Statement statement = conn.createStatement();
- * ResultSet rs = statement.execute("SELECT col1, col2, FROM t1");
- * if(rs != null) {
- * // Wrap the result set for SQL NULL checking
- * SqlNullCheckedResultSet rs = new SqlNullCheckedResultSet(rs);
- * rs.setNullString("---N/A---"); // Set null string
- * rs.setNullInt(-999); // Set null integer
- * while(rs.next) {
- * // If col1 is SQL NULL, value returned will be "---N/A---"
- * String col1 = rs.getString("col1");
- * // IF col2 is SQL NULL, value returned will be -999
- * int col2 = rs.getInt("col2");
- * ...
- * }
- * rs.close();
- * ...
+ * Statement stmt = conn.createStatement();
+ * ResultSet rs1 = stmt.executeQuery("SELECT col1, col2, FROM table1");
+ *
+ * // Wrap the result set for SQL NULL checking
+ * SqlNullCheckedResultSet rs = new SqlNullCheckedResultSet(rs1);
+ * rs.setNullString("---N/A---"); // Set null string
+ * rs.setNullInt(-999); // Set null integer
+ * while(rs.next) {
+ * // If col1 is SQL NULL, value returned will be "---N/A---"
+ * String col1 = rs.getString("col1");
+ * // If col2 is SQL NULL, value returned will be -999
+ * int col2 = rs.getInt("col2");
* }
+ * rs.close();
* </pre>
* </blockquote>
* </p>
@@ -134,7 +132,7 @@
private Time nullTime = null;
private Timestamp nullTimestamp = null;
private InputStream nullUnicodeStream = null;
-
+
/**
* Constructs a new instance of
* <code>SqlNullCheckedResultSet</code>
@@ -144,7 +142,7 @@
super(rs);
this.rs = rs;
}
-
+
/**
* Constructs a new instance of
* <code>SqlNullCheckedResultSet</code>
@@ -154,12 +152,11 @@
super(rs, st);
this.rs = rs;
}
-
+
/**
* @see ResultSet#getAsciiStream(int param)
*/
- public InputStream getAsciiStream(int param) throws SQLException
- {
+ public InputStream getAsciiStream(int param) throws SQLException {
InputStream stream = rs.getAsciiStream(param);
return rs.wasNull() ? getNullAsciiStream() : stream;
}
@@ -167,8 +164,7 @@
/**
* @see ResultSet#getAsciiStream(String str)
*/
- public InputStream getAsciiStream(String str) throws SQLException
- {
+ public InputStream getAsciiStream(String str) throws SQLException {
InputStream stream = rs.getAsciiStream(str);
return rs.wasNull() ? getNullAsciiStream() : stream;
}
@@ -176,8 +172,7 @@
/**
* @see ResultSet#getBigDecimal(String str)
*/
- public BigDecimal getBigDecimal(String str) throws SQLException
- {
+ public BigDecimal getBigDecimal(String str) throws SQLException {
BigDecimal bg = rs.getBigDecimal(str);
return rs.wasNull() ? getNullBigDecimal() : bg;
}
@@ -185,8 +180,7 @@
/**
* @see ResultSet#getBigDecimal(int param)
*/
- public BigDecimal getBigDecimal(int param) throws SQLException
- {
+ public BigDecimal getBigDecimal(int param) throws SQLException {
BigDecimal bg = rs.getBigDecimal(param);
return rs.wasNull() ? getNullBigDecimal() : bg;
}
@@ -195,8 +189,7 @@
* @see ResultSet#getBigDecimal(int param, int param1)
* @deprecated
*/
- public BigDecimal getBigDecimal(int param, int param1) throws SQLException
- {
+ public BigDecimal getBigDecimal(int param, int param1) throws SQLException {
BigDecimal bg = rs.getBigDecimal(param, param1);
return rs.wasNull() ? getNullBigDecimal() : bg;
}
@@ -205,8 +198,7 @@
* @see ResultSet#getBigDecimal(String str, int param)
* @deprecated
*/
- public BigDecimal getBigDecimal(String str, int param) throws SQLException
- {
+ public BigDecimal getBigDecimal(String str, int param) throws SQLException {
BigDecimal bg = rs.getBigDecimal(str, param);
return rs.wasNull() ? getNullBigDecimal() : bg;
}
@@ -214,8 +206,7 @@
/**
* @see ResultSet#getBinaryStream(int param)
*/
- public InputStream getBinaryStream(int param) throws SQLException
- {
+ public InputStream getBinaryStream(int param) throws SQLException {
InputStream stream = rs.getBinaryStream(param);
return rs.wasNull() ? getNullBinaryStream() : stream;
}
@@ -223,17 +214,15 @@
/**
* @see ResultSet#getBinaryStream(String str)
*/
- public InputStream getBinaryStream(String str) throws SQLException
- {
+ public InputStream getBinaryStream(String str) throws SQLException {
InputStream stream = rs.getBinaryStream(str);
return rs.wasNull() ? getNullBinaryStream() : stream;
}
-
+
/**
* @see ResultSet#getBlob(String str)
*/
- public Blob getBlob(String str) throws SQLException
- {
+ public Blob getBlob(String str) throws SQLException {
Blob blob = rs.getBlob(str);
return rs.wasNull() ? getNullBlob() : blob;
}
@@ -241,8 +230,7 @@
/**
* @see ResultSet#getBlob(int param)
*/
- public Blob getBlob(int param) throws SQLException
- {
+ public Blob getBlob(int param) throws SQLException {
Blob blob = rs.getBlob(param);
return rs.wasNull() ? getNullBlob() : blob;
}
@@ -250,8 +238,7 @@
/**
* @see ResultSet#getBoolean(String str)
*/
- public boolean getBoolean(String str) throws SQLException
- {
+ public boolean getBoolean(String str) throws SQLException {
boolean bool = rs.getBoolean(str);
return rs.wasNull() ? getNullBoolean() : bool;
}
@@ -259,17 +246,15 @@
/**
* @see ResultSet#getBoolean(int param)
*/
- public boolean getBoolean(int param) throws SQLException
- {
+ public boolean getBoolean(int param) throws SQLException {
boolean bool = rs.getBoolean(param);
return rs.wasNull() ? getNullBoolean() : bool;
}
-
+
/**
* @see ResultSet#getByte(int param)
*/
- public byte getByte(int param) throws SQLException
- {
+ public byte getByte(int param) throws SQLException {
byte aByte = rs.getByte(param);
return rs.wasNull() ? getNullByte() : aByte;
}
@@ -277,8 +262,7 @@
/**
* @see ResultSet#getByte(String str)
*/
- public byte getByte(String str) throws SQLException
- {
+ public byte getByte(String str) throws SQLException {
byte aByte = rs.getByte(str);
return rs.wasNull() ? getNullByte() : aByte;
}
@@ -286,8 +270,7 @@
/**
* @see ResultSet#getBytes(int param)
*/
- public byte[] getBytes(int param) throws SQLException
- {
+ public byte[] getBytes(int param) throws SQLException {
byte[] bytes = rs.getBytes(param);
return rs.wasNull() ? getNullBytes() : bytes;
}
@@ -295,8 +278,7 @@
/**
* @see ResultSet#getBytes(String str)
*/
- public byte[] getBytes(String str) throws SQLException
- {
+ public byte[] getBytes(String str) throws SQLException {
byte[] bytes = rs.getBytes(str);
return rs.wasNull() ? getNullBytes() : bytes;
}
@@ -304,8 +286,7 @@
/**
* @see ResultSet#getCharacterStream(int param)
*/
- public Reader getCharacterStream(int param) throws SQLException
- {
+ public Reader getCharacterStream(int param) throws SQLException {
Reader reader = rs.getCharacterStream(param);
return rs.wasNull() ? getNullCharacterStream() : reader;
}
@@ -313,8 +294,7 @@
/**
* @see ResultSet#getCharacterStream(String str)
*/
- public Reader getCharacterStream(String str) throws SQLException
- {
+ public Reader getCharacterStream(String str) throws SQLException {
Reader reader = rs.getCharacterStream(str);
return rs.wasNull() ? getNullCharacterStream() : reader;
}
@@ -322,8 +302,7 @@
/**
* @see ResultSet#getClob(String str)
*/
- public Clob getClob(String str) throws SQLException
- {
+ public Clob getClob(String str) throws SQLException {
Clob clob = rs.getClob(str);
return rs.wasNull() ? getNullClob() : clob;
}
@@ -331,8 +310,7 @@
/**
* @see ResultSet#getClob(int param)
*/
- public Clob getClob(int param) throws SQLException
- {
+ public Clob getClob(int param) throws SQLException {
Clob clob = rs.getClob(param);
return rs.wasNull() ? getNullClob() : clob;
}
@@ -340,8 +318,7 @@
/**
* @see ResultSet#getDate(int param)
*/
- public Date getDate(int param) throws SQLException
- {
+ public Date getDate(int param) throws SQLException {
Date date = rs.getDate(param);
return rs.wasNull() ? getNullDate() : date;
}
@@ -349,8 +326,7 @@
/**
* @see ResultSet#getDate(String str)
*/
- public Date getDate(String str) throws SQLException
- {
+ public Date getDate(String str) throws SQLException {
Date date = rs.getDate(str);
return rs.wasNull() ? getNullDate() : date;
}
@@ -358,8 +334,7 @@
/**
* @see ResultSet#getDate(String str, Calendar calendar)
*/
- public Date getDate(String str, Calendar calendar) throws SQLException
- {
+ public Date getDate(String str, Calendar calendar) throws SQLException {
Date date = rs.getDate(str, calendar);
return rs.wasNull() ? getNullDate() : date;
}
@@ -367,8 +342,7 @@
/**
* @see ResultSet#getDate(int param, Calendar calendar)
*/
- public Date getDate(int param, Calendar calendar) throws SQLException
- {
+ public Date getDate(int param, Calendar calendar) throws SQLException {
Date date = rs.getDate(param, calendar);
return rs.wasNull() ? getNullDate() : date;
}
@@ -376,8 +350,7 @@
/**
* @see ResultSet#getDouble(String str)
*/
- public double getDouble(String str) throws SQLException
- {
+ public double getDouble(String str) throws SQLException {
double aDouble = rs.getDouble(str);
return rs.wasNull() ? getNullDouble() : aDouble;
}
@@ -385,8 +358,7 @@
/**
* @see ResultSet#getDouble(int param)
*/
- public double getDouble(int param) throws SQLException
- {
+ public double getDouble(int param) throws SQLException {
double aDouble = rs.getDouble(param);
return rs.wasNull() ? getNullDouble() : aDouble;
}
@@ -394,8 +366,7 @@
/**
* @see ResultSet#getFloat(int param)
*/
- public float getFloat(int param) throws SQLException
- {
+ public float getFloat(int param) throws SQLException {
float aFloat = rs.getFloat(param);
return rs.wasNull() ? getNullFloat() : aFloat;
}
@@ -403,8 +374,7 @@
/**
* @see ResultSet#getFloat(String str)
*/
- public float getFloat(String str) throws SQLException
- {
+ public float getFloat(String str) throws SQLException {
float aFloat = rs.getFloat(str);
return rs.wasNull() ? getNullFloat() : aFloat;
}
@@ -412,17 +382,15 @@
/**
* @see ResultSet#getInt(int param)
*/
- public int getInt(int param) throws SQLException
- {
+ public int getInt(int param) throws SQLException {
int aInt = rs.getInt(param);
return rs.wasNull() ? getNullInt() : aInt;
}
-
+
/**
* @see ResultSet#getInt(String str)
*/
- public int getInt(String str) throws SQLException
- {
+ public int getInt(String str) throws SQLException {
int aInt = rs.getInt(str);
return rs.wasNull() ? getNullInt() : aInt;
}
@@ -430,8 +398,7 @@
/**
* @see ResultSet#getLong(int param)
*/
- public long getLong(int param) throws SQLException
- {
+ public long getLong(int param) throws SQLException {
long aLong = rs.getLong(param);
return rs.wasNull() ? getNullLong() : aLong;
}
@@ -439,8 +406,7 @@
/**
* @see ResultSet#getLong(String str)
*/
- public long getLong(String str) throws SQLException
- {
+ public long getLong(String str) throws SQLException {
long aLong = rs.getLong(str);
return rs.wasNull() ? getNullLong() : aLong;
}
@@ -448,8 +414,7 @@
/**
* @see ResultSet#getObject(String str)
*/
- public Object getObject(String str) throws SQLException
- {
+ public Object getObject(String str) throws SQLException {
Object aObject = rs.getObject(str);
return rs.wasNull() ? getNullObject() : aObject;
}
@@ -457,8 +422,7 @@
/**
* @see ResultSet#getObject(int param)
*/
- public Object getObject(int param) throws SQLException
- {
+ public Object getObject(int param) throws SQLException {
Object aObject = rs.getObject(param);
return rs.wasNull() ? getNullObject() : aObject;
}
@@ -466,8 +430,7 @@
/**
* @see ResultSet#getObject(String str, Map map)
*/
- public Object getObject(String str, Map map) throws SQLException
- {
+ public Object getObject(String str, Map map) throws SQLException {
Object aObject = rs.getObject(str, map);
return rs.wasNull() ? getNullObject() : aObject;
}
@@ -475,8 +438,7 @@
/**
* @see ResultSet#getObject(int param, Map map)
*/
- public Object getObject(int param, Map map) throws SQLException
- {
+ public Object getObject(int param, Map map) throws SQLException {
Object aObject = rs.getObject(param, map);
return rs.wasNull() ? getNullObject() : aObject;
}
@@ -484,8 +446,7 @@
/**
* @see ResultSet#getRef(String str)
*/
- public Ref getRef(String str) throws SQLException
- {
+ public Ref getRef(String str) throws SQLException {
Ref ref = rs.getRef(str);
return rs.wasNull() ? getNullRef() : ref;
}
@@ -493,8 +454,7 @@
/**
* @see ResultSet#getRef(int param)
*/
- public Ref getRef(int param) throws SQLException
- {
+ public Ref getRef(int param) throws SQLException {
Ref ref = rs.getRef(param);
return rs.wasNull() ? getNullRef() : ref;
}
@@ -502,8 +462,7 @@
/**
* @see ResultSet#getShort(int param)
*/
- public short getShort(int param) throws SQLException
- {
+ public short getShort(int param) throws SQLException {
short aShort = rs.getShort(param);
return rs.wasNull() ? getNullShort() : aShort;
}
@@ -511,8 +470,7 @@
/**
* @see ResultSet#getShort(String str)
*/
- public short getShort(String str) throws SQLException
- {
+ public short getShort(String str) throws SQLException {
short aShort = rs.getShort(str);
return rs.wasNull() ? getNullShort() : aShort;
}
@@ -520,8 +478,7 @@
/**
* @see ResultSet#getString(String str)
*/
- public String getString(String str) throws SQLException
- {
+ public String getString(String str) throws SQLException {
String string = rs.getString(str);
return rs.wasNull() ? getNullString() : string;
}
@@ -529,8 +486,7 @@
/**
* @see ResultSet#getString(int param)
*/
- public String getString(int param) throws SQLException
- {
+ public String getString(int param) throws SQLException {
String string = rs.getString(param);
return rs.wasNull() ? getNullString() : string;
}
@@ -538,8 +494,7 @@
/**
* @see ResultSet#getTime(int param)
*/
- public Time getTime(int param) throws SQLException
- {
+ public Time getTime(int param) throws SQLException {
Time time = rs.getTime(param);
return rs.wasNull() ? getNullTime() : time;
}
@@ -547,8 +502,7 @@
/**
* @see ResultSet#getTime(String str)
*/
- public Time getTime(String str) throws SQLException
- {
+ public Time getTime(String str) throws SQLException {
Time time = rs.getTime(str);
return rs.wasNull() ? getNullTime() : time;
}
@@ -556,8 +510,7 @@
/**
* @see ResultSet#getTime(String str, Calendar calendar)
*/
- public Time getTime(String str, Calendar calendar) throws SQLException
- {
+ public Time getTime(String str, Calendar calendar) throws SQLException {
Time time = rs.getTime(str, calendar);
return rs.wasNull() ? getNullTime() : time;
}
@@ -565,8 +518,7 @@
/**
* @see ResultSet#getTime(int param, Calendar calendar)
*/
- public Time getTime(int param, Calendar calendar) throws SQLException
- {
+ public Time getTime(int param, Calendar calendar) throws SQLException {
Time time = rs.getTime(param, calendar);
return rs.wasNull() ? getNullTime() : time;
}
@@ -574,8 +526,7 @@
/**
* @see ResultSet#getTimestamp(String str)
*/
- public Timestamp getTimestamp(String str) throws SQLException
- {
+ public Timestamp getTimestamp(String str) throws SQLException {
Timestamp timestamp = rs.getTimestamp(str);
return rs.wasNull() ? getNullTimestamp() : timestamp;
}
@@ -583,8 +534,7 @@
/**
* @see ResultSet#getTimestamp(int param)
*/
- public Timestamp getTimestamp(int param) throws SQLException
- {
+ public Timestamp getTimestamp(int param) throws SQLException {
Timestamp timestamp = rs.getTimestamp(param);
return rs.wasNull() ? getNullTimestamp() : timestamp;
}
@@ -592,8 +542,8 @@
/**
* @see ResultSet#getTimestamp(int param, Calendar calendar)
*/
- public Timestamp getTimestamp(int param, Calendar calendar) throws SQLException
- {
+ public Timestamp getTimestamp(int param, Calendar calendar)
+ throws SQLException {
Timestamp timestamp = rs.getTimestamp(param, calendar);
return rs.wasNull() ? getNullTimestamp() : timestamp;
}
@@ -601,8 +551,8 @@
/**
* @see ResultSet#getTimestamp(String str, Calendar calendar)
*/
- public Timestamp getTimestamp(String str, Calendar calendar) throws SQLException
- {
+ public Timestamp getTimestamp(String str, Calendar calendar)
+ throws SQLException {
Timestamp timestamp = rs.getTimestamp(str, calendar);
return rs.wasNull() ? getNullTimestamp() : timestamp;
}
@@ -611,8 +561,7 @@
* @see ResultSet#getUnicodeStream(int param)
* @deprecated
*/
- public InputStream getUnicodeStream(int param) throws SQLException
- {
+ public InputStream getUnicodeStream(int param) throws SQLException {
InputStream stream = rs.getUnicodeStream(param);
return rs.wasNull() ? getNullUnicodeStream() : stream;
}
@@ -621,8 +570,7 @@
* @see ResultSet#getUnicodeStream(String str)
* @deprecated
*/
- public InputStream getUnicodeStream(String str) throws SQLException
- {
+ public InputStream getUnicodeStream(String str) throws SQLException {
InputStream stream = rs.getUnicodeStream(str);
return rs.wasNull() ? getNullUnicodeStream() : stream;
}
@@ -633,459 +581,417 @@
*
* @return the value
*/
- public InputStream getNullAsciiStream()
- {
+ public InputStream getNullAsciiStream() {
return this.nullAsciiStream;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getBigDecimal</code> method.
*
* @return the value
*/
- public BigDecimal getNullBigDecimal()
- {
+ public BigDecimal getNullBigDecimal() {
return this.nullBigDecimal;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getBinaryStream</code> method.
*
* @return the value
*/
- public InputStream getNullBinaryStream()
- {
+ public InputStream getNullBinaryStream() {
return this.nullBinaryStream;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getBlob</code> method.
*
* @return the value
*/
- public Blob getNullBlob()
- {
+ public Blob getNullBlob() {
return this.nullBlob;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getBoolean</code> method.
*
* @return the value
*/
- public boolean getNullBoolean()
- {
+ public boolean getNullBoolean() {
return this.nullBoolean;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getByte</code> method.
*
* @return the value
*/
- public byte getNullByte()
- {
+ public byte getNullByte() {
return this.nullByte;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getBytes</code> method.
*
* @return the value
*/
- public byte[] getNullBytes()
- {
+ public byte[] getNullBytes() {
return this.nullBytes;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getCharacterStream</code> method.
*
* @return the value
*/
- public Reader getNullCharacterStream()
- {
+ public Reader getNullCharacterStream() {
return this.nullCharacterStream;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getClob</code> method.
*
* @return the value
*/
- public Clob getNullClob()
- {
+ public Clob getNullClob() {
return this.nullClob;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getDate</code> method.
*
* @return the value
*/
- public Date getNullDate()
- {
+ public Date getNullDate() {
return this.nullDate;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getDouble</code> method.
*
* @return the value
*/
- public double getNullDouble()
- {
+ public double getNullDouble() {
return this.nullDouble;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getFloat</code> method.
*
* @return the value
*/
- public float getNullFloat()
- {
+ public float getNullFloat() {
return this.nullFloat;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getInt</code> method.
*
* @return the value
*/
- public int getNullInt()
- {
+ public int getNullInt() {
return this.nullInt;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getLong</code> method.
*
* @return the value
*/
- public long getNullLong()
- {
+ public long getNullLong() {
return this.nullLong;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getObject</code> method.
*
* @return the value
*/
- public Object getNullObject()
- {
+ public Object getNullObject() {
return this.nullObject;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getRef</code> method.
*
* @return the value
*/
- public Ref getNullRef()
- {
+ public Ref getNullRef() {
return this.nullRef;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getShort</code> method.
*
* @return the value
*/
- public short getNullShort()
- {
+ public short getNullShort() {
return this.nullShort;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getString</code> method.
*
* @return the value
*/
- public String getNullString()
- {
+ public String getNullString() {
return this.nullString;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getTime</code> method.
*
* @return the value
*/
- public Time getNullTime()
- {
+ public Time getNullTime() {
return this.nullTime;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getTimestamp</code> method.
*
* @return the value
*/
- public Timestamp getNullTimestamp()
- {
+ public Timestamp getNullTimestamp() {
return this.nullTimestamp;
}
-
+
/**
* Returns the value when a SQL null is encountered as the result of
* invoking a <code>getUnicodeStream</code> method.
*
* @return the value
*/
- public InputStream getNullUnicodeStream()
- {
+ public InputStream getNullUnicodeStream() {
return this.nullUnicodeStream;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getAsciiStream</code> method.
*
* @param nullAsciiStream the value
*/
- public void setNullAsciiStream(InputStream nullAsciiStream)
- {
+ public void setNullAsciiStream(InputStream nullAsciiStream) {
this.nullAsciiStream = nullAsciiStream;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getBigDecimal</code> method.
*
* @param nullBigDecimal the value
*/
- public void setNullBigDecimal(BigDecimal nullBigDecimal)
- {
+ public void setNullBigDecimal(BigDecimal nullBigDecimal) {
this.nullBigDecimal = nullBigDecimal;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getBinaryStream</code> method.
*
* @param nullBinaryStream the value
*/
- public void setNullBinaryStream(InputStream nullBinaryStream)
- {
+ public void setNullBinaryStream(InputStream nullBinaryStream) {
this.nullBinaryStream = nullBinaryStream;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getBlob</code> method.
*
* @param nullBlob the value
*/
- public void setNullBlob(Blob nullBlob)
- {
+ public void setNullBlob(Blob nullBlob) {
this.nullBlob = nullBlob;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getBoolean</code> method.
*
* @param nullBoolean the value
*/
- public void setNullBoolean(boolean nullBoolean)
- {
+ public void setNullBoolean(boolean nullBoolean) {
this.nullBoolean = nullBoolean;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getByte</code> method.
*
* @param nullByte the value
*/
- public void setNullByte(byte nullByte)
- {
+ public void setNullByte(byte nullByte) {
this.nullByte = nullByte;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getBytes</code> method.
*
* @param nullBytes the value
*/
- public void setNullBytes(byte[] nullBytes)
- {
+ public void setNullBytes(byte[] nullBytes) {
this.nullBytes = nullBytes;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getCharacterStream</code> method.
*
* @param nullCharacterStream the value
*/
- public void setNullCharacterStream(Reader nullCharacterStream)
- {
+ public void setNullCharacterStream(Reader nullCharacterStream) {
this.nullCharacterStream = nullCharacterStream;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getClob</code> method.
*
* @param nullClob the value
*/
- public void setNullClob(Clob nullClob)
- {
+ public void setNullClob(Clob nullClob) {
this.nullClob = nullClob;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getDate</code> method.
*
* @param nullDate the value
*/
- public void setNullDate(Date nullDate)
- {
+ public void setNullDate(Date nullDate) {
this.nullDate = nullDate;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getDouble</code> method.
*
* @param nullDouble the value
*/
- public void setNullDouble(double nullDouble)
- {
+ public void setNullDouble(double nullDouble) {
this.nullDouble = nullDouble;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getFloat</code> method.
*
* @param nullFloat the value
*/
- public void setNullFloat(float nullFloat)
- {
+ public void setNullFloat(float nullFloat) {
this.nullFloat = nullFloat;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getInt</code> method.
*
* @param nullInt the value
*/
- public void setNullInt(int nullInt)
- {
+ public void setNullInt(int nullInt) {
this.nullInt = nullInt;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getLong</code> method.
*
* @param nullLong the value
*/
- public void setNullLong(long nullLong)
- {
+ public void setNullLong(long nullLong) {
this.nullLong = nullLong;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getObject</code> method.
*
* @param nullObject the value
*/
- public void setNullObject(Object nullObject)
- {
+ public void setNullObject(Object nullObject) {
this.nullObject = nullObject;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getRef</code> method.
*
* @param nullRef the value
*/
- public void setNullRef(Ref nullRef)
- {
+ public void setNullRef(Ref nullRef) {
this.nullRef = nullRef;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getShort</code> method.
*
* @param nullShort the value
*/
- public void setNullShort(short nullShort)
- {
+ public void setNullShort(short nullShort) {
this.nullShort = nullShort;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getString</code> method.
*
* @param nullString the value
*/
- public void setNullString(String nullString)
- {
+ public void setNullString(String nullString) {
this.nullString = nullString;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getTime</code> method.
*
* @param nullTime the value
*/
- public void setNullTime(Time nullTime)
- {
+ public void setNullTime(Time nullTime) {
this.nullTime = nullTime;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getTimestamp</code> method.
*
* @param nullTimestamp the value
*/
- public void setNullTimestamp(Timestamp nullTimestamp)
- {
+ public void setNullTimestamp(Timestamp nullTimestamp) {
this.nullTimestamp = nullTimestamp;
}
-
+
/**
* Sets the value to return when a SQL null is encountered as the result of
* invoking a <code>getUnicodeStream</code> method.
*
* @param nullUnicodeStream the value
*/
- public void setNullUnicodeStream(InputStream nullUnicodeStream)
- {
+ public void setNullUnicodeStream(InputStream nullUnicodeStream) {
this.nullUnicodeStream = nullUnicodeStream;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org