Class BooleanConstraintImpl
java.lang.Object
de.businesscode.bcdui.binding.rel.impl.AbstractConstrain
de.businesscode.bcdui.binding.rel.impl.BooleanConstraintImpl
- Direct Known Subclasses:
IsLikeConstraintImpl
The class represents boolean SQL constraints, like IS NULL or IS NOT NULL
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class de.businesscode.bcdui.binding.rel.impl.AbstractConstrain
AbstractConstrain.Type
-
Field Summary
Fields inherited from class de.businesscode.bcdui.binding.rel.impl.AbstractConstrain
MAINTABLE_SQLALIAS_PATTERN, MAINTABLE_SQLALIAS_PLACEHOLDER, OPER_REPL, REGEXP_OPER_REPL
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanConstraintImpl
(AbstractConstrain.Type pType, boolean negate) BooleanConstraintImpl -
Method Summary
Modifier and TypeMethodDescriptiongetConstrainedStatement
(String mainTableAlias, boolean isForJoinToCaseWhen) builds and returns full SQL statement of the constraint Method getConstrainedStatementint
Method getMinimumPartsprotected String
translates type to SQL string Method getOperatorboolean
if the constraint may contain child constraintMethods inherited from class de.businesscode.bcdui.binding.rel.impl.AbstractConstrain
addChildConstraint, addColumn, getChildConstraints, getColumns, getName, getNumParts, getStatement, getType, insertMainTableAlias, isNegate, setNegate, setStatement, setType, toString
-
Constructor Details
-
BooleanConstraintImpl
BooleanConstraintImpl- Parameters:
pType
-negate
-
-
-
Method Details
-
getOperator
translates type to SQL string Method getOperator- Returns:
- Throws:
BindingException
-
getConstrainedStatement
public String getConstrainedStatement(String mainTableAlias, boolean isForJoinToCaseWhen) throws BindingException Description copied from class:AbstractConstrain
builds and returns full SQL statement of the constraint Method getConstrainedStatement- Specified by:
getConstrainedStatement
in classAbstractConstrain
- Returns:
- Throws:
BindingNotFoundException
BindingException
- See Also:
-
de.businesscode.bcdui.binding.rel.impl.AbstractConstrain#getConstrainedStatement(String,String,String)
-
getMinimumParts
public int getMinimumParts()Method getMinimumParts- Returns:
-
mayContainChildConstraint
public boolean mayContainChildConstraint()Description copied from class:AbstractConstrain
if the constraint may contain child constraint- Specified by:
mayContainChildConstraint
in classAbstractConstrain
- See Also:
-