Package mil.nga.geopackage.user
Class UserCoreConnection<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.UserCoreConnection<TColumn,TTable,TRow,TResult>
-
- Type Parameters:
TColumn
- column typeTTable
- table typeTRow
- row typeTResult
- result type
public abstract class UserCoreConnection<TColumn extends UserColumn,TTable extends UserTable<TColumn>,TRow extends UserCoreRow<TColumn,TTable>,TResult extends UserCoreResult<TColumn,TTable,TRow>> extends Object
GeoPackage Connection used to define common functionality within different connection types- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description UserCoreConnection()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract TResult
query(boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
Query the given table, returning aUserCoreResult
over the result set.abstract TResult
query(boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
Query the given URL, returning aUserCoreResult
over the result set.abstract TResult
query(boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
Query the given table, returning aUserCoreResult
over the result set.abstract TResult
query(boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
Query the given URL, returning aUserCoreResult
over the result set.abstract TResult
query(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
Query the given table, returning aUserCoreResult
over the result set.abstract TResult
query(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
Query the given URL, returning aUserCoreResult
over the result set.abstract TResult
query(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
Query the given table, returning aUserCoreResult
over the result set.abstract TResult
query(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
Query the given URL, returning aUserCoreResult
over the result set.abstract String
querySQL(boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String groupBy, String having, String orderBy)
Build the query SQLabstract String
querySQL(boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String groupBy, String having, String orderBy, String limit)
Build the query SQLabstract String
querySQL(boolean distinct, String table, String[] columns, String selection, String groupBy, String having, String orderBy)
Build the query SQLabstract String
querySQL(boolean distinct, String table, String[] columns, String selection, String groupBy, String having, String orderBy, String limit)
Build the query SQLabstract String
querySQL(String table, String[] columns, String[] columnsAs, String selection, String groupBy, String having, String orderBy)
Build the query SQLabstract String
querySQL(String table, String[] columns, String[] columnsAs, String selection, String groupBy, String having, String orderBy, String limit)
Build the query SQLabstract String
querySQL(String table, String[] columns, String selection, String groupBy, String having, String orderBy)
Build the query SQLabstract String
querySQL(String table, String[] columns, String selection, String groupBy, String having, String orderBy, String limit)
Build the query SQLabstract TResult
rawQuery(String sql, String[] selectionArgs)
Runs the provided SQL and returns aUserCoreResult
over the result set.abstract TResult
rawQuery(String sql, String[] columns, String[] selectionArgs)
Runs the provided SQL and returns aUserCoreResult
over the result set.
-
-
-
Method Detail
-
rawQuery
public abstract TResult rawQuery(String sql, String[] selectionArgs)
Runs the provided SQL and returns aUserCoreResult
over the result set.- Parameters:
sql
- SQL statementselectionArgs
- selection arguments- Returns:
- result
-
rawQuery
public abstract TResult rawQuery(String sql, String[] columns, String[] selectionArgs)
Runs the provided SQL and returns aUserCoreResult
over the result set.- Parameters:
sql
- SQL statementcolumns
- subset of table columns defined in the SQLselectionArgs
- selection arguments- Returns:
- result
- Since:
- 6.2.0
-
query
public abstract TResult query(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
Query the given table, returning aUserCoreResult
over the result set.- Parameters:
table
- table namecolumns
- columnsselection
- selectionselectionArgs
- selection argumentsgroupBy
- group byhaving
- havingorderBy
- order by- Returns:
- result
-
query
public abstract TResult query(boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
Query the given table, returning aUserCoreResult
over the result set.- Parameters:
distinct
- distinct rowstable
- table namecolumns
- columnsselection
- selectionselectionArgs
- selection argumentsgroupBy
- group byhaving
- havingorderBy
- order by- Returns:
- result
- Since:
- 4.0.0
-
query
public abstract TResult query(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
Query the given table, returning aUserCoreResult
over the result set.- Parameters:
table
- table namecolumns
- columnscolumnsAs
- columns as valuesselection
- selectionselectionArgs
- selection argumentsgroupBy
- group byhaving
- havingorderBy
- order by- Returns:
- result
- Since:
- 2.0.0
-
query
public abstract TResult query(boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
Query the given table, returning aUserCoreResult
over the result set.- Parameters:
distinct
- distinct rowstable
- table namecolumns
- columnscolumnsAs
- columns as valuesselection
- selectionselectionArgs
- selection argumentsgroupBy
- group byhaving
- havingorderBy
- order by- Returns:
- result
- Since:
- 4.0.0
-
query
public abstract TResult query(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
Query the given URL, returning aUserCoreResult
over the result set.- Parameters:
table
- table namecolumns
- columnsselection
- selectionselectionArgs
- selection argumentsgroupBy
- group byhaving
- havingorderBy
- order bylimit
- query limit- Returns:
- result
-
query
public abstract TResult query(boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
Query the given URL, returning aUserCoreResult
over the result set.- Parameters:
distinct
- distinct rowstable
- table namecolumns
- columnsselection
- selectionselectionArgs
- selection argumentsgroupBy
- group byhaving
- havingorderBy
- order bylimit
- query limit- Returns:
- result
- Since:
- 4.0.0
-
query
public abstract TResult query(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
Query the given URL, returning aUserCoreResult
over the result set.- Parameters:
table
- table namecolumns
- columnscolumnsAs
- columns as valuesselection
- selectionselectionArgs
- selection argumentsgroupBy
- group byhaving
- havingorderBy
- order bylimit
- query limit- Returns:
- result
- Since:
- 2.0.0
-
query
public abstract TResult query(boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
Query the given URL, returning aUserCoreResult
over the result set.- Parameters:
distinct
- distinct rowstable
- table namecolumns
- columnscolumnsAs
- columns as valuesselection
- selectionselectionArgs
- selection argumentsgroupBy
- group byhaving
- havingorderBy
- order bylimit
- query limit- Returns:
- result
- Since:
- 4.0.0
-
querySQL
public abstract String querySQL(String table, String[] columns, String selection, String groupBy, String having, String orderBy)
Build the query SQL- Parameters:
table
- table namecolumns
- columnsselection
- selectiongroupBy
- group byhaving
- havingorderBy
- order by- Returns:
- SQL
- Since:
- 3.4.0
-
querySQL
public abstract String querySQL(boolean distinct, String table, String[] columns, String selection, String groupBy, String having, String orderBy)
Build the query SQL- Parameters:
distinct
- distinct rowstable
- table namecolumns
- columnsselection
- selectiongroupBy
- group byhaving
- havingorderBy
- order by- Returns:
- SQL
- Since:
- 4.0.0
-
querySQL
public abstract String querySQL(String table, String[] columns, String[] columnsAs, String selection, String groupBy, String having, String orderBy)
Build the query SQL- Parameters:
table
- table namecolumns
- columnscolumnsAs
- columns as valuesselection
- selectiongroupBy
- group byhaving
- havingorderBy
- order by- Returns:
- SQL
- Since:
- 3.4.0
-
querySQL
public abstract String querySQL(boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String groupBy, String having, String orderBy)
Build the query SQL- Parameters:
distinct
- distinct rowstable
- table namecolumns
- columnscolumnsAs
- columns as valuesselection
- selectiongroupBy
- group byhaving
- havingorderBy
- order by- Returns:
- SQL
- Since:
- 4.0.0
-
querySQL
public abstract String querySQL(String table, String[] columns, String selection, String groupBy, String having, String orderBy, String limit)
Build the query SQL- Parameters:
table
- table namecolumns
- columnsselection
- selectiongroupBy
- group byhaving
- havingorderBy
- order bylimit
- query limit- Returns:
- SQL
- Since:
- 3.4.0
-
querySQL
public abstract String querySQL(boolean distinct, String table, String[] columns, String selection, String groupBy, String having, String orderBy, String limit)
Build the query SQL- Parameters:
distinct
- distinct rowstable
- table namecolumns
- columnsselection
- selectiongroupBy
- group byhaving
- havingorderBy
- order bylimit
- query limit- Returns:
- SQL
- Since:
- 4.0.0
-
querySQL
public abstract String querySQL(String table, String[] columns, String[] columnsAs, String selection, String groupBy, String having, String orderBy, String limit)
Build the query SQL- Parameters:
table
- table namecolumns
- columnscolumnsAs
- columns as valuesselection
- selectiongroupBy
- group byhaving
- havingorderBy
- order bylimit
- query limit- Returns:
- SQL
- Since:
- 3.4.0
-
querySQL
public abstract String querySQL(boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String groupBy, String having, String orderBy, String limit)
Build the query SQL- Parameters:
distinct
- distinct rowstable
- table namecolumns
- columnscolumnsAs
- columns as valuesselection
- selectiongroupBy
- group byhaving
- havingorderBy
- order bylimit
- query limit- Returns:
- SQL
- Since:
- 4.0.0
-
-