|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents an expression that can be used in a SQL WHERE
clause.
Supported API: true
Extendable: false
Field Summary | |
static String |
ADVANCED_QUERY
Label for the attribute; Indicates if the expression uses advanced query capabilities. |
static String |
ADVANCED_QUERY_ENABLED
Label for the attribute; Indicates if advanced query capabilities are enabled. |
static String |
BIND_PARAMETER
Label for the attribute; Returns a bind parameter for this expression (if supported). |
static String |
CORRELATED_CLASS_ATTRIBUTES
Label for the attribute. |
static String |
FROM_COUNT
Label for the attribute; Number of FromClause TableExpressions/Aliases that this expression requires. |
static String |
FROM_INDICIES
Label for the attribute; Indicies for all current expressions relative to a FromClause that will be used for validating and setting aliases when this compostie expression is appended to a statement. |
Method Summary | |
Object |
getBindParameter()
Gets the value of the attribute: BIND_PARAMETER. |
Object |
getBindParameterFrom(Vector a_singleBindParameter)
Supported API: false |
List |
getClassAttributes()
Supported API: false |
List |
getCorrelatedClassAttributes()
Gets the value of the attribute: CORRELATED_CLASS_ATTRIBUTES. |
String |
getExpression(boolean a_useBind,
Vector a_tableInfos,
Vector a_aliases)
Return string representation of this expression. |
int |
getFromCount()
Gets the value of the attribute: FROM_COUNT. |
int[] |
getFromIndicies()
Gets the value of the attribute: FROM_INDICIES. |
WhereExpression |
getJoinConditions(JoinIndex a_joinIndex)
This method is to return the join search condition. |
WhereExpression |
getJoinConditions(Set a_joinIndexSet)
This method is to return the join search condition. |
WhereExpression |
getJoinConditions(String a_alias)
This method is to return the join search condition. |
WhereExpression |
getJoinConditions(String a_alias,
boolean a_removed)
This method is to return the join search condition. |
WhereExpression |
getJoinConditions(String a_alias,
int a_outerNonJoinFromIndex,
boolean a_removed)
This method is to return the join search condition. |
Set |
getJoinIndex()
Supported API: false |
void |
handleCorrelatedAttributes(Vector a_tableInfos,
Vector a_aliases)
Supported API: false |
boolean |
isAdvancedQuery()
Gets the value of the attribute: ADVANCED_QUERY. |
boolean |
isAdvancedQueryEnabled()
Gets the value of the attribute: ADVANCED_QUERY_ENABLED. |
boolean |
isAllJoinConditions(JoinIndex a_joinIndex)
Supported API: false |
boolean |
isAllJoinConditions(Set a_joinIndexSet)
Supported API: false |
boolean |
isAllJoinConditions(String a_alias)
Supported API: false |
boolean |
isAllJoinConditions(String a_alias,
boolean a_removed)
Supported API: false |
boolean |
isAllOuterNonJoinConditions()
Supported API: false |
void |
setAdvancedQueryEnabled(boolean a_AdvancedQueryEnabled)
Sets the value of the attribute: ADVANCED_QUERY_ENABLED. |
int |
setAliases(String[] a_aliases,
int a_offset)
This method sets the aliases for components of the expression. |
int |
setBindParameterIndicies(int a_offset)
Supported API: false |
int |
setFromIndicies(int[] a_fromIndicies,
int a_offset)
This method sets the From clause indicies for components of the expression. |
int |
validate(TableExpression[] a_fromTables,
int a_offset)
This method validates the expression against the FROM clause. |
Field Detail |
public static final String BIND_PARAMETER
public static final String FROM_COUNT
public static final String FROM_INDICIES
public static final String ADVANCED_QUERY
public static final String CORRELATED_CLASS_ATTRIBUTES
public static final String ADVANCED_QUERY_ENABLED
Method Detail |
public Object getBindParameter() throws WTException
WTException
public int getFromCount()
public int[] getFromIndicies()
public boolean isAdvancedQuery() throws WTException
WTException
public List getCorrelatedClassAttributes()
public boolean isAdvancedQueryEnabled()
public void setAdvancedQueryEnabled(boolean a_AdvancedQueryEnabled)
a_AdvancedQueryEnabled
- public int validate(TableExpression[] a_fromTables, int a_offset) throws QueryException
a_fromTables
- TableExpressions to validate against.a_offset
- Offset index into the TableExpression array for the next valid TableExpression
QueryException
public int setAliases(String[] a_aliases, int a_offset) throws QueryException
a_aliases
- Aliases to set.a_offset
- Offset index into the alias array for the next valid alias
QueryException
public String getExpression(boolean a_useBind, Vector a_tableInfos, Vector a_aliases) throws QueryException
a_useBind
- Indicates if bind parameters should be used.a_tableInfos
- a_aliases
-
QueryException
public int setFromIndicies(int[] a_fromIndicies, int a_offset)
a_fromIndicies
- From indicies to set.a_offset
- Offset index into the From indicies array for the next valid From index
public List getClassAttributes()
public WhereExpression getJoinConditions(String a_alias) throws QueryException
a_alias
-
QueryException
public boolean isAllJoinConditions(String a_alias) throws QueryException
a_alias
-
QueryException
public Set getJoinIndex()
public WhereExpression getJoinConditions(JoinIndex a_joinIndex)
a_joinIndex
-
public boolean isAllOuterNonJoinConditions()
public Object getBindParameterFrom(Vector a_singleBindParameter)
a_singleBindParameter
-
public int setBindParameterIndicies(int a_offset)
a_offset
-
public WhereExpression getJoinConditions(Set a_joinIndexSet)
a_joinIndexSet
-
public boolean isAllJoinConditions(Set a_joinIndexSet)
a_joinIndexSet
-
public boolean isAllJoinConditions(JoinIndex a_joinIndex)
a_joinIndex
-
public WhereExpression getJoinConditions(String a_alias, boolean a_removed) throws QueryException
a_alias
- a_removed
-
QueryException
public boolean isAllJoinConditions(String a_alias, boolean a_removed) throws QueryException
a_alias
- a_removed
-
QueryException
public WhereExpression getJoinConditions(String a_alias, int a_outerNonJoinFromIndex, boolean a_removed) throws QueryException
a_alias
- a_outerNonJoinFromIndex
- a_removed
-
QueryException
public void handleCorrelatedAttributes(Vector a_tableInfos, Vector a_aliases)
a_tableInfos
- a_aliases
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |