[New] Add non-bagId overrides in SearchExpressions

This commit is contained in:
Robert von Burg 2020-10-08 10:18:10 +02:00
parent 2da3866f67
commit 428ae62ff9
1 changed files with 17 additions and 0 deletions

View File

@ -65,11 +65,19 @@ public interface SearchExpressions {
return ExpressionsSupport.param(bagId, paramId);
}
default <T extends StrolchRootElement> SearchExpression<T> param(String paramId, SearchPredicate predicate) {
return ExpressionsSupport.param(BAG_PARAMETERS, paramId, predicate);
}
default <T extends StrolchRootElement> SearchExpression<T> param(String bagId, String paramId,
SearchPredicate predicate) {
return ExpressionsSupport.param(bagId, paramId, predicate);
}
default <T extends StrolchRootElement> SearchExpression<T> paramNull(String paramId) {
return ExpressionsSupport.paramNull(BAG_PARAMETERS, paramId);
}
default <T extends StrolchRootElement> SearchExpression<T> paramNull(String bagId, String paramId) {
return ExpressionsSupport.paramNull(bagId, paramId);
}
@ -83,11 +91,20 @@ public interface SearchExpressions {
return ExpressionsSupport.relationName(tx, relationParamId, predicate);
}
default ExpressionBuilder relationParam(StrolchTransaction tx, String relationParamId, String paramId) {
return ExpressionsSupport.relationParam(tx, relationParamId, BAG_PARAMETERS, paramId);
}
default ExpressionBuilder relationParam(StrolchTransaction tx, String relationParamId, String bagId,
String paramId) {
return ExpressionsSupport.relationParam(tx, relationParamId, bagId, paramId);
}
default <T extends StrolchRootElement> SearchExpression<T> relationParam(StrolchTransaction tx,
String relationParamId, String paramId, SearchPredicate predicate) {
return ExpressionsSupport.relationParam(tx, relationParamId, BAG_PARAMETERS, paramId, predicate);
}
default <T extends StrolchRootElement> SearchExpression<T> relationParam(StrolchTransaction tx,
String relationParamId, String bagId, String paramId, SearchPredicate predicate) {
return ExpressionsSupport.relationParam(tx, relationParamId, bagId, paramId, predicate);