public class Exists extends SQLConstraint
Modifier | Constructor and Description |
---|---|
protected |
Exists(Mapping outerColumn,
Class<? extends SQLEntity> other,
Mapping innerColumn) |
Modifier and Type | Method and Description |
---|---|
void |
appendSQL(SmartQuery.Compiler compiler)
Generates the appropriate SQL into the given compiler
|
void |
asString(StringBuilder builder)
Creates a string representation of this constraint.
|
Exists |
where(SQLConstraint constraint)
Adds an additional constraint to further filter the entities which must or must not exist.
|
toString
public Exists where(SQLConstraint constraint)
constraint
- the constaint on the inner entity typepublic void appendSQL(SmartQuery.Compiler compiler)
SQLConstraint
appendSQL
in class SQLConstraint
compiler
- the current query compiler to apply the constraint topublic void asString(StringBuilder builder)
Constraint
asString
in class Constraint
builder
- the target to write the string representation toCopyright © 2018. All rights reserved.