|
SAP NetWeaver 7.4 (SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICMIQuery
Represents a query in a Model. This type can be called, extended or implemented by applications or frameworks using CMI.
Type Classification:
This interface is part of the Common Model Interface and is intended to be implemented by applications.
| Field Summary | |
|---|---|
static String |
ROLE_NAME_INPUT_PARAMETER
Constant string for implicit inputParamter relation role. |
static String |
ROLE_NAME_RESULT
Constant string for implicit result relation role. |
| Method Summary | |
|---|---|
ICMIModelClassInfo |
associatedInputParameterInfo()
Returns the metadata for the model class holding the input parameters or null if no metadata is available |
ICMIModelObjectCollectionInfo |
associatedResultInfo()
Returns the metadata for the model object collection holding the query result or null if no such metadata is available |
long |
countOf()
Returns the number all matching model objects for the parameterized query independent of the fetch size. |
void |
execute()
Executes the query. |
Object |
getInputParameter()
Returns the model object which holds the query input parameters or null if the query doesn't support parameters. |
Collection |
getResult()
Returns the collection which matches the query. |
boolean |
isDirty()
Returns true if the query is not yet executed or the result is not consistent with
input parameters any more and false otherwise. |
| Methods inherited from interface com.sap.tc.cmi.model.ICMIModelClass |
|---|
associatedModel, associatedModelClassInfo |
| Field Detail |
|---|
static final String ROLE_NAME_INPUT_PARAMETER
getRelatedModelObject(ROLE_NAME_INPUT_PARAMETER);An implementation is free to additionally accept its own role name or names.
static final String ROLE_NAME_RESULT
getRelatedModelObject(ROLE_NAME_RESULT);An implementation is free to additionally accept its own role name or names.
| Method Detail |
|---|
void execute()
throws CMIException
isDirty()
will return false.
execute in interface ICMIModelClassExecutableCMIExceptionICMIModelClassExecutable.execute()long countOf()
countOf() is too big or
too expensive to calculate Long.MAX_VALUE will be returned as long.
boolean isDirty()
true if the query is not yet executed or the result is not consistent with
input parameters any more and false otherwise.
Object getInputParameter()
ICMIGenericModelClass or an instance of a typed Model Class (therefore supporting typed
accessor methods etc.)
Collection getResult()
ICMIModelObjectCollection.
ICMIModelClassInfo associatedInputParameterInfo()
null if no metadata is available
ICMIModelObjectCollectionInfo associatedResultInfo()
null if no such metadata is available
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] FRAMEWORK
|
[sap.com] tc/cm/ejb/api
|
api
|
BC-JAS-EJB
|
[sap.com] FRAMEWORK
|
[sap.com] tc/cmi
|
default
|
BC-WD-JAV-RUN
|
|
SAP NetWeaver 7.4 (SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||