|
CMI documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
represents a query in a Model. This type can be called, extended or implemented by applications or frameworks using CMI.
| Field Summary | |
static java.lang.String |
ROLE_NAME_INPUT_PARAMETER
Constant string for implicit inputParamter relation role. |
static java.lang.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. |
java.lang.Object |
getInputParameter()
Returns the model object which holds the query input parameters or null if the query doesn't support parameters. |
java.util.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 |
public static final java.lang.String ROLE_NAME_INPUT_PARAMETER
getRelatedModelObject(ROLE_NAME_INPUT_PARAMETER);An implementation is free to additionally accept its own role name or names.
public static final java.lang.String ROLE_NAME_RESULT
getRelatedModelObject(ROLE_NAME_RESULT);An implementation is free to additionally accept its own role name or names.
| Method Detail |
public void execute()
throws CMIException
isDirty()
will return false.execute in interface ICMIModelClassExecutableICMIModelClassExecutable.execute()public long countOf()
countOf() is too big or
too expensive to calculate Long.MAX_VALUE will be returned as long.public boolean isDirty()
true if the query is not yet executed or the result is not consistent with
input parameters any more and false otherwise.public java.lang.Object getInputParameter()
ICMIGenericModelClass or an instance of a typed Model Class (therefore supporting typed
accessor methods etc.)public java.util.Collection getResult()
ICMIModelObjectCollection.public ICMIModelClassInfo associatedInputParameterInfo()
null if no metadata is availablepublic ICMIModelObjectCollectionInfo associatedResultInfo()
null if no such metadata is available
|
CMI documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||