Package mil.nga.geopackage.user
Interface UserCoreResult<TColumn extends UserColumn,TTable extends UserTable<TColumn>,TRow extends UserCoreRow<TColumn,TTable>>
-
- Type Parameters:
TColumn
- column typeTTable
- table typeTRow
- row type
public interface UserCoreResult<TColumn extends UserColumn,TTable extends UserTable<TColumn>,TRow extends UserCoreRow<TColumn,TTable>> extends Result, Iterable<TRow>
Abstract User Cursor- Author:
- osbornb
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserColumns<TColumn>
getColumns()
Get the columnsint
getCount()
Get the count of resultslong
getId()
Get the primary key valueTRow
getRow()
Get the row at the current cursor positionTRow
getRow(int[] columnTypes, Object[] values)
Get a row using the column types and valuesString[]
getSelectionArgs()
Get the SQL selection arguments (if available)String
getSql()
Get the SQL statement (if available)TTable
getTable()
Get the tableString
getTableName()
Get the table nameObject
getValue(int index)
Get the value for the column indexObject
getValue(String columnName)
Get the value for the column nameObject
getValue(TColumn column)
Get the value for the columnIterable<Long>
ids()
Iterable for iterating over result ids in place of rows-
Methods inherited from interface java.lang.Iterable
forEach, iterator, 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
-
-
-
-
Method Detail
-
getRow
TRow getRow(int[] columnTypes, Object[] values)
Get a row using the column types and values- Parameters:
columnTypes
- column typesvalues
- values- Returns:
- row
-
getValue
Object getValue(TColumn column)
Get the value for the column- Parameters:
column
- column- Returns:
- value
-
getValue
Object getValue(int index)
Get the value for the column index
-
getValue
Object getValue(String columnName)
Get the value for the column name- Parameters:
columnName
- column name- Returns:
- value
- Since:
- 3.4.0
-
getId
long getId()
Get the primary key value- Returns:
- value
- Since:
- 3.4.0
-
getTable
TTable getTable()
Get the table- Returns:
- table
-
getTableName
String getTableName()
Get the table name- Returns:
- table name
- Since:
- 3.5.0
-
getColumns
UserColumns<TColumn> getColumns()
Get the columns- Returns:
- columns
- Since:
- 3.5.0
-
getRow
TRow getRow()
Get the row at the current cursor position- Returns:
- row
-
getCount
int getCount()
Get the count of results- Returns:
- count, -1 if not able to determine
-
getSql
String getSql()
Get the SQL statement (if available)- Returns:
- SQL statement
- Since:
- 6.2.0
-
getSelectionArgs
String[] getSelectionArgs()
Get the SQL selection arguments (if available)- Returns:
- selection arguments
- Since:
- 6.2.0
-
-