Class BooleanConstraintImpl
- java.lang.Object
-
- de.businesscode.bcdui.binding.rel.impl.AbstractConstrain
-
- de.businesscode.bcdui.binding.rel.impl.BooleanConstraintImpl
-
- Direct Known Subclasses:
IsLikeConstraintImpl
public class BooleanConstraintImpl extends AbstractConstrain
The class represents boolean SQL constraints, like IS NULL or IS NOT NULL
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BooleanConstraintImpl.BooleanConstraint
-
Nested 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
Constructors Constructor Description BooleanConstraintImpl(AbstractConstrain.Type pType, boolean negate)
BooleanConstraintImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getConstrainedStatement(java.lang.String mainTableAlias, boolean isForJoinToCaseWhen)
builds and returns full SQL statement of the constraint Method getConstrainedStatementint
getMinimumParts()
Method getMinimumPartsprotected java.lang.String
getOperator()
translates type to SQL string Method getOperatorboolean
mayContainChildConstraint()
if the constraint may contain child constraint-
Methods 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 Detail
-
BooleanConstraintImpl
public BooleanConstraintImpl(AbstractConstrain.Type pType, boolean negate)
BooleanConstraintImpl- Parameters:
pType
-negate
-
-
-
Method Detail
-
getOperator
protected java.lang.String getOperator() throws BindingException
translates type to SQL string Method getOperator- Returns:
- Throws:
BindingException
-
getConstrainedStatement
public java.lang.String getConstrainedStatement(java.lang.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:
AbstractConstrain.mayContainChildConstraint()
-
-