protected static class SegmentLoader.RowList extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SegmentLoader.RowList.Column |
(package private) static class |
SegmentLoader.RowList.DoubleColumn |
static interface |
SegmentLoader.RowList.Handler |
(package private) static class |
SegmentLoader.RowList.IntColumn |
(package private) static class |
SegmentLoader.RowList.LongColumn |
(package private) static class |
SegmentLoader.RowList.NativeColumn |
(package private) static class |
SegmentLoader.RowList.ObjectColumn |
Constructor and Description |
---|
SegmentLoader.RowList(List<SqlStatement.Type> types)
Creates a RowList.
|
SegmentLoader.RowList(List<SqlStatement.Type> types,
int capacity)
Creates a RowList with a specified initial capacity.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
createRow() |
void |
createRow(ResultSet resultSet) |
void |
first()
Moves to before the first row.
|
double |
getDouble(int columnIndex) |
int |
getInt(int columnIndex) |
Object |
getObject(int columnIndex)
Returns the object in the given column of the current row.
|
List<SqlStatement.Type> |
getTypes() |
boolean |
isNull(int columnIndex) |
void |
last()
Moves to after the last row.
|
boolean |
next()
Moves forward one row, or returns false if at the last row.
|
boolean |
previous()
Moves backward one row, or returns false if at the first row.
|
(package private) void |
setDouble(int column,
double value) |
(package private) void |
setInt(int column,
int value) |
(package private) void |
setLong(int column,
long value) |
void |
setNull(int columnIndex,
boolean b) |
(package private) void |
setObject(int column,
Object value) |
int |
size() |
SegmentLoader.RowList(List<SqlStatement.Type> types)
types
- Column typesSegmentLoader.RowList(List<SqlStatement.Type> types, int capacity)
types
- Column typescapacity
- Initial capacityvoid createRow()
void setDouble(int column, double value)
void setInt(int column, int value)
void setLong(int column, long value)
public int size()
public void createRow(ResultSet resultSet) throws SQLException
SQLException
public List<SqlStatement.Type> getTypes()
public void first()
public void last()
public boolean next()
public boolean previous()
public Object getObject(int columnIndex)
columnIndex
- Column indexpublic int getInt(int columnIndex)
public double getDouble(int columnIndex)
public boolean isNull(int columnIndex)
public void setNull(int columnIndex, boolean b)