private SqlPredicateFragment betweenStringHelper(
        final String cn,
        final FieldPredicate<?> model,
        final boolean negated
    ) {
        final Inclusion inclusion = getInclusionOperand(model);
        switch (inclusion) {
            case START_EXCLUSIVE_END_EXCLUSIVE:
                return predicate(model, negated, greaterThanString(cn), lessThanString(cn));
            case START_INCLUSIVE_END_EXCLUSIVE:
                return predicate(model, negated, greaterOrEqualString(cn), lessThanString(cn));
            case START_EXCLUSIVE_END_INCLUSIVE:
                return predicate(model, negated, greaterThanString(cn), lessOrEqualString(cn));
            case START_INCLUSIVE_END_INCLUSIVE:
                return predicate(model, negated, greaterOrEqualString(cn), lessOrEqualString(cn));
        }
        throw new IllegalArgumentException("Unknown Inclusion:" + inclusion);
    }
Created by fdirlikl on 11/18/2015.

@author Fatih Dirlikli
runtime-parent/runtime-connector-parent/postgres/src/main/java/com/speedment/runtime/connector/postgres/internal/PostgresSpeedmentPredicateView.java