public class ContentsDao extends BaseDaoImpl<Contents,String>
Dao.CreateOrUpdateStatus, Dao.DaoObserverconnectionSource, databaseType, dataClass, lastIterator, objectFactory, statementExecutor, tableConfig, tableInfo| Constructor and Description |
|---|
ContentsDao(ConnectionSource connectionSource,
Class<Contents> dataClass)
Constructor, required by ORMLite
|
| Modifier and Type | Method and Description |
|---|---|
int |
create(Contents contents)
Verify optional tables have been created
|
Contents |
createIfNotExists(Contents contents)
Verify optional tables have been created
|
Dao.CreateOrUpdateStatus |
createOrUpdate(Contents contents)
Verify optional tables have been created
|
int |
deleteByIdCascade(String id)
Delete a Contents by id, cascading
|
int |
deleteByIdCascade(String id,
boolean userTable)
Delete a Contents by id, cascading optionally including the user table
|
int |
deleteCascade(Collection<Contents> contentsCollection)
Delete the collection of Contents, cascading
|
int |
deleteCascade(Collection<Contents> contentsCollection,
boolean userTable)
Delete the collection of Contents, cascading optionally including the
user table
|
int |
deleteCascade(Contents contents)
Delete the Contents, cascading
|
int |
deleteCascade(Contents contents,
boolean userTable)
Delete the Contents, cascading optionally including the user table
|
int |
deleteCascade(PreparedQuery<Contents> preparedDelete)
Delete the Contents matching the prepared query, cascading
|
int |
deleteCascade(PreparedQuery<Contents> preparedDelete,
boolean userTable)
Delete the Contents matching the prepared query, cascading optionally
including the user table
|
int |
deleteIdsCascade(Collection<String> idCollection)
Delete the Contents with the provided ids, cascading
|
int |
deleteIdsCascade(Collection<String> idCollection,
boolean userTable)
Delete the Contents with the provided ids, cascading optionally including
the user table
|
void |
deleteTable(String table)
Delete the table
|
List<Contents> |
getContents(ContentsDataType dataType)
Get contents by data type
|
List<String> |
getTables()
Get table names
|
List<String> |
getTables(ContentsDataType dataType)
Get table names by data type
|
void |
setDatabase(GeoPackageCoreConnection db)
Set the database
|
assignEmptyForeignCollection, callBatchTasks, checkForInitialized, clearAllInternalObjectCaches, clearObjectCache, closeableIterator, closeLastIterator, commit, countOf, countOf, create, delete, delete, delete, deleteBuilder, deleteById, deleteIds, endThreadConnection, executeRaw, executeRawNoArgs, extractId, findForeignFieldType, getConnectionSource, getDataClass, getEmptyForeignCollection, getObjectCache, getObjectFactory, getRawRowMapper, getSelectStarRowMapper, getTableConfig, getTableInfo, getTableName, getWrappedIterable, getWrappedIterable, idExists, initialize, isAutoCommit, isTableExists, isUpdatable, iterator, iterator, iterator, iterator, mapSelectStarRow, notifyChanges, objectsEqual, objectToString, query, queryBuilder, queryForAll, queryForEq, queryForFieldValues, queryForFieldValuesArgs, 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, updateRawclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ContentsDao(ConnectionSource connectionSource, Class<Contents> dataClass) throws SQLException
connectionSource - dataClass - SQLExceptionpublic void setDatabase(GeoPackageCoreConnection db)
db - public int create(Contents contents) throws SQLException
create in interface Dao<Contents,String>create in class BaseDaoImpl<Contents,String>SQLExceptionpublic Contents createIfNotExists(Contents contents) throws SQLException
createIfNotExists in interface Dao<Contents,String>createIfNotExists in class BaseDaoImpl<Contents,String>SQLExceptionpublic Dao.CreateOrUpdateStatus createOrUpdate(Contents contents) throws SQLException
createOrUpdate in interface Dao<Contents,String>createOrUpdate in class BaseDaoImpl<Contents,String>SQLExceptionpublic List<String> getTables(ContentsDataType dataType) throws SQLException
dataType - data typeSQLExceptionpublic List<Contents> getContents(ContentsDataType dataType) throws SQLException
dataType - data typeSQLExceptionpublic List<String> getTables() throws SQLException
SQLExceptionpublic int deleteCascade(Contents contents) throws SQLException
contents - contentsSQLExceptionpublic int deleteCascade(Contents contents, boolean userTable) throws SQLException
contents - contentsuserTable - true if a user tableSQLExceptionpublic int deleteCascade(Collection<Contents> contentsCollection) throws SQLException
contentsCollection - contents collectionSQLExceptionpublic int deleteCascade(Collection<Contents> contentsCollection, boolean userTable) throws SQLException
contentsCollection - contents collectionuserTable - true if a user tableSQLExceptionpublic int deleteCascade(PreparedQuery<Contents> preparedDelete) throws SQLException
preparedDelete - prepared delete querySQLExceptionpublic int deleteCascade(PreparedQuery<Contents> preparedDelete, boolean userTable) throws SQLException
preparedDelete - prepared delete queryuserTable - true if a user tableSQLExceptionpublic int deleteByIdCascade(String id) throws SQLException
id - idSQLExceptionpublic int deleteByIdCascade(String id, boolean userTable) throws SQLException
id - iduserTable - true if a user tableSQLExceptionpublic int deleteIdsCascade(Collection<String> idCollection) throws SQLException
idCollection - id collectionSQLExceptionpublic int deleteIdsCascade(Collection<String> idCollection, boolean userTable) throws SQLException
idCollection - id collectionuserTable - true if a user tableSQLExceptionpublic void deleteTable(String table)
table - table nameCopyright © 2018 National Geospatial-Intelligence Agency. All rights reserved.