org.apache.ws.jaxme.sqls
Interface Parts

All Known Subinterfaces:
BooleanConstraint, Expression, Function
All Known Implementing Classes:
BooleanConstraintImpl, ExpressionImpl, FunctionImpl, PartsImpl

public interface Parts

Author:
Jochen Wiedmann

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(Case pCase)
          Inserts a "case foo when x then a when y then b else c end" clause.
 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(Expression pExpression)
          Inserts an arithmetic expression.
 void addPart(float pFloat)
          Inserts a float value, which will be inserted without quotes.
 void addPart(Function pFunction)
          Inserts a function.
 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.
 void addRawSQLPart(java.lang.String pRawSQL)
          Inserts raw SQL code.
 Expression createDIFFERENCE()
          Creates an arithmetic difference.
 Expression createPRODUCT()
          Creates an arithmetic product.
 Expression createQUOTIENT()
          Creates an arithmetic quotient.
 Expression createSUM()
          Creates an arithmetic sum.
 int getMaximumParts()
          Returns the maximum number of parts.
 int getMinimumParts()
          Returns the minimum number of parts.
 int getNumParts()
          Returns the number of parts.
 java.util.Iterator getParts()
          Returns an Iterator to the parts that have been added.
 

Method Detail

addPart

void addPart(Value pValue)

Inserts a constant value.


addPart

void addPart(ColumnReference pColumn)

Inserts a column reference.


addPart

void addPart(ColumnReference[] pPart)

Inserts a set of column references.


addPart

void addPart(Case pCase)
Inserts a "case foo when x then a when y then b else c end" clause.


addPart

void addPart(SelectStatement pPart)

Inserts a subselect.


addPart

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

void addPart()

Inserts a NULL value.


addPart

void addPart(byte pByte)

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


addPart

void addPart(int pInt)

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


addPart

void addPart(long pLong)

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


addPart

void addPart(short pShort)

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


addPart

void addPart(float pFloat)

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


addPart

void addPart(double pDouble)

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


addPart

void addPart(boolean pBoolean)

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


addPart

void addPart(Function pFunction)

Inserts a function.


addPart

void addPart(Expression pExpression)
Inserts an arithmetic expression.


addRawSQLPart

void addRawSQLPart(java.lang.String pRawSQL)

Inserts raw SQL code.


addPlaceholder

void addPlaceholder()

Inserts a placeholder.


getNumParts

int getNumParts()

Returns the number of parts.


getMinimumParts

int getMinimumParts()
Returns the minimum number of parts.


getMaximumParts

int getMaximumParts()
Returns the maximum number of parts. Zero indicates unlimited.


getParts

java.util.Iterator getParts()

Returns an Iterator to the parts that have been added.


createSUM

Expression createSUM()
Creates an arithmetic sum.


createPRODUCT

Expression createPRODUCT()
Creates an arithmetic product.


createDIFFERENCE

Expression createDIFFERENCE()
Creates an arithmetic difference.


createQUOTIENT

Expression createQUOTIENT()
Creates an arithmetic quotient.