Interface PredicateRepository
-
public interface PredicateRepositoryRepository for predicates handling
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcount()voiddelete(String value)List<de.digitalcollections.model.relation.Predicate>getAll()Return all predicatesde.digitalcollections.model.relation.PredicategetByValue(String value)Returns a predicate, if availablede.digitalcollections.model.relation.Predicatesave(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 fieldvalueis 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
-
-