|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class defines an abstraction for a SQL statement query. It aggregates several "helper" objects that provide the algorithms necessary to implement the query.
The primaryClass attribute is for compatibility with the POM which uses
a target class to determine the PDS to use. The singleResultCompatible
attribute is used to maintain backward compatibility with code that assumes
a single class query will contain a single Persistable element in the
result set.
Supported API: true
Extendable: false
Field Summary | |
static String |
ADVANCED_QUERY
Label for the attribute; Indicates if the statement uses advanced query capabilities. |
static String |
ADVANCED_QUERY_ENABLED
Label for the attribute; Indicates if advanced query capabilities are enabled. |
static String |
AGGREGATE_SELECT
Label for the attribute; Indicates if the statement has aggregate select . |
static String |
CORRELATED_CLASS_ATTRIBUTES
Label for the attribute. |
static String |
FETCH_SIZE
Label for the attribute; A hint as to the number of rows that should be fetched from the database when more rows are needed. |
static String |
PRIMARY_CLASS
Label for the attribute; Primary class for the query. |
static String |
QUERY_LIMIT
Label for the attribute. |
static String |
RESULT_BUILDER
Label for the attribute. |
static String |
RESULT_CURSOR
Label for the attribute. |
static String |
SINGLE_RESULT_COMPATIBLE
Label for the attribute; Indicates if the query result should be returned as a single result (for backward compatibility) Supported API: false |
static String |
STATEMENT_BUILDER
Label for the attribute. |
static String |
USE_BIND
Label for the attribute; Indicates if bind parameters should be used for this statement. |
Method Summary | |
int |
getBindParameterCount()
Supported API: false |
List |
getCorrelatedClassAttributes()
Gets the value of the attribute: CORRELATED_CLASS_ATTRIBUTES. |
int |
getFetchSize()
Gets the value of the attribute: FETCH_SIZE. |
Class |
getPrimaryClass()
Gets the value of the attribute: PRIMARY_CLASS. |
int |
getQueryLimit()
Gets the value of the attribute: QUERY_LIMIT. |
ResultBuilder |
getResultBuilder()
Gets the object for the association that plays role: RESULT_BUILDER. |
ResultCursor |
getResultCursor()
Gets the object for the association that plays role: RESULT_CURSOR. |
StatementBuilder |
getStatementBuilder()
Gets the object for the association that plays role: STATEMENT_BUILDER. |
boolean |
isAdvancedQuery()
Gets the value of the attribute: ADVANCED_QUERY. |
boolean |
isAdvancedQueryEnabled()
Gets the value of the attribute: ADVANCED_QUERY_ENABLED. |
boolean |
isAggregateSelect()
Gets the value of the attribute: AGGREGATE_SELECT. |
boolean |
isSingleResultCompatible()
Gets the value of the attribute: SINGLE_RESULT_COMPATIBLE. |
boolean |
isUseBind()
Gets the value of the attribute: USE_BIND. |
void |
setAdvancedQueryEnabled(boolean a_AdvancedQueryEnabled)
Sets the value of the attribute: ADVANCED_QUERY_ENABLED. |
void |
setBindParameterAt(Object a_value,
int a_index)
Supported API: false |
void |
setFetchSize(int a_FetchSize)
Sets the value of the attribute: FETCH_SIZE. |
void |
setLocale(Locale a_locale)
Set the client locale. |
void |
setUseBind(boolean a_UseBind)
Sets the value of the attribute: USE_BIND. |
Field Detail |
public static final String PRIMARY_CLASS
public static final String SINGLE_RESULT_COMPATIBLE
public static final String QUERY_LIMIT
public static final String ADVANCED_QUERY_ENABLED
public static final String ADVANCED_QUERY
public static final String AGGREGATE_SELECT
public static final String CORRELATED_CLASS_ATTRIBUTES
public static final String USE_BIND
public static final String FETCH_SIZE
public static final String STATEMENT_BUILDER
public static final String RESULT_BUILDER
public static final String RESULT_CURSOR
Method Detail |
public Class getPrimaryClass()
public boolean isSingleResultCompatible()
public int getQueryLimit()
public boolean isAdvancedQueryEnabled()
public void setAdvancedQueryEnabled(boolean a_AdvancedQueryEnabled)
a_AdvancedQueryEnabled
- public boolean isAdvancedQuery() throws WTException
WTException
public boolean isAggregateSelect()
public List getCorrelatedClassAttributes()
public boolean isUseBind()
public void setUseBind(boolean a_UseBind) throws WTPropertyVetoException
a_UseBind
-
WTPropertyVetoException
public int getFetchSize()
public void setFetchSize(int a_FetchSize) throws WTPropertyVetoException
a_FetchSize
-
WTPropertyVetoException
public StatementBuilder getStatementBuilder()
public ResultBuilder getResultBuilder()
public ResultCursor getResultCursor()
public void setLocale(Locale a_locale) throws WTException
a_locale
-
WTException
public void setBindParameterAt(Object a_value, int a_index)
a_value
- a_index
- public int getBindParameterCount()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |