org.apache.ws.jaxme.sqls

Interface Parts

public interface Parts

Author: Jochen Wiedmann

Method Summary
voidaddPart(Value pValue)

Inserts a constant value.

voidaddPart(ColumnReference pColumn)

Inserts a column reference.

voidaddPart(ColumnReference[] pPart)

Inserts a set of column references.

voidaddPart(Case pCase)
Inserts a "case foo when x then a when y then b else c end" clause.
voidaddPart(SelectStatement pPart)

Inserts a subselect.

voidaddPart(String pString)

Inserts a String.

voidaddPart()

Inserts a NULL value.

voidaddPart(byte pByte)

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

voidaddPart(int pInt)

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

voidaddPart(long pLong)

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

voidaddPart(short pShort)

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

voidaddPart(float pFloat)

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

voidaddPart(double pDouble)

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

voidaddPart(boolean pBoolean)

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

voidaddPart(Function pFunction)

Inserts a function.

voidaddPart(Expression pExpression)
Inserts an arithmetic expression.
voidaddPlaceholder()

Inserts a placeholder.

voidaddRawSQLPart(String pRawSQL)

Inserts raw SQL code.

ExpressioncreateDIFFERENCE()
Creates an arithmetic difference.
ExpressioncreatePRODUCT()
Creates an arithmetic product.
ExpressioncreateQUOTIENT()
Creates an arithmetic quotient.
ExpressioncreateSUM()
Creates an arithmetic sum.
intgetMaximumParts()
Returns the maximum number of parts.
intgetMinimumParts()
Returns the minimum number of parts.
intgetNumParts()

Returns the number of parts.

IteratorgetParts()

Returns an Iterator to the parts that have been added.

Method Detail

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(Case pCase)
Inserts a "case foo when x then a when y then b else c end" clause.

addPart

public void addPart(SelectStatement pPart)

Inserts a subselect.

addPart

public void addPart(String pString)

Inserts a String. The String will be properly escaped.

Throws: 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.

addPart

public void addPart(Function pFunction)

Inserts a function.

addPart

public void addPart(Expression pExpression)
Inserts an arithmetic expression.

addPlaceholder

public void addPlaceholder()

Inserts a placeholder.

addRawSQLPart

public void addRawSQLPart(String pRawSQL)

Inserts raw SQL code.

createDIFFERENCE

public Expression createDIFFERENCE()
Creates an arithmetic difference.

createPRODUCT

public Expression createPRODUCT()
Creates an arithmetic product.

createQUOTIENT

public Expression createQUOTIENT()
Creates an arithmetic quotient.

createSUM

public Expression createSUM()
Creates an arithmetic sum.

getMaximumParts

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

getMinimumParts

public int getMinimumParts()
Returns the minimum number of parts.

getNumParts

public int getNumParts()

Returns the number of parts.

getParts

public Iterator getParts()

Returns an Iterator to the parts that have been added.