public class MetadataReferenceDao extends BaseDaoImpl<MetadataReference,Void>
Dao.CreateOrUpdateStatus, Dao.DaoObserverconnectionSource, databaseType, dataClass, lastIterator, objectFactory, statementExecutor, tableConfig, tableInfo| Constructor and Description |
|---|
MetadataReferenceDao(ConnectionSource connectionSource,
Class<MetadataReference> dataClass)
Constructor, required by ORMLite
|
| Modifier and Type | Method and Description |
|---|---|
int |
delete(MetadataReference metadataReference)
Delete using the foreign key columns
|
int |
deleteByMetadata(long fileId)
Delete metadata references with foreign keys to the metadata file id
|
int |
deleteByTableName(String tableName)
Delete by table name
|
List<MetadataReference> |
queryByMetadata(long fileId)
Query by the metadata ids
|
List<MetadataReference> |
queryByMetadata(long fileId,
Long parentId)
Query by the metadata ids
|
List<MetadataReference> |
queryByMetadataParent(long parentId)
Query by the metadata parent ids
|
List<MetadataReference> |
queryByTable(String tableName)
Query by table name
|
int |
removeMetadataParent(long parentId)
Remove metadata references (by updating the field to null) with foreign
keys to the metadata parent id
|
int |
update(MetadataReference metadataReference)
Update using the foreign key columns
|
assignEmptyForeignCollection, callBatchTasks, checkForInitialized, clearAllInternalObjectCaches, clearObjectCache, closeableIterator, closeLastIterator, commit, countOf, countOf, create, create, createIfNotExists, createOrUpdate, 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, updateBuilder, updateId, updateRawclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic MetadataReferenceDao(ConnectionSource connectionSource, Class<MetadataReference> dataClass) throws SQLException
connectionSource - connectiondataClass - data classSQLException - upon failurepublic int update(MetadataReference metadataReference) throws SQLException
update in interface Dao<MetadataReference,Void>update in class BaseDaoImpl<MetadataReference,Void>SQLExceptionpublic int delete(MetadataReference metadataReference) throws SQLException
delete in interface Dao<MetadataReference,Void>delete in class BaseDaoImpl<MetadataReference,Void>SQLExceptionpublic int deleteByMetadata(long fileId)
throws SQLException
fileId - file idSQLException - upon failurepublic int removeMetadataParent(long parentId)
throws SQLException
parentId - parent idSQLException - upon failurepublic List<MetadataReference> queryByMetadata(long fileId, Long parentId) throws SQLException
fileId - file idparentId - parent idSQLException - upon failurepublic List<MetadataReference> queryByMetadata(long fileId) throws SQLException
fileId - file idSQLException - upon failurepublic List<MetadataReference> queryByMetadataParent(long parentId) throws SQLException
parentId - parent idSQLException - upon failurepublic List<MetadataReference> queryByTable(String tableName) throws SQLException
tableName - table nameSQLException - upon failurepublic int deleteByTableName(String tableName) throws SQLException
tableName - table nameSQLException - upon failureCopyright © 2019 National Geospatial-Intelligence Agency. All rights reserved.