return new AndNode(this);
}
@Override
public Predicate getPredicate(QueryDomainType<?> queryDomainType) {
Predicate result = null;
PredicateNode leftNode = getLeftPredicateNode();
PredicateNode rightNode = getRightPredicateNode();
Predicate leftPredicate = leftNode.getPredicate(queryDomainType);
Predicate rightPredicate = rightNode.getPredicate(queryDomainType);
result = leftPredicate.and(rightPredicate);
setNumberOfParameters(leftNode.getNumberOfParameters() + rightNode.getNumberOfParameters());
return result;
}