com.sap.tc.mobile.cfs.wdbll
Interface MobileQuery

All Superinterfaces:
com.sap.tc.cmi.model.ICMIModelClass, com.sap.tc.cmi.model.ICMIModelClassExecutable, com.sap.tc.cmi.model.ICMIQuery
All Known Implementing Classes:
GenericMobileQuery

public interface MobileQuery
extends com.sap.tc.cmi.model.ICMIQuery

Interface for Query classes. Each typed query class implements this interface, so it's possible to work with queries generically.

Author:
D039184
See Also:

Field Summary
 
Fields inherited from interface com.sap.tc.cmi.model.ICMIQuery
ROLE_NAME_INPUT_PARAMETER, ROLE_NAME_RESULT
 
Method Summary
 void addAuthorizationCheck(java.lang.String aoName)
          Add optional authorization check for query execution.
 void addConditions(java.lang.String condString)
          Add one or more conditions.
 void replaceSortOrders(java.lang.String sortString)
          Replace sort order(s).
 void reset()
          Reset the query to original state (remove any added conditions, sort orders and optional authorizations).
 void setInputParameter(java.lang.Object input)
          Set input parameter to use for next execution.
 
Methods inherited from interface com.sap.tc.cmi.model.ICMIQuery
associatedInputParameterInfo, associatedResultInfo, countOf, execute, getInputParameter, getResult, isDirty
 
Methods inherited from interface com.sap.tc.cmi.model.ICMIModelClass
associatedModel, associatedModelClassInfo
 

Method Detail

setInputParameter

void setInputParameter(java.lang.Object input)
Set input parameter to use for next execution.

Parameters:
input - input parameter to use.

reset

void reset()
Reset the query to original state (remove any added conditions, sort orders and optional authorizations).

See Also:
addConditions(String), replaceSortOrders(String), addAuthorizationCheck(String)

addConditions

void addConditions(java.lang.String condString)
Add one or more conditions. Added conditions will be AND-ed with already-existing conditions in WHERE clause of the query. Syntax is the same as WHERE clause. Conditions can be reset using @link{#reset()} method.

Parameters:
condString - condition string.
See Also:
reset()

replaceSortOrders

void replaceSortOrders(java.lang.String sortString)
Replace sort order(s). These sort order(s) will be used instead of original sort order(s) of the query. Syntax is the same as in ORDER BY clause of the query. Sort orders can be reset using @link{#reset()} method.

Parameters:
sortString - sort string.
See Also:
reset()

addAuthorizationCheck

void addAuthorizationCheck(java.lang.String aoName)
Add optional authorization check for query execution. The subsequent query executions will consider this authorization object as well.

Parameters:
aoName - AO name to use.
See Also:
reset()