Interface LeftOperand
- All Superinterfaces:
Sql
- All Known Subinterfaces:
AggregateFunction,ColumnFunction,SingleRowFunction
- All Known Implementing Classes:
Abs,Avg,Cast,Ceil,Column,ColumnAlias,ColumnRef,Concat,Count,CountAll,Exp,Floor,Length,Ln,Lower,Max,Min,Power,Round,Sqrt,Substring,Sum,ToChar,ToNumber,Upper
Defines the left operand of an expression.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Predicatebetween(Expression lowerBound, Expression upperBound) Creates a 'between' predicate from this left operand and the specified lower and upper bound expressions.default PredicateCreates a 'between' predicate from this left operand and the specified lower and upper bound constant values.default Predicateeq(Expression expression) Creates an equivalence predicate from this left operand and the specified expression.default Predicateeq(SelectStatement query) Creates an equivalence predicate from this left operand and the specified subquery.default PredicateCreates an equivalence predicate from this left operand and the specified constant value.default OptionalPredicateCreates an optional equivalence predicate from this left operand and the specified optional value.default Predicatege(Expression expression) Creates a 'greater than or equal' predicate from this left operand and the specified expression.default Predicatege(SelectStatement query) Creates a 'greater than or equal' predicate from this left operand and the specified subquery.default PredicateCreates a 'greater than or equal' predicate from this left operand and the specified constant value.default OptionalPredicateCreates an optional 'greater than or equal' predicate from this left operand and the specified optional value.default Predicategt(Expression expression) Creates a 'greater than' predicate from this left operand and the specified expression.default Predicategt(SelectStatement query) Creates a 'greater than' predicate from this left operand and the specified subquery.default PredicateCreates a 'greater than' predicate from this left operand and the specified constant value.default OptionalPredicateCreates an optional 'greater than' predicate from this left operand and the specified optional value.default Predicatein(SelectStatement query) Creates a 'member of set' predicate from this left operand and the specified subquery.default PredicateCreates a 'member of set' predicate from this left operand and the specified array of constant values.default Predicatein(Collection<?> values) Creates a 'member of set' predicate from this left operand and the specified collection of constant values.default OptionalPredicatein(Optional<? extends Collection<?>> values) Creates an optional 'member of set' predicate from this left operand and the specified optional collection of constant values.default PredicateCreates an 'is not null' predicate from this left operand.default PredicateisNull()Creates an 'is null' predicate from this left operand.default Predicatele(Expression expression) Creates a 'less than or equal' predicate from this left operand and the specified expression.default Predicatele(SelectStatement query) Creates a 'less than or equal' predicate from this left operand and the specified subquery.default PredicateCreates a 'less than or equal' predicate from this left operand and the specified constant value.default OptionalPredicateCreates an optional 'less than or equal' predicate from this left operand and the specified optional value.default PredicateCreates a pattern matching predicate from this left operand and the specified string pattern.default OptionalPredicateCreates an optional pattern matching predicate from this left operand and the specified optional string pattern.default Predicatelt(Expression expression) Creates a 'less than' predicate from this left operand and the specified expression.default Predicatelt(SelectStatement query) Creates a 'less than' predicate from this left operand and the specified subquery.default PredicateCreates a 'less than' predicate from this left operand and the specified constant value.default OptionalPredicateCreates an optional 'less than' predicate from this left operand and the specified optional value.default Predicatene(Expression expression) Creates a non-equivalence predicate from this left operand and the specified expression.default Predicatene(SelectStatement query) Creates a non-equivalence predicate from this left operand and the specified subquery.default PredicateCreates a non-equivalence predicate from this left operand and the specified constant value.default OptionalPredicateCreates an optional non-equivalence predicate from this left operand and the specified optional value.default PredicatenotBetween(Expression lowerBound, Expression upperBound) Creates a 'not between' predicate from this left operand and the specified lower and upper bound expressions.default PredicatenotBetween(Object lowerBound, Object upperBound) Creates a 'not between' predicate from this left operand and the specified lower and upper bound constant values.default PredicatenotIn(SelectStatement query) Creates a 'not member of set' predicate from this left operand and the specified subquery.default PredicateCreates a 'not member of set' predicate from this left operand and the specified array of constant values.default PredicatenotIn(Collection<?> values) Creates a 'not member of set' predicate from this left operand and the specified collection of constant values.default PredicateCreates a negated pattern matching predicate from this left operand and the specified string pattern.Methods inherited from interface io.github.torand.fastersql.sql.Sql
aliasRefs, columnRefs, params, sql
-
Method Details
-
eq
Creates an equivalence predicate from this left operand and the specified constant value.- Parameters:
value- the constant value.- Returns:
- the predicate.
-
eq
Creates an optional equivalence predicate from this left operand and the specified optional value.- Parameters:
value- the optional value.- Returns:
- the optional predicate.
-
eq
Creates an equivalence predicate from this left operand and the specified expression.- Parameters:
expression- the expression.- Returns:
- the predicate.
-
eq
Creates an equivalence predicate from this left operand and the specified subquery.- Parameters:
query- the subquery.- Returns:
- the predicate.
-
ne
Creates a non-equivalence predicate from this left operand and the specified constant value.- Parameters:
value- the constant value.- Returns:
- the predicate.
-
ne
Creates an optional non-equivalence predicate from this left operand and the specified optional value.- Parameters:
value- the optional value.- Returns:
- the optional predicate.
-
ne
Creates a non-equivalence predicate from this left operand and the specified expression.- Parameters:
expression- the expression.- Returns:
- the predicate.
-
ne
Creates a non-equivalence predicate from this left operand and the specified subquery.- Parameters:
query- the subquery.- Returns:
- the predicate.
-
lt
Creates a 'less than' predicate from this left operand and the specified constant value.- Parameters:
value- the constant value.- Returns:
- the predicate.
-
lt
Creates an optional 'less than' predicate from this left operand and the specified optional value.- Parameters:
value- the optional value.- Returns:
- the optional predicate.
-
lt
Creates a 'less than' predicate from this left operand and the specified expression.- Parameters:
expression- the expression.- Returns:
- the predicate.
-
lt
Creates a 'less than' predicate from this left operand and the specified subquery.- Parameters:
query- the subquery.- Returns:
- the predicate.
-
le
Creates a 'less than or equal' predicate from this left operand and the specified constant value.- Parameters:
value- the constant value.- Returns:
- the predicate.
-
le
Creates an optional 'less than or equal' predicate from this left operand and the specified optional value.- Parameters:
value- the optional value.- Returns:
- the optional predicate.
-
le
Creates a 'less than or equal' predicate from this left operand and the specified expression.- Parameters:
expression- the expression.- Returns:
- the predicate.
-
le
Creates a 'less than or equal' predicate from this left operand and the specified subquery.- Parameters:
query- the subquery.- Returns:
- the predicate.
-
gt
Creates a 'greater than' predicate from this left operand and the specified constant value.- Parameters:
value- the constant value.- Returns:
- the predicate.
-
gt
Creates an optional 'greater than' predicate from this left operand and the specified optional value.- Parameters:
value- the optional value.- Returns:
- the optional predicate.
-
gt
Creates a 'greater than' predicate from this left operand and the specified expression.- Parameters:
expression- the expression.- Returns:
- the predicate.
-
gt
Creates a 'greater than' predicate from this left operand and the specified subquery.- Parameters:
query- the subquery.- Returns:
- the predicate.
-
ge
Creates a 'greater than or equal' predicate from this left operand and the specified constant value.- Parameters:
value- the constant value.- Returns:
- the predicate.
-
ge
Creates an optional 'greater than or equal' predicate from this left operand and the specified optional value.- Parameters:
value- the optional value.- Returns:
- the optional predicate.
-
ge
Creates a 'greater than or equal' predicate from this left operand and the specified expression.- Parameters:
expression- the expression.- Returns:
- the predicate.
-
ge
Creates a 'greater than or equal' predicate from this left operand and the specified subquery.- Parameters:
query- the subquery.- Returns:
- the predicate.
-
between
Creates a 'between' predicate from this left operand and the specified lower and upper bound constant values.- Parameters:
lowerBound- the lower bound constant value.upperBound- the upper bound constant value.- Returns:
- the predicate.
-
between
Creates a 'between' predicate from this left operand and the specified lower and upper bound expressions.- Parameters:
lowerBound- the lower bound expression.upperBound- the upper bound expression.- Returns:
- the predicate.
-
notBetween
Creates a 'not between' predicate from this left operand and the specified lower and upper bound constant values.- Parameters:
lowerBound- the lower bound constant value.upperBound- the upper bound constant value.- Returns:
- the predicate.
-
notBetween
Creates a 'not between' predicate from this left operand and the specified lower and upper bound expressions.- Parameters:
lowerBound- the lower bound expression.upperBound- the upper bound expression.- Returns:
- the predicate.
-
in
Creates a 'member of set' predicate from this left operand and the specified array of constant values.- Parameters:
values- the constant values.- Returns:
- the predicate.
-
in
Creates a 'member of set' predicate from this left operand and the specified collection of constant values.- Parameters:
values- the constant values.- Returns:
- the predicate.
-
in
Creates an optional 'member of set' predicate from this left operand and the specified optional collection of constant values.- Parameters:
values- the optional constant values.- Returns:
- the optional predicate.
-
in
Creates a 'member of set' predicate from this left operand and the specified subquery.- Parameters:
query- the subquery.- Returns:
- the predicate.
-
notIn
Creates a 'not member of set' predicate from this left operand and the specified array of constant values.- Parameters:
values- the constant values.- Returns:
- the predicate.
-
notIn
Creates a 'not member of set' predicate from this left operand and the specified collection of constant values.- Parameters:
values- the constant values.- Returns:
- the predicate.
-
notIn
Creates a 'not member of set' predicate from this left operand and the specified subquery.- Parameters:
query- the subquery.- Returns:
- the predicate.
-
like
Creates a pattern matching predicate from this left operand and the specified string pattern.- Parameters:
pattern- the string pattern.- Returns:
- the predicate.
-
like
Creates an optional pattern matching predicate from this left operand and the specified optional string pattern.- Parameters:
pattern- the optional string pattern.- Returns:
- the optional predicate.
-
notLike
Creates a negated pattern matching predicate from this left operand and the specified string pattern.- Parameters:
pattern- the string pattern.- Returns:
- the predicate.
-
isNull
Creates an 'is null' predicate from this left operand.- Returns:
- the predicate.
-
isNotNull
Creates an 'is not null' predicate from this left operand.- Returns:
- the predicate.
-