|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.query.CompoundQuerySpec
public class CompoundQuerySpec
This class provides the functionality to build a compound query statement.
Any number of components can be added to the Compound Query (Two are required for a valid compound SQL statement). A single Set Operator can be specified.
The SQL statement is built from left to right using the components with
the lowest index to the highest index. If precedence is significant,
the components with equal precedence should be added to a separate instance
and nested within another CompoundQuerySpec instance.
Supported API: true
Extendable: false
| Field Summary |
|---|
| Fields inherited from interface wt.pds.StatementSpec |
|---|
ADVANCED_QUERY_ENABLED, USE_BIND |
| Method Summary | |
|---|---|
void |
addComponent(StatementSpec a_statementSpec)
This method adds a component statement. |
void |
appendOrderBy(OrderBy a_orderBy)
Appends an Order By expression to the compund query. |
SetOperator |
getSetOperator()
Gets the object for the association that plays role: setOperator. |
boolean |
isAdvancedQueryEnabled()
Gets the value of the attribute: advancedQueryEnabled; Indicates if advanced query capabilities are enabled. |
boolean |
isIncludeNestedParantheses()
Gets the value of the attribute: includeNestedParantheses; Indicates if parantheses should be included for nested statements. |
boolean |
isUseBind()
Gets the value of the attribute: useBind; Indicates if bind parameters should be used for this statement. |
void |
setAdvancedQueryEnabled(boolean a_AdvancedQueryEnabled)
Sets the value of the attribute: advancedQueryEnabled; Indicates if advanced query capabilities are enabled. |
void |
setIncludeNestedParantheses(boolean a_IncludeNestedParantheses)
Sets the value of the attribute: includeNestedParantheses; Indicates if parantheses should be included for nested statements. |
void |
setLocale(Locale a_locale)
Set the client locale. |
void |
setSetOperator(SetOperator a_SetOperator)
Sets the object for the association that plays role: setOperator. |
void |
setUseBind(boolean a_UseBind)
Sets the value of the attribute: useBind; Indicates if bind parameters should be used for this statement. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean isAdvancedQueryEnabled()
isAdvancedQueryEnabled in interface StatementSpecpublic void setAdvancedQueryEnabled(boolean a_AdvancedQueryEnabled)
setAdvancedQueryEnabled in interface StatementSpeca_AdvancedQueryEnabled - public SetOperator getSetOperator()
public void setSetOperator(SetOperator a_SetOperator)
throws WTPropertyVetoException
a_SetOperator -
WTPropertyVetoExceptionpublic void addComponent(StatementSpec a_statementSpec)
a_statementSpec - Component statement to add
public void appendOrderBy(OrderBy a_orderBy)
throws QueryException
a_orderBy - OrderBy object to append
QueryExceptionpublic boolean isUseBind()
isUseBind in interface StatementSpec
public void setUseBind(boolean a_UseBind)
throws WTPropertyVetoException
setUseBind in interface StatementSpeca_UseBind -
WTPropertyVetoException
public void setLocale(Locale a_locale)
throws WTException
setLocale in interface StatementSpeca_locale -
WTExceptionpublic boolean isIncludeNestedParantheses()
public void setIncludeNestedParantheses(boolean a_IncludeNestedParantheses)
a_IncludeNestedParantheses -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||