Modifier and Type | Field and Description |
---|---|
protected HashMap<String,Integer> |
mColumnNames
Map of column name to index location in the result set.
|
protected ResultSetMetaData |
mResultSetMetaData
Metadata from the ResultSet passed into the handle method.
|
Constructor and Description |
---|
LeoArrayListHandler() |
Modifier and Type | Method and Description |
---|---|
int |
getColumnIndex(String name)
Get the index of the column name provided from the last query handled.
|
Set<String> |
getColumnNames()
Get the set of column names from the last query handled.
|
ResultSetMetaData |
getResultSetMetaData()
Return the ResultSetMetaData from the last query handled.
|
List<Object[]> |
handle(ResultSet rs)
Whole
ResultSet handler. |
boolean |
hasColumn(String name)
Checks the column names from the last executed query, returns true if the name is found.
|
protected ResultSetMetaData mResultSetMetaData
public List<Object[]> handle(ResultSet rs) throws SQLException
ResultSet
handler. It produce List
as
result. To convert individual rows into Java objects it uses
handleRow(ResultSet)
method.handle
in interface org.apache.commons.dbutils.ResultSetHandler<List<Object[]>>
handle
in class org.apache.commons.dbutils.handlers.AbstractListHandler<Object[]>
rs
- ResultSet
to process.SQLException
- error occursArrayListHandler.handleRow(java.sql.ResultSet)
public ResultSetMetaData getResultSetMetaData()
public Set<String> getColumnNames()
public boolean hasColumn(String name)
name
- Column name to check forpublic int getColumnIndex(String name)
name
- Column name whose index will be retrievedCopyright © 2018 Department of Veterans Affairs. All Rights Reserved.