Class GriddedCoverageDao
- java.lang.Object
-
- com.j256.ormlite.dao.BaseDaoImpl<T,ID>
-
- mil.nga.geopackage.db.GeoPackageDao<GriddedCoverage,Long>
-
- mil.nga.geopackage.extension.coverage.GriddedCoverageDao
-
- All Implemented Interfaces:
CloseableIterable<GriddedCoverage>
,Dao<GriddedCoverage,Long>
,Iterable<GriddedCoverage>
public class GriddedCoverageDao extends GeoPackageDao<GriddedCoverage,Long>
Gridded Coverage Data Access Object- Since:
- 1.2.1
- Author:
- osbornb
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.j256.ormlite.dao.Dao
Dao.CreateOrUpdateStatus, Dao.DaoObserver
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.db.GeoPackageDao
db
-
Fields inherited from class com.j256.ormlite.dao.BaseDaoImpl
connectionSource, constructor, databaseType, dataClass, lastIterator, objectFactory, statementExecutor, tableConfig, tableInfo
-
-
Constructor Summary
Constructors Constructor Description GriddedCoverageDao(ConnectionSource connectionSource, Class<GriddedCoverage> dataClass)
Constructor, required by ORMLite
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GriddedCoverageDao
create(GeoPackageCoreConnection db)
Create the DAOstatic GriddedCoverageDao
create(GeoPackageCore geoPackage)
Create the DAOint
delete(String tableName)
Delete by table nameint
delete(TileMatrixSet tileMatrixSet)
Delete by tile matrix setGriddedCoverage
query(String tileMatrixSetName)
Query by table nameGriddedCoverage
query(TileMatrixSet tileMatrixSet)
Query by tile matrix set-
Methods inherited from class mil.nga.geopackage.db.GeoPackageDao
createDao, createDao, createDao, dropTable, getDatabase, isTable, isTableExists, isTableOrView, isView, setDatabase, tableExists, tableOrViewExists, verifyExists, viewExists
-
Methods inherited from class com.j256.ormlite.dao.BaseDaoImpl
assignEmptyForeignCollection, callBatchTasks, checkForInitialized, clearAllInternalObjectCaches, clearObjectCache, closeableIterator, closeLastIterator, commit, countOf, countOf, create, create, createIfNotExists, createObjectInstance, createOrUpdate, delete, delete, delete, deleteBuilder, deleteById, deleteIds, endThreadConnection, executeRaw, executeRawNoArgs, extractId, findForeignFieldType, getConnectionSource, getDataClass, getEmptyForeignCollection, getObjectCache, getRawRowMapper, getSelectStarRowMapper, getTableConfig, getTableInfo, getTableName, getWrappedIterable, getWrappedIterable, idExists, initialize, isAutoCommit, isUpdatable, iterator, iterator, iterator, iterator, mapSelectStarRow, notifyChanges, objectsEqual, objectToString, query, queryBuilder, queryForAll, queryForEq, queryForFieldValues, queryForFieldValuesArgs, queryForFirst, queryForFirst, queryForId, queryForMatching, queryForMatchingArgs, queryForSameId, queryRaw, queryRaw, queryRaw, queryRaw, queryRaw, queryRawValue, refresh, registerObserver, rollBack, setAutoCommit, setConnectionSource, setObjectCache, setObjectCache, setObjectFactory, setTableConfig, startThreadConnection, unregisterObserver, update, update, updateBuilder, updateId, updateRaw
-
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
-
GriddedCoverageDao
public GriddedCoverageDao(ConnectionSource connectionSource, Class<GriddedCoverage> dataClass) throws SQLException
Constructor, required by ORMLite- Parameters:
connectionSource
- connection sourcedataClass
- data class- Throws:
SQLException
- upon creation failure
-
-
Method Detail
-
create
public static GriddedCoverageDao create(GeoPackageCore geoPackage)
Create the DAO- Parameters:
geoPackage
- GeoPackage- Returns:
- dao
- Since:
- 4.0.0
-
create
public static GriddedCoverageDao create(GeoPackageCoreConnection db)
Create the DAO- Parameters:
db
- database connection- Returns:
- dao
- Since:
- 4.0.0
-
query
public GriddedCoverage query(TileMatrixSet tileMatrixSet)
Query by tile matrix set- Parameters:
tileMatrixSet
- tile matrix set- Returns:
- gridded coverage
-
query
public GriddedCoverage query(String tileMatrixSetName)
Query by table name- Parameters:
tileMatrixSetName
- tile matrix set name- Returns:
- gridded coverage
-
delete
public int delete(TileMatrixSet tileMatrixSet)
Delete by tile matrix set- Parameters:
tileMatrixSet
- tile matrix set- Returns:
- deleted count
-
delete
public int delete(String tableName)
Delete by table name- Parameters:
tableName
- table name- Returns:
- deleted count
-
-