|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.nms.fe.common.ViewCriteria
Objects of this class are used to specify various parameters that are
needed for getting data through
CustomSessionRemote.getData() method.
Serializable, Serialized Form| Constructor Summary | |
ViewCriteria(java.lang.String userName,
java.lang.String viewId)
Creates a new ViewCriteria instance with the specified
userName and viewId. |
|
| Method Summary | |
java.util.Properties |
getCriteria()
Returns the criteria used to filter the objects. |
int |
getFromIndex()
Get the value of the index starting from which viewLength number of objects should be returned. |
java.lang.String |
getOrderbyColumn()
Returns the name of the column by which the data should be ordered. |
java.util.Properties[] |
getScopeCriteria()
|
java.util.Properties |
getSpecialProperties()
|
TableColumn[] |
getTableColumns()
Get the value of tableColumns. |
java.lang.String |
getUserName()
Get the value of userName. |
java.lang.String |
getViewId()
Get the value of viewId. |
int |
getViewLength()
Get the number of objects required. |
boolean |
isAdjustFromIndex()
Get the value of adjustFromIndex. |
boolean |
isAllProperties()
Returns whether all properties of the objects are requested are not. |
boolean |
isAppendCriteria()
Returns whether the customview's criteria should also be applied in addition to criteria set via
setCriteria() method in this object. |
boolean |
isAscendingOrder()
Returns whether the data should be sorted by ascending order based on orderByColumn. |
boolean |
isPerformOR()
Get the value of performOR. |
boolean |
isTemporaryCustomView()
Get the value of temporaryCustomView. |
void |
setAdjustFromIndex(boolean v)
Set the value of adjustFromIndex. |
void |
setAllProperties(boolean v)
Set the value of allProperties. |
void |
setAppendCriteria(boolean v)
Sets whether the customview's criteria should also be applied in addition to criteria set via
setCriteria() method in this object. |
void |
setAscendingOrder(boolean ascending)
Specifies whether the data should be sorted by ascending order based on orderByColumn. |
void |
setCriteria(java.util.Properties criteria)
Set the value of criteria. |
void |
setFromIndex(int fromIndex)
Set the value of the index starting from which viewLength number of objects should be returned. |
void |
setOrderbyColumn(java.lang.String v)
Set the name of the column by which the data should be ordered. |
void |
setPerformOR(boolean v)
Set the value of performOR. |
void |
setScopeCriteria(java.util.Properties[] v)
This method is for internal use to set the value of ScopeCriteria. |
void |
setSpecialProperties(java.util.Properties props)
|
void |
setTableColumns(TableColumn[] v)
Set the value of tableColumns. |
void |
setTemporaryCustomView(boolean v)
Set the value of temporaryCustomView. |
void |
setUserName(java.lang.String v)
Set the value of userName to whom this custom view belongs. |
void |
setViewId(java.lang.String v)
Set the value of unique id representing the custom view. |
void |
setViewLength(int viewLength)
Specifies the number of objects for which data are required. |
java.lang.String |
toString()
Returns a String representation of this data structure. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ViewCriteria(java.lang.String userName,
java.lang.String viewId)
throws java.lang.IllegalArgumentException
ViewCriteria instance with the specified
userName and viewId.userName - the user to whom the custom view belongsviewId - the unique id of the custom viewjava.lang.IllegalArgumentException - if any of the parameter is null
or empty.| Method Detail |
public java.lang.String getUserName()
public void setUserName(java.lang.String v)
v - the name of the user to whom this custom view belongs.public java.lang.String getViewId()
public void setViewId(java.lang.String v)
v - Value to assign to viewId.public int getViewLength()
public void setViewLength(int viewLength)
0, then all objects starting from fromIndex will be returned, i.e. all objects matching the criteria fromIndex <= x < totalObjectsPresent.viewLength - number of objects to be returned.public int getFromIndex()
viewLength number of objects should be returned.public void setFromIndex(int fromIndex)
viewLength number of objects should be returned. This
value starts from 1.
Following are some special
values.
-99 - Returns properties of last set of objects
i.e. objects indexed in such a way that fromIndex =
totalObjectsPresent - viewLength + 1.
0 - Returns the
latest values, if the modules are implemented to give the latest
values. This is same as setFromIndex(-99). If the time
wise order of the data are not important for the modules, then they
may return starting values. This is same as
setFromIndex(1).
fromIndex - Value to assign to fromIndex.public java.lang.String getOrderbyColumn()
public void setOrderbyColumn(java.lang.String v)
column - name of the column by which the data should be sort.public java.util.Properties getCriteria()
public void setCriteria(java.util.Properties criteria)
If this is not null, then getData() will return objects matching this criteria overriding the criteria set to the custom view while creating it.
criteria - Value to assign to criteria.public boolean isAllProperties()
true if all properties of the objects are
required, false otherwise.public void setAllProperties(boolean v)
Note:Please make sure the criteria, you are giving retrieves less number of objects & queries less number of tables. If not this may take very long time & large amount of memory.
v - Value to assign to allProperties.public boolean isPerformOR()
public void setPerformOR(boolean v)
v - Value to assign to performOR.public boolean isAdjustFromIndex()
public void setAdjustFromIndex(boolean v)
CustomViewException in case the
fromIndex is greater than the total in the view. In such a case the
fromIndex will be adjusted and ViewData with new fromIndex
will be made available.v - Value to assign to adjustFromIndex.public boolean isAppendCriteria()
criteria set via
setCriteria() method in this object. If false,
only criteria will be used while getData. If true,
then both customview's criteria and criteria will
be used.true if customview's criteria should also
be applied, false otherwise.public void setAppendCriteria(boolean v)
criteria set via
setCriteria() method in this object. If false,
only criteria will be used while getData. If true,
then both customview's criteria and criteria will
be used.v - true if customview's criteria should also
be applied, false otherwise.public boolean isAscendingOrder()
orderByColumn.true if data should be sorted in ascending
order based on orderByColumn, false
otherwise.public void setAscendingOrder(boolean ascending)
orderByColumn.ascending - true if data should be sorted in ascending
order based on orderByColumn, false
otherwise.true if data should be sorted in ascending
order based on orderByColumn, false
otherwise.public TableColumn[] getTableColumns()
public void setTableColumns(TableColumn[] v)
v - Value to assign to tableColumns.public boolean isTemporaryCustomView()
public void setTemporaryCustomView(boolean v)
v - Value to assign to temporaryCustomView.public java.util.Properties[] getScopeCriteria()
public void setScopeCriteria(java.util.Properties[] v)
v - Value to assign to ScopeCriteria.public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Properties getSpecialProperties()
public void setSpecialProperties(java.util.Properties props)
|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||