net.sf.jaxme.sqls
Interface BooleanConstraint

All Superinterfaces:
Constraint
All Known Implementing Classes:
BooleanConstraintImpl

public interface BooleanConstraint
extends Constraint

Author:
Jochen Wiedmann

Nested Class Summary
static interface BooleanConstraint.Type
          The type of a boolean constraint.
 
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[] pPart)
          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 pPart)
          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 interface net.sf.jaxme.sqls.Constraint
getConstrainedStatement
 

Method Detail

getType

public BooleanConstraint.Type getType()

Returns the boolean constraints type.


addPart

public void addPart(Value pValue)

Inserts a constant value.


addPart

public void addPart(ColumnReference pColumn)

Inserts a column reference.


addPart

public void addPart(ColumnReference[] pPart)

Inserts a set of column references.


addPart

public void addPart(SelectStatement pPart)

Inserts a subselect.


addPart

public void addPart(java.lang.String pString)

Inserts a String. The String will be properly escaped.

Throws:
java.lang.NullPointerException - The paremeter pString is null.

addPart

public void addPart()

Inserts a NULL value.


addPart

public void addPart(byte pByte)

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


addPart

public void addPart(int pInt)

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


addPart

public void addPart(long pLong)

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


addPart

public void addPart(short pShort)

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


addPart

public void addPart(float pFloat)

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


addPart

public void addPart(double pDouble)

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


addPart

public void addPart(boolean pBoolean)

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


addPlaceholder

public void addPlaceholder()

Inserts a placeholder.


getNumParts

public int getNumParts()

Returns the number of parts.


getParts

public java.util.Iterator getParts()

Returns an Iterator to the parts that have been added.