java.lang.Object
All Implemented Interfaces:
PredicateRepository

@Repository
public class PredicateRepositoryImpl
extends JdbiRepositoryImpl
implements PredicateRepository
  • Field Details

  • Constructor Details

    • PredicateRepositoryImpl

      @Autowired public PredicateRepositoryImpl​(org.jdbi.v3.core.Jdbi dbi)
  • Method Details

    • delete

      public void delete​(java.lang.String value)
      Specified by:
      delete in interface PredicateRepository
    • findAll

      public java.util.List<de.digitalcollections.model.api.identifiable.entity.relation.Predicate> findAll()
      Specified by:
      findAll in interface PredicateRepository
    • findOneByValue

      public de.digitalcollections.model.api.identifiable.entity.relation.Predicate findOneByValue​(java.lang.String value)
      Specified by:
      findOneByValue in interface PredicateRepository
    • getAllowedOrderByFields

      protected java.util.List<java.lang.String> getAllowedOrderByFields()
      Specified by:
      getAllowedOrderByFields in class AbstractPagingAndSortingRepositoryImpl
      Returns:
      model properties names that are applicable for sorting, will be mapped to database column names using @see #getColumnName
    • getColumnName

      protected java.lang.String getColumnName​(java.lang.String modelProperty)
      Specified by:
      getColumnName in class AbstractPagingAndSortingRepositoryImpl
      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)
    • save

      public de.digitalcollections.model.api.identifiable.entity.relation.Predicate save​(de.digitalcollections.model.api.identifiable.entity.relation.Predicate predicate)
      Specified by:
      save in interface PredicateRepository