Package mil.nga.geopackage.user
Class UserConnection<TColumn extends UserColumn,TTable extends UserTable<TColumn>,TRow extends UserRow<TColumn,TTable>,TResult extends UserCursor<TColumn,TTable,TRow>>
java.lang.Object
mil.nga.geopackage.user.UserCoreConnection<TColumn,TTable,TRow,TResult>
mil.nga.geopackage.user.UserConnection<TColumn,TTable,TRow,TResult>
- Type Parameters:
TColumn
- column typeTTable
- table typeTRow
- row typeTResult
- result type
- Direct Known Subclasses:
AttributesConnection
,FeatureConnection
,TileConnection
,UserCustomConnection
,UserWrapperConnection
public abstract class UserConnection<TColumn extends UserColumn,TTable extends UserTable<TColumn>,TRow extends UserRow<TColumn,TTable>,TResult extends UserCursor<TColumn,TTable,TRow>>
extends UserCoreConnection<TColumn,TTable,TRow,TResult>
GeoPackage Connection used to define common functionality within different
connection types
-
Field Summary
Modifier and TypeFieldDescriptionprotected final GeoPackageDatabase
Database connectionprotected TTable
Table -
Constructor Summary
ModifierConstructorDescriptionprotected
UserConnection
(GeoPackageConnection database) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected TResult
convertCursor
(Cursor cursor) Convert the cursor to the result type cursorGet the databasegetTable()
Get the tablequery
(boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy) query
(boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) query
(boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy) query
(boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) query
(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy) query
(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) query
(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy) query
(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) Query using the user query argumentsQuery using the query from a previous query resultquerySQL
(boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String groupBy, String having, String orderBy) querySQL
(boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String groupBy, String having, String orderBy, String limit) querySQL
(boolean distinct, String table, String[] columns, String selection, String groupBy, String having, String orderBy) querySQL
(boolean distinct, String table, String[] columns, String selection, String groupBy, String having, String orderBy, String limit) querySQL
(String table, String[] columns, String[] columnsAs, String selection, String groupBy, String having, String orderBy) querySQL
(String table, String[] columns, String[] columnsAs, String selection, String groupBy, String having, String orderBy, String limit) querySQL
(String table, String[] columns, String selection, String groupBy, String having, String orderBy) querySQL
(String table, String[] columns, String selection, String groupBy, String having, String orderBy, String limit) void
Set the table
-
Field Details
-
database
Database connection -
table
Table
-
-
Constructor Details
-
UserConnection
Constructor- Parameters:
database
- GeoPackage connection
-
-
Method Details
-
getDatabase
Get the database- Returns:
- database
- Since:
- 3.4.0
-
getTable
Get the table- Returns:
- table
- Since:
- 3.2.0
-
setTable
Set the table- Parameters:
table
- table- Since:
- 3.2.0
-
rawQuery
-
rawQuery
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
querySQL
-
querySQL
-
querySQL
-
querySQL
-
querySQL
-
querySQL
-
querySQL
-
querySQL
-
query
Query using the query from a previous query result- Parameters:
previousResult
- previous result- Returns:
- result
- Since:
- 2.0.0
-
query
Query using the user query arguments- Parameters:
query
- user query- Returns:
- result
- Since:
- 2.0.0
-
convertCursor
Convert the cursor to the result type cursor- Parameters:
cursor
- cursor- Returns:
- result cursor
- Since:
- 2.0.0
-