Class FeatureTileLinkDao
- java.lang.Object
-
- com.j256.ormlite.dao.BaseDaoImpl<T,ID>
-
- mil.nga.geopackage.db.GeoPackageDao<FeatureTileLink,FeatureTileLinkKey>
-
- mil.nga.geopackage.extension.nga.link.FeatureTileLinkDao
-
- All Implemented Interfaces:
CloseableIterable<FeatureTileLink>,Dao<FeatureTileLink,FeatureTileLinkKey>,Iterable<FeatureTileLink>
public class FeatureTileLinkDao extends GeoPackageDao<FeatureTileLink,FeatureTileLinkKey>
Feature Tile Link Data Access Object- Since:
- 1.1.5
- 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 FeatureTileLinkDao(ConnectionSource connectionSource, Class<FeatureTileLink> dataClass)Constructor, required by ORMLite
-
Method Summary
-
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, deleteBuilder, endThreadConnection, executeRaw, executeRawNoArgs, findForeignFieldType, getConnectionSource, getDataClass, getEmptyForeignCollection, getObjectCache, getRawRowMapper, getSelectStarRowMapper, getTableConfig, getTableInfo, getTableName, getWrappedIterable, getWrappedIterable, initialize, isAutoCommit, isUpdatable, iterator, iterator, iterator, iterator, mapSelectStarRow, notifyChanges, objectsEqual, objectToString, query, queryBuilder, queryForAll, queryForEq, queryForFieldValues, queryForFieldValuesArgs, queryForFirst, queryForFirst, queryForMatching, queryForMatchingArgs, queryRaw, queryRaw, queryRaw, queryRaw, queryRaw, queryRawValue, refresh, registerObserver, rollBack, setAutoCommit, setConnectionSource, setObjectCache, setObjectCache, setObjectFactory, setTableConfig, startThreadConnection, unregisterObserver, update, updateBuilder, 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
-
FeatureTileLinkDao
public FeatureTileLinkDao(ConnectionSource connectionSource, Class<FeatureTileLink> dataClass) throws SQLException
Constructor, required by ORMLite- Parameters:
connectionSource- connection sourcedataClass- data class- Throws:
SQLException- upon failure
-
-
Method Detail
-
create
public static FeatureTileLinkDao create(GeoPackageCore geoPackage)
Create the DAO- Parameters:
geoPackage- GeoPackage- Returns:
- dao
- Since:
- 4.0.0
-
create
public static FeatureTileLinkDao create(GeoPackageCoreConnection db)
Create the DAO- Parameters:
db- database connection- Returns:
- dao
- Since:
- 4.0.0
-
queryForId
public FeatureTileLink queryForId(FeatureTileLinkKey key) throws SQLException
- Specified by:
queryForIdin interfaceDao<FeatureTileLink,FeatureTileLinkKey>- Overrides:
queryForIdin classBaseDaoImpl<FeatureTileLink,FeatureTileLinkKey>- Throws:
SQLException
-
extractId
public FeatureTileLinkKey extractId(FeatureTileLink data) throws SQLException
- Specified by:
extractIdin interfaceDao<FeatureTileLink,FeatureTileLinkKey>- Overrides:
extractIdin classBaseDaoImpl<FeatureTileLink,FeatureTileLinkKey>- Throws:
SQLException
-
idExists
public boolean idExists(FeatureTileLinkKey id) throws SQLException
- Specified by:
idExistsin interfaceDao<FeatureTileLink,FeatureTileLinkKey>- Overrides:
idExistsin classBaseDaoImpl<FeatureTileLink,FeatureTileLinkKey>- Throws:
SQLException
-
queryForSameId
public FeatureTileLink queryForSameId(FeatureTileLink data) throws SQLException
- Specified by:
queryForSameIdin interfaceDao<FeatureTileLink,FeatureTileLinkKey>- Overrides:
queryForSameIdin classBaseDaoImpl<FeatureTileLink,FeatureTileLinkKey>- Throws:
SQLException
-
updateId
public int updateId(FeatureTileLink data, FeatureTileLinkKey newId) throws SQLException
- Specified by:
updateIdin interfaceDao<FeatureTileLink,FeatureTileLinkKey>- Overrides:
updateIdin classBaseDaoImpl<FeatureTileLink,FeatureTileLinkKey>- Throws:
SQLException
-
delete
public int delete(FeatureTileLink data) throws SQLException
- Specified by:
deletein interfaceDao<FeatureTileLink,FeatureTileLinkKey>- Overrides:
deletein classBaseDaoImpl<FeatureTileLink,FeatureTileLinkKey>- Throws:
SQLException
-
deleteById
public int deleteById(FeatureTileLinkKey id) throws SQLException
- Specified by:
deleteByIdin interfaceDao<FeatureTileLink,FeatureTileLinkKey>- Overrides:
deleteByIdin classBaseDaoImpl<FeatureTileLink,FeatureTileLinkKey>- Throws:
SQLException
-
deleteIds
public int deleteIds(Collection<FeatureTileLinkKey> idCollection) throws SQLException
- Specified by:
deleteIdsin interfaceDao<FeatureTileLink,FeatureTileLinkKey>- Overrides:
deleteIdsin classBaseDaoImpl<FeatureTileLink,FeatureTileLinkKey>- Throws:
SQLException
-
update
public int update(FeatureTileLink data) throws SQLException
Update using the complex key
- Specified by:
updatein interfaceDao<FeatureTileLink,FeatureTileLinkKey>- Overrides:
updatein classBaseDaoImpl<FeatureTileLink,FeatureTileLinkKey>- Throws:
SQLException
-
queryForFeatureTableName
public List<FeatureTileLink> queryForFeatureTableName(String featureTableName)
Query by feature table name- Parameters:
featureTableName- feature table name- Returns:
- feature tile links
-
queryForTileTableName
public List<FeatureTileLink> queryForTileTableName(String tileTableName)
Query by tile table name- Parameters:
tileTableName- tile table name- Returns:
- feature tile links
-
deleteByTableName
public int deleteByTableName(String tableName) throws SQLException
Delete by table name, either feature or tile table name- Parameters:
tableName- table name, feature or tile- Returns:
- rows deleted
- Throws:
SQLException- upon failure
-
deleteAll
public int deleteAll() throws SQLExceptionDelete all feature tile links- Returns:
- rows deleted
- Throws:
SQLException- upon failure- Since:
- 1.1.5
-
-