|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jamonapi.utils.ResultSetUtils
Purpose: Provides various methods for obtaining resultset data. Author: Andy Evans Date: 3/28/2001
Method Summary | |
java.lang.String[][] |
arrayListToString(java.util.ArrayList arrayList)
The following method converts an ArrayList, containing string arrays of ResultSet row data, into a two dimensional string array. |
static ResultSetUtils |
createInstance()
|
void |
fullResultSetToArrayList(java.util.ArrayList arrayList,
java.sql.ResultSet resultSet)
The following method returns an ArrayList containing the ResultSet column names and data. |
java.lang.String[][] |
fullResultSetToString(java.sql.ResultSet resultSet)
The following method simply takes the ResultSet and converts it to a two dimensional array of strings containing the column names and data using calls to the resultSetToArrayList and arrayListToString methods. |
java.lang.String[] |
getColumnNames(java.sql.ResultSetMetaData resultSetMetaData)
The following method returns an array of strings containing the column names for a given ResultSetMetaData object. |
java.lang.String[] |
getColumnNames(java.sql.ResultSetMetaData resultSetMetaData,
int[] returnCols)
The following method returns an array of strings containing the column names for a given ResultSetMetaData object. |
void |
resultSetMetaDataToArrayList(java.util.ArrayList arrayList,
java.sql.ResultSet resultSet)
The following method returns an ArrayList containing the ResultSetMetaData column names. |
void |
resultSetToArrayList(java.util.ArrayList arrayList,
java.sql.ResultSet resultSet)
The following method returns an ArrayList containing the ResultSet column names and data. |
void |
resultSetToMap(java.util.Map map,
java.sql.ResultSet resultSet)
The following method converts ResultSet data to a Map of object keys and values using an instance of HashMap. |
java.lang.String[][] |
resultSetToString(java.sql.ResultSet resultSet)
The following method simply takes the ResultSet and converts it to a two dimensional array of strings containing the column names and data using calls to the resultSetToArrayList and arrayListToString methods. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ResultSetUtils createInstance()
public void fullResultSetToArrayList(java.util.ArrayList arrayList, java.sql.ResultSet resultSet) throws java.sql.SQLException
java.sql.SQLException
public void resultSetToArrayList(java.util.ArrayList arrayList, java.sql.ResultSet resultSet) throws java.sql.SQLException
java.sql.SQLException
public void resultSetMetaDataToArrayList(java.util.ArrayList arrayList, java.sql.ResultSet resultSet) throws java.sql.SQLException
java.sql.SQLException
public void resultSetToMap(java.util.Map map, java.sql.ResultSet resultSet) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String[][] arrayListToString(java.util.ArrayList arrayList)
public java.lang.String[][] resultSetToString(java.sql.ResultSet resultSet) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String[][] fullResultSetToString(java.sql.ResultSet resultSet) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String[] getColumnNames(java.sql.ResultSetMetaData resultSetMetaData) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String[] getColumnNames(java.sql.ResultSetMetaData resultSetMetaData, int[] returnCols) throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |