Interface Predicate
- All Superinterfaces:
Sql
- All Known Implementing Classes:
And
,Eq
,ExistsSubquery
,Ge
,Gt
,In
,InSubquery
,IsNull
,Le
,Like
,Lt
,Not
,Or
Defines a restriction on the rows fetched by a SELECT or affected by an UPDATE or DELETE.
-
Method Summary
Modifier and TypeMethodDescriptiondefault OptionalPredicate
and
(OptionalPredicate optionalOther) Creates an optional compound predicate using the boolean operator AND on this predicate and the specified optional predicate.default Predicate
Creates a compound predicate using the boolean operator AND on this predicate and the specified predicate.negatedSql
(Context context) Formats negated predicate as an SQL fragment.default OptionalPredicate
or
(OptionalPredicate optionalOther) Creates an optional compound predicate using the boolean operator OR on this predicate and the specified optional predicate.default Predicate
Creates a compound predicate using the boolean operator OR on this predicate and the specified predicate.Methods inherited from interface io.github.torand.fastersql.sql.Sql
aliasRefs, columnRefs, params, sql
-
Method Details
-
negatedSql
Formats negated predicate as an SQL fragment.- Parameters:
context
- the context (incl. dialect).- Returns:
- the formatted SQL fragment.
-
or
Creates a compound predicate using the boolean operator OR on this predicate and the specified predicate.- Parameters:
other
- the other predicate.- Returns:
- the compound predicate.
-
or
Creates an optional compound predicate using the boolean operator OR on this predicate and the specified optional predicate.- Parameters:
optionalOther
- the other optional predicate- Returns:
- the optional compound predicate.
-
and
Creates a compound predicate using the boolean operator AND on this predicate and the specified predicate.- Parameters:
other
- the other predicate.- Returns:
- the compound predicate.
-
and
Creates an optional compound predicate using the boolean operator AND on this predicate and the specified optional predicate.- Parameters:
optionalOther
- the other optional predicate- Returns:
- the optional compound predicate.
-