Package mil.nga.geopackage.user
Class UserCorePaginatedResults<TColumn extends UserColumn,TTable extends UserTable<TColumn>,TRow extends UserCoreRow<TColumn,TTable>,TResult extends UserCoreResult<TColumn,TTable,TRow>>
- java.lang.Object
-
- mil.nga.geopackage.user.UserCorePaginatedResults<TColumn,TTable,TRow,TResult>
-
- Type Parameters:
TColumn
- column typeTTable
- table typeTRow
- row typeTResult
- result type
- All Implemented Interfaces:
Iterable<TRow>
public abstract class UserCorePaginatedResults<TColumn extends UserColumn,TTable extends UserTable<TColumn>,TRow extends UserCoreRow<TColumn,TTable>,TResult extends UserCoreResult<TColumn,TTable,TRow>> extends Object implements Iterable<TRow>
User Core Paginated Results for iterating and querying through chunks- Since:
- 6.2.0
- Author:
- osbornb
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UserCorePaginatedResults(UserCoreDao<TColumn,TTable,TRow,TResult> dao, UserCoreResult<TColumn,TTable,TRow> results)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the current resultsString[]
getArgs()
Get the SQL argumentsString[]
getColumns()
Get the SQL column namesUserCoreDao<TColumn,TTable,TRow,TResult>
getDao()
Get the DAOPagination
getPagination()
Get the paginationUserCoreResult<TColumn,TTable,TRow>
getResults()
Get the current paginated resultsString
getSql()
Get the initial SQL statementIterable<Long>
ids()
Iterable for iterating over result ids in place of rowsIterator<TRow>
iterator()
void
setPagination(Pagination pagination)
Set the pagination-
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
-
-
-
-
Constructor Detail
-
UserCorePaginatedResults
protected UserCorePaginatedResults(UserCoreDao<TColumn,TTable,TRow,TResult> dao, UserCoreResult<TColumn,TTable,TRow> results)
Constructor- Parameters:
dao
- user core daoresults
- user core results
-
-
Method Detail
-
getDao
public UserCoreDao<TColumn,TTable,TRow,TResult> getDao()
Get the DAO- Returns:
- data access object
-
getResults
public UserCoreResult<TColumn,TTable,TRow> getResults()
Get the current paginated results- Returns:
- current results
-
getSql
public String getSql()
Get the initial SQL statement- Returns:
- SQL statement
-
getArgs
public String[] getArgs()
Get the SQL arguments- Returns:
- SQL arguments
-
getColumns
public String[] getColumns()
Get the SQL column names- Returns:
- SQL column names
-
getPagination
public Pagination getPagination()
Get the pagination- Returns:
- pagination
-
setPagination
public void setPagination(Pagination pagination)
Set the pagination- Parameters:
pagination
- pagination
-
iterator
public Iterator<TRow> iterator()
- Specified by:
iterator
in interfaceIterable<TColumn extends UserColumn>
-
ids
public Iterable<Long> ids()
Iterable for iterating over result ids in place of rows- Returns:
- iterable ids
- Since:
- 6.2.1
-
close
public void close()
Close the current results
-
-