Author: arminw
Date: Fri Jun 16 14:36:46 2006
New Revision: 414931
URL: http://svn.apache.org/viewvc?rev=414931&view=rev
Log:
use final method arguments, add java-doc
Modified:
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/JdbcTypes.java
Modified:
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/JdbcTypes.java
URL:
http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/JdbcTypes.java?rev=414931&r1=414930&r2=414931&view=diff
==============================================================================
---
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/JdbcTypes.java
(original)
+++
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/JdbcTypes.java
Fri Jun 16 14:36:46 2006
@@ -69,11 +69,36 @@
return JdbcTypesHelper.newFieldType(this);
}
- abstract Object readValueFromResultSet(ResultSet rs, String
columnName) throws SQLException;
+ /**
+ * Abstract method to read in query results.
+ *
+ * @param rs The current active result set.
+ * @param columnName The column name of row to read.
+ * @return The value of the row (could be <em>null</em>).
+ * @throws SQLException
+ */
+ abstract Object readValueFromResultSet(final ResultSet rs, final
String columnName) throws SQLException;
+
+ /**
+ * Abstract method to read in query results.
+ *
+ * @param rs The current active result set.
+ * @param columnIndex The column index of row to read.
+ * @return The value of the row (could be <em>null</em>).
+ * @throws SQLException
+ */
+ abstract Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException;
- abstract Object readValueFromResultSet(ResultSet rs, int columnIndex)
throws SQLException;
+ /**
+ * Abstract method to read in query results.
+ *
+ * @param stmt The current active callable statement.
+ * @param columnIndex The column index of row to read.
+ * @return The value of the row (could be <em>null</em>).
+ * @throws SQLException
+ */
+ abstract Object readValueFromStatement(final CallableStatement stmt,
final int columnIndex) throws SQLException;
- abstract Object readValueFromStatement(CallableStatement stmt, int
columnIndex) throws SQLException;
/*
only supported by jdk >= 1.4x, maybe useful in further versions
*/
@@ -100,23 +125,23 @@
return fieldType;
}
- public Object getObjectFromColumn(CallableStatement stmt, int
columnId) throws SQLException
+ public Object getObjectFromColumn(final CallableStatement stmt, final
int columnId) throws SQLException
{
return getObjectFromColumn(null, stmt, null, columnId);
}
- public Object getObjectFromColumn(ResultSet rs, String columnName)
throws SQLException
+ public Object getObjectFromColumn(final ResultSet rs, final String
columnName) throws SQLException
{
return getObjectFromColumn(rs, null, columnName, MIN_INT);
}
- public Object getObjectFromColumn(ResultSet rs, int columnId) throws
SQLException
+ public Object getObjectFromColumn(final ResultSet rs, final int
columnId) throws SQLException
{
return getObjectFromColumn(rs, null, null, columnId);
}
public Object getObjectFromColumn(final ResultSet rs, final
CallableStatement stmt,
- final String columnName, int
columnIndex) throws SQLException
+ final String columnName, final int
columnIndex) throws SQLException
{
if(stmt != null)
{
@@ -174,17 +199,17 @@
// return stmt.getString(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getString(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return rs.getString(columnName);
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return rs.getString(columnIndex);
}
@@ -209,17 +234,17 @@
// return stmt.getString(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getString(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return rs.getString(columnName);
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return rs.getString(columnIndex);
}
@@ -244,17 +269,17 @@
// return stmt.getString(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getString(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return rs.getString(columnName);
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return rs.getString(columnIndex);
}
@@ -279,17 +304,17 @@
// return stmt.getBigDecimal(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getBigDecimal(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return rs.getBigDecimal(columnName);
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return rs.getBigDecimal(columnIndex);
}
@@ -314,17 +339,17 @@
// return stmt.getBigDecimal(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getBigDecimal(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return rs.getBigDecimal(columnName);
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return rs.getBigDecimal(columnIndex);
}
@@ -350,19 +375,19 @@
// return (stmt.wasNull() ? null : new Boolean(temp));
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
boolean temp = stmt.getBoolean(columnIndex);
return (stmt.wasNull() ? null :
BooleanUtils.toBooleanObject(temp));
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
boolean temp = rs.getBoolean(columnName);
return (rs.wasNull() ? null : BooleanUtils.toBooleanObject(temp));
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
boolean temp = rs.getBoolean(columnIndex);
return (rs.wasNull() ? null : BooleanUtils.toBooleanObject(temp));
@@ -391,19 +416,19 @@
// return (stmt.wasNull() ? null :
BooleanUtils.toBooleanObject(temp));
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
boolean temp = stmt.getBoolean(columnIndex);
return (stmt.wasNull() ? null :
BooleanUtils.toBooleanObject(temp));
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
boolean temp = rs.getBoolean(columnName);
return (rs.wasNull() ? null : BooleanUtils.toBooleanObject(temp));
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
boolean temp = rs.getBoolean(columnIndex);
return (rs.wasNull() ? null : BooleanUtils.toBooleanObject(temp));
@@ -431,19 +456,19 @@
// return (stmt.wasNull() ? null : new Byte(temp));
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
byte temp = stmt.getByte(columnIndex);
return (stmt.wasNull() ? null : new Byte(temp));
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
byte temp = rs.getByte(columnName);
return (rs.wasNull() ? null : new Byte(temp));
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
byte temp = rs.getByte(columnIndex);
return (rs.wasNull() ? null : new Byte(temp));
@@ -470,19 +495,19 @@
// return (stmt.wasNull() ? null : new Short(temp));
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
short temp = stmt.getShort(columnIndex);
return (stmt.wasNull() ? null : new Short(temp));
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
short temp = rs.getShort(columnName);
return (rs.wasNull() ? null : new Short(temp));
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
short temp = rs.getShort(columnIndex);
return (rs.wasNull() ? null : new Short(temp));
@@ -509,19 +534,19 @@
// return (stmt.wasNull() ? null : new Integer(temp));
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
int temp = stmt.getInt(columnIndex);
return (stmt.wasNull() ? null : new Integer(temp));
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
int temp = rs.getInt(columnName);
return (rs.wasNull() ? null : new Integer(temp));
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
int temp = rs.getInt(columnIndex);
return (rs.wasNull() ? null : new Integer(temp));
@@ -548,19 +573,19 @@
// return (stmt.wasNull() ? null : new Long(temp));
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
long temp = stmt.getLong(columnIndex);
return (stmt.wasNull() ? null : new Long(temp));
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
long temp = rs.getLong(columnName);
return (rs.wasNull() ? null : new Long(temp));
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
long temp = rs.getLong(columnIndex);
return (rs.wasNull() ? null : new Long(temp));
@@ -587,19 +612,19 @@
// return (stmt.wasNull() ? null : new Float(temp));
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
float temp = stmt.getFloat(columnIndex);
return (stmt.wasNull() ? null : new Float(temp));
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
float temp = rs.getFloat(columnName);
return (rs.wasNull() ? null : new Float(temp));
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
float temp = rs.getFloat(columnIndex);
return (rs.wasNull() ? null : new Float(temp));
@@ -626,19 +651,19 @@
// return (stmt.wasNull() ? null : new Double(temp));
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
double temp = stmt.getDouble(columnIndex);
return (stmt.wasNull() ? null : new Double(temp));
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
double temp = rs.getDouble(columnName);
return (rs.wasNull() ? null : new Double(temp));
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
double temp = rs.getDouble(columnIndex);
return (rs.wasNull() ? null : new Double(temp));
@@ -665,19 +690,19 @@
// return (stmt.wasNull() ? null : new Double(temp));
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
double temp = stmt.getDouble(columnIndex);
return (stmt.wasNull() ? null : new Double(temp));
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
double temp = rs.getDouble(columnName);
return (rs.wasNull() ? null : new Double(temp));
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
double temp = rs.getDouble(columnIndex);
return (rs.wasNull() ? null : new Double(temp));
@@ -703,17 +728,17 @@
// return stmt.getBytes(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getBytes(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return rs.getBytes(columnName);
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return rs.getBytes(columnIndex);
}
@@ -738,17 +763,17 @@
// return stmt.getBytes(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getBytes(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return rs.getBytes(columnName);
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return rs.getBytes(columnIndex);
}
@@ -821,17 +846,17 @@
// return stmt.getBytes(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getBytes(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return
JdbcTypes.T_LongVarBinary.retrieveStreamDataFromRs(rs.getBinaryStream(columnName));
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return
JdbcTypes.T_LongVarBinary.retrieveStreamDataFromRs(rs.getBinaryStream(columnIndex));
}
@@ -856,17 +881,17 @@
// return stmt.getDate(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getDate(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return rs.getDate(columnName);
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return rs.getDate(columnIndex);
}
@@ -891,17 +916,17 @@
// return stmt.getTime(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getTime(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return rs.getTime(columnName);
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return rs.getTime(columnIndex);
}
@@ -926,17 +951,17 @@
// return stmt.getTimestamp(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getTimestamp(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return rs.getTimestamp(columnName);
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return rs.getTimestamp(columnIndex);
}
@@ -962,19 +987,19 @@
// return (stmt.wasNull() ? null : aClob.getSubString(1L, (int)
aClob.length()));
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
Clob aClob = stmt.getClob(columnIndex);
return stmt.wasNull() ? null : aClob;
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
Clob aClob = rs.getClob(columnName);
return rs.wasNull() ? null : aClob;
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
Clob aClob = rs.getClob(columnIndex);
return rs.wasNull() ? null : aClob;
@@ -1040,19 +1065,19 @@
// return (stmt.wasNull() ? null : aClob.getSubString(1L, (int)
aClob.length()));
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
Clob aClob = stmt.getClob(columnIndex);
return (stmt.wasNull() ? null :
JdbcTypes.T_ClobToString.safeClobToString(aClob));
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
Clob aClob = rs.getClob(columnName);
return (rs.wasNull() ? null :
JdbcTypes.T_ClobToString.safeClobToString(aClob));
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
Clob aClob = rs.getClob(columnIndex);
return (rs.wasNull() ? null :
JdbcTypes.T_ClobToString.safeClobToString(aClob));
@@ -1079,19 +1104,19 @@
// return (stmt.wasNull() ? null : aBlob.getBytes(1L, (int)
aBlob.length()));
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
Blob aBlob = stmt.getBlob(columnIndex);
return stmt.wasNull() ? null : aBlob;
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
Blob aBlob = rs.getBlob(columnName);
return rs.wasNull() ? null : aBlob;
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
Blob aBlob = rs.getBlob(columnIndex);
return rs.wasNull() ? null : aBlob;
@@ -1123,19 +1148,19 @@
// return (stmt.wasNull() ? null : aBlob.getBytes(1L, (int)
aBlob.length()));
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
Blob aBlob = stmt.getBlob(columnIndex);
return (stmt.wasNull() ? null : aBlob.getBytes(1L, (int)
aBlob.length()));
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
Blob aBlob = rs.getBlob(columnName);
return (rs.wasNull() ? null : aBlob.getBytes(1L, (int)
aBlob.length()));
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
Blob aBlob = rs.getBlob(columnIndex);
return (rs.wasNull() ? null : aBlob.getBytes(1L, (int)
aBlob.length()));
@@ -1161,17 +1186,17 @@
// return stmt.getArray(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getArray(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return rs.getArray(columnName);
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return rs.getArray(columnIndex);
}
@@ -1196,17 +1221,17 @@
// return stmt.getObject(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getObject(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return rs.getObject(columnName);
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return rs.getObject(columnIndex);
}
@@ -1231,17 +1256,17 @@
// return stmt.getRef(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getRef(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return rs.getRef(columnName);
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return rs.getRef(columnIndex);
}
@@ -1266,17 +1291,17 @@
// return stmt.getRef(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getObject(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return rs.getObject(columnName);
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return rs.getObject(columnIndex);
}
@@ -1303,17 +1328,17 @@
// return stmt.getURL(columnName);
// }
- Object readValueFromStatement(CallableStatement stmt, int columnIndex)
throws SQLException
+ Object readValueFromStatement(final CallableStatement stmt, final int
columnIndex) throws SQLException
{
return stmt.getURL(columnIndex);
}
- Object readValueFromResultSet(ResultSet rs, String columnName) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final String
columnName) throws SQLException
{
return rs.getURL(columnName);
}
- Object readValueFromResultSet(ResultSet rs, int columnIndex) throws
SQLException
+ Object readValueFromResultSet(final ResultSet rs, final int
columnIndex) throws SQLException
{
return rs.getURL(columnIndex);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]