Package mil.nga.geopackage.user
Class UserResultSet<TColumn extends UserColumn,TTable extends UserTable<TColumn>,TRow extends UserRow<TColumn,TTable>>
- java.lang.Object
-
- mil.nga.geopackage.db.ResultSetResult
-
- mil.nga.geopackage.user.UserResultSet<TColumn,TTable,TRow>
-
- Type Parameters:
TColumn
- column typeTTable
- table typeTRow
- row type
- All Implemented Interfaces:
Iterable<TRow>
,Result
,UserCoreResult<TColumn,TTable,TRow>
- Direct Known Subclasses:
AttributesResultSet
,FeatureResultSet
,TileResultSet
,UserCustomResultSet
public abstract class UserResultSet<TColumn extends UserColumn,TTable extends UserTable<TColumn>,TRow extends UserRow<TColumn,TTable>> extends ResultSetResult implements UserCoreResult<TColumn,TTable,TRow>
Abstract User Result Set. The column index of the GeoPackage core is 0 indexed based and ResultSets are 1 indexed based.- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.db.ResultSetResult
resultSet
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UserResultSet(TTable table, String[] columns, ResultSet resultSet, int count)
Constructorprotected
UserResultSet(TTable table, String[] columns, ResultSet resultSet, String sql, String[] selectionArgs)
Constructorprotected
UserResultSet(TTable table, ResultSet resultSet, int count)
Constructorprotected
UserResultSet(TTable table, ResultSet resultSet, String sql, String[] selectionArgs)
Constructorprotected
UserResultSet(TTable table, UserColumns<TColumn> columns, ResultSet resultSet, int count)
Constructorprotected
UserResultSet(TTable table, UserColumns<TColumn> columns, ResultSet resultSet, String sql, String[] selectionArgs)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserColumns<TColumn>
getColumns()
int
getCount()
long
getId()
TRow
getRow()
String[]
getSelectionArgs()
String
getSql()
TTable
getTable()
String
getTableName()
Object
getValue(int index)
Object
getValue(String columnName)
Object
getValue(TColumn column)
Iterable<Long>
ids()
Iterator<TRow>
iterator()
-
Methods inherited from class mil.nga.geopackage.db.ResultSetResult
close, getBlob, getColumnCount, getColumnIndex, getDouble, getFloat, getInt, getLong, getPosition, getResultSet, getShort, getString, getType, getValue, moveToFirst, moveToNext, moveToPosition, resultIndexToResultSetIndex, resultSetIndexToResultIndex, resultSetTypeToSqlLite, wasNull
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface mil.nga.geopackage.db.Result
close, getBlob, getColumnCount, getColumnIndex, getDouble, getFloat, getInt, getLong, getPosition, getShort, getString, getType, getValue, moveToFirst, moveToNext, moveToPosition, wasNull
-
Methods inherited from interface mil.nga.geopackage.user.UserCoreResult
getRow
-
-
-
-
Constructor Detail
-
UserResultSet
protected UserResultSet(TTable table, ResultSet resultSet, int count)
Constructor- Parameters:
table
- tableresultSet
- result setcount
- count
-
UserResultSet
protected UserResultSet(TTable table, String[] columns, ResultSet resultSet, int count)
Constructor- Parameters:
table
- tablecolumns
- columnsresultSet
- result setcount
- count- Since:
- 3.5.0
-
UserResultSet
protected UserResultSet(TTable table, UserColumns<TColumn> columns, ResultSet resultSet, int count)
Constructor- Parameters:
table
- tablecolumns
- columnsresultSet
- result setcount
- count- Since:
- 3.5.0
-
UserResultSet
protected UserResultSet(TTable table, ResultSet resultSet, String sql, String[] selectionArgs)
Constructor- Parameters:
table
- tableresultSet
- result setsql
- SQL statementselectionArgs
- selection arguments- Since:
- 4.0.0
-
UserResultSet
protected UserResultSet(TTable table, String[] columns, ResultSet resultSet, String sql, String[] selectionArgs)
Constructor- Parameters:
table
- tablecolumns
- columnsresultSet
- result setsql
- SQL statementselectionArgs
- selection arguments- Since:
- 4.0.0
-
-
Method Detail
-
getValue
public Object getValue(int index)
- Specified by:
getValue
in interfaceResult
- Specified by:
getValue
in interfaceUserCoreResult<TColumn extends UserColumn,TTable extends UserTable<TColumn>,TRow extends UserRow<TColumn,TTable>>
- Overrides:
getValue
in classResultSetResult
-
getId
public long getId()
-
getTable
public TTable getTable()
-
getTableName
public String getTableName()
- Specified by:
getTableName
in interfaceUserCoreResult<TColumn extends UserColumn,TTable extends UserTable<TColumn>,TRow extends UserRow<TColumn,TTable>>
-
getColumns
public UserColumns<TColumn> getColumns()
- Specified by:
getColumns
in interfaceUserCoreResult<TColumn extends UserColumn,TTable extends UserTable<TColumn>,TRow extends UserRow<TColumn,TTable>>
-
getRow
public TRow getRow()
-
getCount
public int getCount()
-
iterator
public Iterator<TRow> iterator()
- Specified by:
iterator
in interfaceIterable<TColumn extends UserColumn>
-
getSql
public String getSql()
-
getSelectionArgs
public String[] getSelectionArgs()
- Specified by:
getSelectionArgs
in interfaceUserCoreResult<TColumn extends UserColumn,TTable extends UserTable<TColumn>,TRow extends UserRow<TColumn,TTable>>
-
-