-
- All Implemented Interfaces:
public class Constraint
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classConstraint.Binarypublic classConstraint.IsNullpublic classConstraint.IsNotNullpublic final classConstraint.Inpublic final classConstraint.NotInpublic final classConstraint.Between
-
Method Summary
Modifier and Type Method Description abstract <T extends Any> Tvisit(ConstraintVisitor<T> visitor)final ConstraintreplaceColumns(Map<String, String> columns)Allows creating a constraint which is made from the current one but with replaced column names (if any). -
-
Method Detail
-
visit
abstract <T extends Any> T visit(ConstraintVisitor<T> visitor)
-
replaceColumns
final Constraint replaceColumns(Map<String, String> columns)
Allows creating a constraint which is made from the current one but with replaced column names (if any).
For example, suppose that we have a constraint like
!= ainitially and call this method withmapOf("a" to "x"). Resulting constraint would be!= x
-
-
-
-