Interface PredicateRepository


  • public interface PredicateRepository
    Repository for predicates handling
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long count()  
      void delete​(String value)  
      List<de.digitalcollections.model.relation.Predicate> getAll()
      Return all predicates
      de.digitalcollections.model.relation.Predicate getByValue​(String value)
      Returns a predicate, if available
      de.digitalcollections.model.relation.Predicate save​(de.digitalcollections.model.relation.Predicate predicate)
      Save a predicate.
    • Method Detail

      • count

        long count()
      • delete

        void delete​(String value)
      • getAll

        List<de.digitalcollections.model.relation.Predicate> getAll()
        Return all predicates
        Returns:
        List of all predicates
      • getByValue

        de.digitalcollections.model.relation.Predicate getByValue​(String value)
        Returns a predicate, if available
        Parameters:
        value - unique value of predicate, e.g. "is_part_of"
        Returns:
        Predicate or null
      • save

        de.digitalcollections.model.relation.Predicate save​(de.digitalcollections.model.relation.Predicate predicate)
        Save a predicate. Since its field value is its primary key, there's no difference, whether a predicate is created or updated.
        Parameters:
        predicate - the predicate to be saved
        Returns:
        the saved predicate with update timestamps