net.sf.jaxme.sqls.impl
Class BooleanConstraintImpl

java.lang.Object
  extended bynet.sf.jaxme.sqls.impl.ConstraintImpl
      extended bynet.sf.jaxme.sqls.impl.BooleanConstraintImpl
All Implemented Interfaces:
BooleanConstraint, Constraint

public class BooleanConstraintImpl
extends ConstraintImpl
implements BooleanConstraint

Author:
Jochen Wiedmann

Nested Class Summary
static class BooleanConstraintImpl.TypeImpl
           
 
Nested classes inherited from class net.sf.jaxme.sqls.BooleanConstraint
BooleanConstraint.Type
 
Constructor Summary
protected BooleanConstraintImpl(CombinedConstraint pCombinedConstraint, BooleanConstraint.Type pType)
           
 
Method Summary
 void addPart()
          Inserts a NULL value.
 void addPart(boolean pBoolean)
          Inserts a boolean value, which will be inserted as the word TRUE, or FALSE, respectively.
 void addPart(byte pByte)
          Inserts a byte value, which will be inserted without quotes.
 void addPart(ColumnReference pColumn)
          Inserts a column reference.
 void addPart(ColumnReference[] pColumns)
          Inserts a set of column references.
 void addPart(double pDouble)
          Inserts a double value, which will be inserted without quotes.
 void addPart(float pFloat)
          Inserts a float value, which will be inserted without quotes.
 void addPart(int pInt)
          Inserts an int value, which will be inserted without quotes.
 void addPart(long pLong)
          Inserts a long value, which will be inserted without quotes.
 void addPart(SelectStatement pStatement)
          Inserts a subselect.
 void addPart(short pShort)
          Inserts a short value, which will be inserted without quotes.
 void addPart(java.lang.String pString)
          Inserts a String.
 void addPart(Value pValue)
          Inserts a constant value.
 void addPlaceholder()
          Inserts a placeholder.
 int getNumParts()
          Returns the number of parts.
 java.util.Iterator getParts()
          Returns an Iterator to the parts that have been added.
 BooleanConstraint.Type getType()
          Returns the boolean constraints type.
 
Methods inherited from class net.sf.jaxme.sqls.impl.ConstraintImpl
getConstrainedStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jaxme.sqls.Constraint
getConstrainedStatement
 

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

addPart

public void addPart(Value pValue)
Description copied from interface: BooleanConstraint

Inserts a constant value.

Specified by:
addPart in interface BooleanConstraint

addPart

public void addPart(ColumnReference pColumn)
Description copied from interface: BooleanConstraint

Inserts a column reference.

Specified by:
addPart in interface BooleanConstraint

addPart

public void addPart(ColumnReference[] pColumns)
Description copied from interface: BooleanConstraint

Inserts a set of column references.

Specified by:
addPart in interface BooleanConstraint

addPart

public void addPart(SelectStatement pStatement)
Description copied from interface: BooleanConstraint

Inserts a subselect.

Specified by:
addPart in interface BooleanConstraint

addPart

public void addPart(java.lang.String pString)
Description copied from interface: BooleanConstraint

Inserts a String. The String will be properly escaped.

Specified by:
addPart in interface BooleanConstraint

addPart

public void addPart()
Description copied from interface: BooleanConstraint

Inserts a NULL value.

Specified by:
addPart in interface BooleanConstraint

addPart

public void addPart(byte pByte)
Description copied from interface: BooleanConstraint

Inserts a byte value, which will be inserted without quotes.

Specified by:
addPart in interface BooleanConstraint

addPart

public void addPart(int pInt)
Description copied from interface: BooleanConstraint

Inserts an int value, which will be inserted without quotes.

Specified by:
addPart in interface BooleanConstraint

addPart

public void addPart(long pLong)
Description copied from interface: BooleanConstraint

Inserts a long value, which will be inserted without quotes.

Specified by:
addPart in interface BooleanConstraint

addPart

public void addPart(short pShort)
Description copied from interface: BooleanConstraint

Inserts a short value, which will be inserted without quotes.

Specified by:
addPart in interface BooleanConstraint

addPart

public void addPart(float pFloat)
Description copied from interface: BooleanConstraint

Inserts a float value, which will be inserted without quotes.

Specified by:
addPart in interface BooleanConstraint

addPart

public void addPart(double pDouble)
Description copied from interface: BooleanConstraint

Inserts a double value, which will be inserted without quotes.

Specified by:
addPart in interface BooleanConstraint

addPart

public void addPart(boolean pBoolean)
Description copied from interface: BooleanConstraint

Inserts a boolean value, which will be inserted as the word TRUE, or FALSE, respectively.

Specified by:
addPart in interface BooleanConstraint

addPlaceholder

public void addPlaceholder()
Description copied from interface: BooleanConstraint

Inserts a placeholder.

Specified by:
addPlaceholder in interface BooleanConstraint

getNumParts

public int getNumParts()
Description copied from interface: BooleanConstraint

Returns the number of parts.

Specified by:
getNumParts in interface BooleanConstraint

getParts

public java.util.Iterator getParts()
Description copied from interface: BooleanConstraint

Returns an Iterator to the parts that have been added.

Specified by:
getParts in interface BooleanConstraint