org.apache.ws.jaxme.sqls.impl
Class BooleanConstraintImpl

java.lang.Object
  extended by org.apache.ws.jaxme.sqls.impl.PartsImpl
      extended by org.apache.ws.jaxme.sqls.impl.BooleanConstraintImpl
All Implemented Interfaces:
BooleanConstraint, Constraint, Parts

public class BooleanConstraintImpl
extends PartsImpl
implements BooleanConstraint

Author:
Jochen Wiedmann

Nested Class Summary
static class BooleanConstraintImpl.TypeImpl
          Default implementation of BooleanConstraint.Type.
 
Nested classes/interfaces inherited from interface org.apache.ws.jaxme.sqls.BooleanConstraint
BooleanConstraint.Type
 
Constructor Summary
protected BooleanConstraintImpl(CombinedConstraint pCombinedConstraint, BooleanConstraint.Type pType)
           
 
Method Summary
protected  void add(java.lang.Object pPart)
           
 ConstrainedStatement getConstrainedStatement()
          Returns the enclosing ConstrainedStatement.
 int getMaximumParts()
          Returns the maximum number of parts.
 int getMinimumParts()
          Returns the minimum number of parts.
 BooleanConstraint.Type getType()
          Returns the boolean constraints type.
 
Methods inherited from class org.apache.ws.jaxme.sqls.impl.PartsImpl
addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPlaceholder, addRawSQLPart, createDIFFERENCE, createPRODUCT, createQUOTIENT, createSUM, getNumParts, getParts, getStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ws.jaxme.sqls.Parts
addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPlaceholder, addRawSQLPart, createDIFFERENCE, createPRODUCT, createQUOTIENT, createSUM, getNumParts, getParts
 

Constructor Detail

BooleanConstraintImpl

protected BooleanConstraintImpl(CombinedConstraint pCombinedConstraint,
                                BooleanConstraint.Type pType)
Method Detail

getType

public BooleanConstraint.Type getType()
Description copied from interface: BooleanConstraint

Returns the boolean constraints type.

Specified by:
getType in interface BooleanConstraint

add

protected void add(java.lang.Object pPart)
Overrides:
add in class PartsImpl

getConstrainedStatement

public ConstrainedStatement getConstrainedStatement()
Description copied from interface: Constraint

Returns the enclosing ConstrainedStatement.

Specified by:
getConstrainedStatement in interface Constraint

getMinimumParts

public int getMinimumParts()
Description copied from interface: Parts
Returns the minimum number of parts.

Specified by:
getMinimumParts in interface Parts

getMaximumParts

public int getMaximumParts()
Description copied from interface: Parts
Returns the maximum number of parts. Zero indicates unlimited.

Specified by:
getMaximumParts in interface Parts