public class FetchResult<R,C> extends Object implements Iterable<C[]>
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
columnLength |
protected Map<String,Integer> |
columnMap |
protected List<C[]> |
data |
protected String[] |
display |
protected Engine<R,C> |
engine |
protected String[] |
header |
protected int |
length |
protected List<ColumnReference<R,C>> |
subList |
| Constructor and Description |
|---|
FetchResult(Engine<R,C> engine,
List<ColumnReference<R,C>> subList) |
FetchResult(Engine<R,C> engine,
String... header) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRowArray(C... row) |
int |
getColumnCount() |
int |
getColumnIndex(String column) |
String |
getColumnName(int columnIndex) |
String |
getDisplayName(int columnIndex) |
String[] |
getHeader()
Returns column headers
|
int |
getRowCount() |
List<ColumnReference<R,C>> |
getSelectList() |
C |
getValueAt(int row,
int column) |
C |
getValueAt(int row,
String column) |
Iterator<C[]> |
iterator() |
void |
print(PrintStream out) |
void |
setHeader(String[] header) |
protected List<ColumnReference<R,C>> subList
protected String[] header
protected String[] display
protected int[] columnLength
protected int length
public List<ColumnReference<R,C>> getSelectList()
public int getColumnIndex(String column)
public String[] getHeader()
public void setHeader(String[] header)
public void addRowArray(C... row)
public void print(PrintStream out)
public int getRowCount()
public int getColumnCount()
public C getValueAt(int row, int column)
public String getColumnName(int columnIndex)
public String getDisplayName(int columnIndex)
Copyright © 2014. All rights reserved.