Class IdentifierTypeRepositoryImpl
- java.lang.Object
-
- de.digitalcollections.cudami.server.backend.impl.database.AbstractPagingAndSortingRepositoryImpl
-
- de.digitalcollections.cudami.server.backend.impl.jdbi.JdbiRepositoryImpl
-
- de.digitalcollections.cudami.server.backend.impl.jdbi.identifiable.IdentifierTypeRepositoryImpl
-
- All Implemented Interfaces:
IdentifierTypeRepository
@Repository public class IdentifierTypeRepositoryImpl extends JdbiRepositoryImpl implements IdentifierTypeRepository
-
-
Field Summary
Fields Modifier and Type Field Description static StringMAPPING_PREFIXstatic StringTABLE_ALIASstatic StringTABLE_NAME-
Fields inherited from class de.digitalcollections.cudami.server.backend.impl.jdbi.JdbiRepositoryImpl
dbi, mappingPrefix, tableAlias, tableName
-
-
Constructor Summary
Constructors Constructor Description IdentifierTypeRepositoryImpl(org.jdbi.v3.core.Jdbi dbi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(List<UUID> uuids)de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.IdentifierType>find(de.digitalcollections.model.paging.PageRequest pageRequest)de.digitalcollections.model.identifiable.IdentifierTypefindOne(UUID uuid)de.digitalcollections.model.identifiable.IdentifierTypefindOneByNamespace(String namespace)protected List<String>getAllowedOrderByFields()protected StringgetColumnName(String modelProperty)protected StringgetUniqueField()de.digitalcollections.model.identifiable.IdentifierTypesave(de.digitalcollections.model.identifiable.IdentifierType identifierType)de.digitalcollections.model.identifiable.IdentifierTypeupdate(de.digitalcollections.model.identifiable.IdentifierType identifierType)-
Methods inherited from class de.digitalcollections.cudami.server.backend.impl.jdbi.JdbiRepositoryImpl
addFiltering, addFiltering, count, getFilterClauses, getMappingPrefix, getTableAlias, getTableName, getWhereClause, retrieveNextSortIndexForParentChildren
-
Methods inherited from class de.digitalcollections.cudami.server.backend.impl.database.AbstractPagingAndSortingRepositoryImpl
addLimit, addOffset, addOrderBy, addPageRequestParams, getOrderBy
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.digitalcollections.cudami.server.backend.api.repository.identifiable.IdentifierTypeRepository
count, delete
-
-
-
-
Field Detail
-
MAPPING_PREFIX
public static final String MAPPING_PREFIX
- See Also:
- Constant Field Values
-
TABLE_ALIAS
public static final String TABLE_ALIAS
- See Also:
- Constant Field Values
-
TABLE_NAME
public static final String TABLE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
delete
public void delete(List<UUID> uuids)
- Specified by:
deletein interfaceIdentifierTypeRepository
-
find
public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.IdentifierType> find(de.digitalcollections.model.paging.PageRequest pageRequest)
- Specified by:
findin interfaceIdentifierTypeRepository
-
findOne
public de.digitalcollections.model.identifiable.IdentifierType findOne(UUID uuid)
- Specified by:
findOnein interfaceIdentifierTypeRepository
-
findOneByNamespace
public de.digitalcollections.model.identifiable.IdentifierType findOneByNamespace(String namespace)
- Specified by:
findOneByNamespacein interfaceIdentifierTypeRepository
-
getAllowedOrderByFields
protected List<String> getAllowedOrderByFields()
- Specified by:
getAllowedOrderByFieldsin classAbstractPagingAndSortingRepositoryImpl- Returns:
- model properties names that are applicable for sorting, will be mapped to database column names using @see #getColumnName
-
getColumnName
protected String getColumnName(String modelProperty)
- Specified by:
getColumnNamein classAbstractPagingAndSortingRepositoryImpl- Parameters:
modelProperty- name of model property passed as String, e.g. "lastModified"- Returns:
- full qualified column name as used in sql queries ("last_modified" or e.g. "w.last_modified" if prefix used in queries)
-
getUniqueField
protected String getUniqueField()
- Specified by:
getUniqueFieldin classAbstractPagingAndSortingRepositoryImpl- Returns:
- name of model property that guarantees an unique sorting, e.g. a db primary key or another unique column/field
-
save
public de.digitalcollections.model.identifiable.IdentifierType save(de.digitalcollections.model.identifiable.IdentifierType identifierType)
- Specified by:
savein interfaceIdentifierTypeRepository
-
update
public de.digitalcollections.model.identifiable.IdentifierType update(de.digitalcollections.model.identifiable.IdentifierType identifierType)
- Specified by:
updatein interfaceIdentifierTypeRepository
-
-