|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fesenmeyer.dbnormalizer.core.dbaccess.DataSet
public class DataSet
Class which provides saving a SQL-ResultSet in a matrix consisting of rows and columns. The resultset's column names are also saved.
Field Summary | |
---|---|
(package private) int |
columnCount
The number of columns. |
(package private) List<String> |
columnNames
The column names. |
(package private) List<List<Object>> |
dataList
A matrix of objects. |
(package private) int |
rowCount
The number of rows. |
Constructor Summary | |
---|---|
DataSet(ResultSet rs)
Class constructor specifying a ResultSet by argument rs. |
Method Summary | |
---|---|
int |
getColumnCount()
Gets the number of columns. |
List<String> |
getColumnNames()
Gets the column names. |
List<Object> |
getRow(int index)
Get the row at the specified index. |
int |
getRowCount()
Gets the number of rows. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
List<String> columnNames
List<List<Object>> dataList
int columnCount
int rowCount
Constructor Detail |
---|
public DataSet(ResultSet rs) throws DBException
rs
- the ResultSet
DBException
- if a SQL-Exception occurs while reading the dataMethod Detail |
---|
public List<Object> getRow(int index)
index
- the Index
public List<String> getColumnNames()
public int getColumnCount()
public int getRowCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |