Class JdbiRepositoryImpl
- java.lang.Object
-
- de.digitalcollections.cudami.server.backend.impl.database.AbstractPagingAndSortingRepositoryImpl
-
- de.digitalcollections.cudami.server.backend.impl.jdbi.JdbiRepositoryImpl
-
- Direct Known Subclasses:
EntityRelationRepositoryImpl,HeadwordRepositoryImpl,IdentifiableRepositoryImpl,IdentifierRepositoryImpl,IdentifierTypeRepositoryImpl,PredicateRepositoryImpl,UrlAliasRepositoryImpl,UserRepositoryImpl,VersionRepositoryImpl
public abstract class JdbiRepositoryImpl extends AbstractPagingAndSortingRepositoryImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jdbi.v3.core.Jdbidbiprotected StringmappingPrefixprotected StringtableAliasprotected StringtableName
-
Constructor Summary
Constructors Constructor Description JdbiRepositoryImpl(org.jdbi.v3.core.Jdbi dbi, String tableName, String tableAlias, String mappingPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFiltering(de.digitalcollections.model.filter.Filtering filtering, StringBuilder sqlQuery, Map<String,Object> argumentMappings)voidaddFiltering(de.digitalcollections.model.paging.PageRequest pageRequest, StringBuilder sqlQuery, Map<String,Object> argumentMappings)longcount()protected StringgetFilterClauses(de.digitalcollections.model.filter.Filtering filtering, Map<String,Object> argumentMappings)StringgetMappingPrefix()StringgetTableAlias()StringgetTableName()protected StringgetWhereClause(de.digitalcollections.model.filter.FilterCriterion<?> fc, Map<String,Object> argumentMappings, int criterionCount)protected IntegerretrieveNextSortIndexForParentChildren(org.jdbi.v3.core.Jdbi dbi, String tableName, String columNameParentUuid, UUID parentUuid)-
Methods inherited from class de.digitalcollections.cudami.server.backend.impl.database.AbstractPagingAndSortingRepositoryImpl
addLimit, addOffset, addOrderBy, addPageRequestParams, getAllowedOrderByFields, getColumnName, getOrderBy
-
-
-
-
Method Detail
-
addFiltering
public void addFiltering(de.digitalcollections.model.paging.PageRequest pageRequest, StringBuilder sqlQuery, Map<String,Object> argumentMappings)
-
addFiltering
public void addFiltering(de.digitalcollections.model.filter.Filtering filtering, StringBuilder sqlQuery, Map<String,Object> argumentMappings)
-
count
public long count()
-
getFilterClauses
protected String getFilterClauses(de.digitalcollections.model.filter.Filtering filtering, Map<String,Object> argumentMappings)
-
getMappingPrefix
public String getMappingPrefix()
-
getTableAlias
public String getTableAlias()
-
getTableName
public String getTableName()
-
getWhereClause
protected String getWhereClause(de.digitalcollections.model.filter.FilterCriterion<?> fc, Map<String,Object> argumentMappings, int criterionCount) throws IllegalArgumentException, UnsupportedOperationException
-
-