public abstract class GeoPackageCoreConnection extends Object implements Closeable
| Constructor and Description |
|---|
GeoPackageCoreConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(String tableName,
String columnName,
String columnDef)
Add a new column to the table
|
abstract void |
close() |
abstract boolean |
columnExists(String tableName,
String columnName)
Check if the table column exists
|
abstract int |
count(String table,
String where,
String[] args)
Get a count of results
|
abstract int |
delete(String table,
String whereClause,
String[] whereArgs)
Convenience method for deleting rows in the database.
|
abstract void |
execSQL(String sql)
Execute the sql
|
String |
getApplicationId()
Get the application id
|
abstract ConnectionSource |
getConnectionSource()
Get a connection source
|
int |
getUserVersion()
Get the user version
|
abstract Integer |
max(String table,
String column,
String where,
String[] args)
Get the max result of the column
|
abstract Integer |
min(String table,
String column,
String where,
String[] args)
Get the min result of the column
|
abstract Integer |
querySingleIntResult(String sql,
String[] args)
Query for a single result integer
|
abstract String |
querySingleStringResult(String sql,
String[] args)
Query for a single result string
|
void |
setApplicationId()
Set the GeoPackage application id
|
void |
setApplicationId(String applicationId)
Set the GeoPackage application id
|
void |
setUserVersion()
Set the GeoPackage user version
|
void |
setUserVersion(int userVersion)
Set the user version
|
boolean |
tableExists(String tableName)
Check if the table exists
|
public abstract ConnectionSource getConnectionSource()
public abstract void execSQL(String sql)
sql - public abstract int delete(String table, String whereClause, String[] whereArgs)
table - whereClause - whereArgs - public abstract int count(String table, String where, String[] args)
table - where - args - public abstract Integer min(String table, String column, String where, String[] args)
table - column - where - args - public abstract Integer max(String table, String column, String where, String[] args)
table - column - where - args - public abstract void close()
close in interface Closeableclose in interface AutoCloseablepublic boolean tableExists(String tableName)
tableName - table namepublic abstract boolean columnExists(String tableName, String columnName)
tableName - table namecolumnName - column namepublic void addColumn(String tableName, String columnName, String columnDef)
tableName - columnName - columnDef - public abstract String querySingleStringResult(String sql, String[] args)
sql - sql statementargs - sql argumentspublic abstract Integer querySingleIntResult(String sql, String[] args)
sql - sql statementargs - sql argumentspublic void setApplicationId()
public void setApplicationId(String applicationId)
applicationId - application idpublic String getApplicationId()
public void setUserVersion()
public void setUserVersion(int userVersion)
userVersion - user versionpublic int getUserVersion()
Copyright © 2018 National Geospatial-Intelligence Agency. All rights reserved.