|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.jaxme.sqls.impl.PartsImpl
public abstract class PartsImpl
Constructor Summary | |
---|---|
protected |
PartsImpl(Statement pStatement)
|
Method Summary | |
---|---|
protected void |
add(java.lang.Object o)
|
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[] pColumns)
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 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. |
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 |
getNumParts()
Returns the number of parts. |
java.util.Iterator |
getParts()
Returns an Iterator to the parts that have been added. |
Statement |
getStatement()
Returns the statement, to which the part belongs. |
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 |
---|
getMaximumParts, getMinimumParts |
Constructor Detail |
---|
protected PartsImpl(Statement pStatement)
Method Detail |
---|
protected void add(java.lang.Object o)
public Statement getStatement()
public void addPart(Value pValue)
Parts
Inserts a constant value.
addPart
in interface Parts
public void addPart(ColumnReference pColumn)
Parts
Inserts a column reference.
addPart
in interface Parts
public void addPart(ColumnReference[] pColumns)
Parts
Inserts a set of column references.
addPart
in interface Parts
public void addPart(SelectStatement pStatement)
Parts
Inserts a subselect.
addPart
in interface Parts
public void addPart(java.lang.String pString)
Parts
Inserts a String. The String will be properly escaped.
addPart
in interface Parts
public void addPart()
Parts
Inserts a NULL value.
addPart
in interface Parts
public void addPart(byte pByte)
Parts
Inserts a byte value, which will be inserted without quotes.
addPart
in interface Parts
public void addPart(int pInt)
Parts
Inserts an int value, which will be inserted without quotes.
addPart
in interface Parts
public void addPart(long pLong)
Parts
Inserts a long value, which will be inserted without quotes.
addPart
in interface Parts
public void addPart(short pShort)
Parts
Inserts a short value, which will be inserted without quotes.
addPart
in interface Parts
public void addPart(float pFloat)
Parts
Inserts a float value, which will be inserted without quotes.
addPart
in interface Parts
public void addPart(double pDouble)
Parts
Inserts a double value, which will be inserted without quotes.
addPart
in interface Parts
public void addPart(boolean pBoolean)
Parts
Inserts a boolean value, which will be inserted as the word
TRUE
, or FALSE
, respectively.
addPart
in interface Parts
public void addPart(Function pFunction)
Parts
Inserts a function.
addPart
in interface Parts
public void addPart(Expression pExpression)
Parts
addPart
in interface Parts
public void addPlaceholder()
Parts
Inserts a placeholder.
addPlaceholder
in interface Parts
public void addRawSQLPart(java.lang.String pRawSQL)
Inserts raw SQL code.
addRawSQLPart
in interface Parts
public int getNumParts()
Parts
Returns the number of parts.
getNumParts
in interface Parts
public java.util.Iterator getParts()
Parts
Returns an Iterator to the parts that have been added.
getParts
in interface Parts
public void addPart(Case pCase)
Parts
addPart
in interface Parts
public Expression createSUM()
Parts
createSUM
in interface Parts
public Expression createPRODUCT()
Parts
createPRODUCT
in interface Parts
public Expression createDIFFERENCE()
Parts
createDIFFERENCE
in interface Parts
public Expression createQUOTIENT()
Parts
createQUOTIENT
in interface Parts
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |