/** * {@inheritDoc} * <p> * When constructor with map is used it returns null. */ @Override public ConditionType getConditionType() { if (scts.size() > 1) { return joiningType; } return scts.get(0).getStatement().getCondition(); }
/** * {@inheritDoc} * <p> * When constructor with map is used it returns null. */ @Override public ConditionType getConditionType() { if (scts.size() > 1) { return joiningType; } return scts.get(0).getStatement().getCondition(); }
/** * {@inheritDoc} * <p> * When constructor with map is used it returns null. */ public ConditionType getConditionType() { if (scts.size() > 1) { return joiningType; } else { return scts.get(0).getStatement().getCondition(); } }
private Predicate buildPredicate(PrimitiveStatement ps) { String name = ps.getProperty(); Object propertyValue = ps.getValue(); validatePropertyValue(name, propertyValue); name = super.getRealPropertyName(name); ClassValue cv = getPrimitiveFieldClass(ps, name, ps.getValue().getClass(), ps.getValueType(), propertyValue); CollectionCheckInfo collInfo = cv.getCollectionCheckInfo(); Path<?> path = getPath(root, name, cv, collInfo); return collInfo == null ? doBuildPredicate(ps.getCondition(), path, cv.getCls(), cv.getValue()) : doBuildCollectionPredicate(ps.getCondition(), path, collInfo); }
private Predicate buildPredicate(PrimitiveStatement ps) { String name = ps.getProperty(); Object propertyValue = ps.getValue(); validatePropertyValue(name, propertyValue); name = super.getRealPropertyName(name); ClassValue cv = getPrimitiveFieldClass(ps, name, ps.getValue().getClass(), ps.getValueType(), propertyValue); CollectionCheckInfo collInfo = cv.getCollectionCheckInfo(); Path<?> path = getPath(root, name, cv, collInfo); Predicate pred = collInfo == null ? doBuildPredicate(ps.getCondition(), path, cv.getCls(), cv.getValue()) : doBuildCollectionPredicate(ps.getCondition(), path, collInfo); return pred; }
private Predicate buildPredicate(PrimitiveStatement ps) { String name = ps.getProperty(); Object propertyValue = ps.getValue(); validatePropertyValue(name, propertyValue); name = super.getRealPropertyName(name); ClassValue cv = getPrimitiveFieldClass(ps, name, ps.getValue().getClass(), ps.getValueType(), propertyValue); CollectionCheckInfo collInfo = cv.getCollectionCheckInfo(); Path<?> path = getPath(root, name, cv, collInfo); return collInfo == null ? doBuildPredicate(ps.getCondition(), path, cv.getCls(), cv.getValue()) : doBuildCollectionPredicate(ps.getCondition(), path, collInfo); }