Methods Summary |
---|
public java.math.BigDecimal | getBigDecimal(int columnIndex)
Column col = null;
try {
col = columns[columnIndex - 1];
}
catch (ArrayIndexOutOfBoundsException e) {
throw new NoSuchColumnException(String.valueOf(columnIndex));
}
return col.getBigDecimal();
|
public java.math.BigDecimal | getBigDecimal(java.lang.String columnName)
return getBigDecimal(getIndex(columnName));
|
public boolean | getBoolean(int columnIndex)
Column col = null;
try {
col = columns[columnIndex - 1];
}
catch (ArrayIndexOutOfBoundsException e) {
throw new NoSuchColumnException(String.valueOf(columnIndex));
}
return col.getBoolean();
|
public boolean | getBoolean(java.lang.String columnName)
return getBoolean(getIndex(columnName));
|
public byte | getByte(int columnIndex)
Column col = null;
try {
col = columns[columnIndex - 1];
}
catch (ArrayIndexOutOfBoundsException e) {
throw new NoSuchColumnException(String.valueOf(columnIndex));
}
return col.getByte();
|
public byte | getByte(java.lang.String columnName)
return getByte(getIndex(columnName));
|
public byte[] | getBytes(int columnIndex)
Column col = null;
try {
col = columns[columnIndex - 1];
}
catch (ArrayIndexOutOfBoundsException e) {
throw new NoSuchColumnException(String.valueOf(columnIndex));
}
return col.getBytes();
|
public byte[] | getBytes(java.lang.String columnName)
return getBytes(getIndex(columnName));
|
public int | getColumnCount()Returns the number of columns in this row.
return columns.length;
|
public Column[] | getColumns()Returns an array of the Columns in this row.
return columns;
|
public java.sql.Date | getDate(int columnIndex)
Column col = null;
try {
col = columns[columnIndex - 1];
}
catch (ArrayIndexOutOfBoundsException e) {
throw new NoSuchColumnException(String.valueOf(columnIndex));
}
return col.getDate();
|
public java.sql.Date | getDate(java.lang.String columnName)
return getDate(getIndex(columnName));
|
public double | getDouble(int columnIndex)
Column col = null;
try {
col = columns[columnIndex - 1];
}
catch (ArrayIndexOutOfBoundsException e) {
throw new NoSuchColumnException(String.valueOf(columnIndex));
}
return col.getDouble();
|
public double | getDouble(java.lang.String columnName)
return getDouble(getIndex(columnName));
|
public float | getFloat(int columnIndex)
Column col = null;
try {
col = columns[columnIndex - 1];
}
catch (ArrayIndexOutOfBoundsException e) {
throw new NoSuchColumnException(String.valueOf(columnIndex));
}
return col.getFloat();
|
public float | getFloat(java.lang.String columnName)
return getFloat(getIndex(columnName));
|
private int | getIndex(java.lang.String columnName)Returns the index of the column with the specified name,
ignoring case since column names must be unique anyway
and some databases ignores the case used in the SELECT
statement when they create the ResultSet.
for (int i = 0; i < columns.length; i++) {
Column col = columns[i];
if (col.getName().equalsIgnoreCase(columnName)) {
// Adjust to 1 based indexed
return i + 1;
}
}
throw new NoSuchColumnException(columnName);
|
public int | getInt(int columnIndex)
Column col = null;
try {
col = columns[columnIndex - 1];
}
catch (ArrayIndexOutOfBoundsException e) {
throw new NoSuchColumnException(String.valueOf(columnIndex));
}
return col.getInt();
|
public int | getInt(java.lang.String columnName)
return getInt(getIndex(columnName));
|
public long | getLong(int columnIndex)
Column col = null;
try {
col = columns[columnIndex - 1];
}
catch (ArrayIndexOutOfBoundsException e) {
throw new NoSuchColumnException(String.valueOf(columnIndex));
}
return col.getLong();
|
public long | getLong(java.lang.String columnName)
return getLong(getIndex(columnName));
|
public java.lang.Object | getObject(int columnIndex)
Column col = null;
try {
col = columns[columnIndex - 1];
}
catch (ArrayIndexOutOfBoundsException e) {
throw new NoSuchColumnException(String.valueOf(columnIndex));
}
return col.getObject();
|
public java.lang.Object | getObject(java.lang.String columnName)
return getObject(getIndex(columnName));
|
public short | getShort(int columnIndex)
Column col = null;
try {
col = columns[columnIndex - 1];
}
catch (ArrayIndexOutOfBoundsException e) {
throw new NoSuchColumnException(String.valueOf(columnIndex));
}
return col.getShort();
|
public short | getShort(java.lang.String columnName)
return getShort(getIndex(columnName));
|
public java.lang.String | getString(int columnIndex)
Column col = null;
try {
col = columns[columnIndex - 1];
}
catch (ArrayIndexOutOfBoundsException e) {
throw new NoSuchColumnException(String.valueOf(columnIndex));
}
return col.getString();
|
public java.lang.String | getString(java.lang.String columnName)
return getString(getIndex(columnName));
|
public java.sql.Time | getTime(int columnIndex)
Column col = null;
try {
col = columns[columnIndex - 1];
}
catch (ArrayIndexOutOfBoundsException e) {
throw new NoSuchColumnException(String.valueOf(columnIndex));
}
return col.getTime();
|
public java.sql.Time | getTime(java.lang.String columnName)
return getTime(getIndex(columnName));
|
public java.sql.Timestamp | getTimestamp(int columnIndex)
Column col = null;
try {
col = columns[columnIndex - 1];
}
catch (ArrayIndexOutOfBoundsException e) {
throw new NoSuchColumnException(String.valueOf(columnIndex));
}
return col.getTimestamp();
|
public java.sql.Timestamp | getTimestamp(java.lang.String columnName)
return getTimestamp(getIndex(columnName));
|