public class ResultsBean extends DataBean
ALL_BOOKMARKS, ALL_RECORDS, ATTR_COLUMN, ATTR_DEFAULT, ATTR_QBE, ATTR_READONLY, ATTR_REFRESH_TABLE, ATTR_REQUIRED, ATTR_RESET, MAX_TABLEROWS, TABLE_ALL_SELECTED, TABLE_AT_FIRST_PAGE, TABLE_AT_FIRST_ROW, TABLE_AT_LAST_PAGE, TABLE_AT_LAST_ROW, TABLE_DETAILS_EXPANDED, TABLE_EXPANDED, TABLE_FILTER_EXPANDED, TABLE_FILTERED, TABLE_REFRESH_ALL_ROWS, TABLE_REFRESH_FILTER, TABLE_REFRESH_ROW, TABLE_REFRESH_TITLE, TABLE_ROW_CHANGED, TABLE_START_EMPTY, TABLE_SUBSELECT_ON, TABLE_USE_SUBSELECT
EVENT_CONTINUE, EVENT_HANDLED, EVENT_STOP_ALL
Constructor and Description |
---|
ResultsBean() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(DataBeanListener listener)
Adds a listener (child DataBean) to this DataBean (parent).
|
boolean |
allSelected()
Returns boolean true if all records are selected
|
int |
BOOKMARK() |
void |
clearBean() |
int |
clearfilter() |
void |
clearTableRetainCache()
reset the cache used to track the list table state
|
int |
fetchTableData() |
int |
findFirstSelectedIndex()
Returns the index of the first selected mbo.
|
java.lang.String[][] |
getDataAsArray(java.lang.String[] attributeNames)
For the given list of attributes, this returns all rows of data
in an array where the first level is the rows of data and the second
level is the data for each of the attributes in that row.
|
void |
getFirstRecord()
Sets the ResultsSetBean to the first record in the reseult set (if there is one)
This is called by the RecordMboSetBean, when it tries to get it's current record.
|
MboSetRemote |
getMboSet()
Returns the MboSetRemote of the DataBean.
|
boolean |
getResetFromQbeclearInit() |
java.lang.String[][] |
getSelectedDataAsArray(java.lang.String[] attributeNames)
For the given list of attributes, this returns just the selected rows of data,
(if no rows are selected then all rows are used)
in an array where the first level is the rows of data and the second
level is the data for each of the attributes in that row.
|
boolean |
hasRecChanged()
Returns the recChanged flag.
|
boolean |
hasRecordsForAction()
Returns true if the ResultsBean has records to perform an action on.
|
boolean |
isAppLockEnabled()
Returns a boolean indicating if the app this bean is on is enabled for Record Locking
|
boolean |
isModifiedRow(int thisRow)
Track if the record is modified
|
boolean |
isRowDeleted(int thisRow)
Track if the record is deleted
|
boolean |
next()
Advances the current row position.
|
boolean |
previous()
Decrements the current row position.
|
void |
recHasChanged()
Called by the RecordMboSetBean when it is saved.
|
void |
recHasChanged(int oper)
Called by the RecordMboSetBean when it is saved.
|
void |
reset()
Resets the MboSet.
|
void |
resetSelectedCache()
Clears the selectedIndex array of all selected indexes.
|
void |
save()
Saves the changes made to the MboSet
Throws MXException or RemoteException on failure
The MboSet data or cached data will be undisturbed.
|
int |
search() |
void |
select(int row)
Marks the Mbo at the specified row Selected.
|
void |
select(int startIndex,
int count)
Marks the a set of Mbos starting from startIndex selected.
|
void |
selectAll()
selects all Mbos on in the MboSet, remotely
|
int |
selectrecord() |
boolean |
setCurrentRow(int nRow)
Changes the current row position.
|
void |
setPageRowCount(int rowCount) |
void |
setQbeDefaults()
Overrided to always force the setting of default qbe values when called.
|
void |
setResetFromQbeclearInit(boolean flag) |
void |
setStartEmpty() |
void |
setSubSetMaxRowCount(int maxrows)
Set the maximun number of row the mboset can have when in subselect mode.
|
void |
setupBean(SessionContext sc)
Deprecated.
FIREFOX
|
void |
setupBean(WebClientSession wcs)
This method must be call after the bean is instantiated.
|
int |
togglesubselect()
Sets the subeselect flag to determine if the results table is in subselect mode (using multi-select)
|
void |
turnEmptyStateOff()
Resets the start empty state flag off to allow the dean to fetch the data.
|
void |
turnEmptyStateOff(boolean dofetch)
Resets the start empty state flag off to allow the dean to fetch the data.
|
void |
unselect(int row)
Marks the Mbo at the specified row Unselected.
|
void |
unselect(int startIndex,
int count)
Marks the a set of Mbos starting from startIndex Unselected.
|
void |
unselectAll()
Unselects all Mbos on in the MboSet, remotely
|
boolean |
useSubSelect()
Returns the usesubset flag which for determining if an action taken on the results set should be done on
all records or just the selected ones.
|
_useAllBookmarksQuery, _useAllRecsQuery, _usequery, addAttribute, addConditionalProperties, addDialogReference, addQbeAttribute, addrow, addSigOption, applyValuesToSharedAttributes, applyValuesToSharedAttributes, asyncLocked, bindComponent, boundToTable, buildPortalMsg, callBeanMethod, callBeanMethod, callBeanMethod, callBeanMethod, callMethod, callMethod, callMethod, callMethod, callRemoteMethod, callRemoteMethod, cancelDialog, canCloseBean, canFetchData, changeRequiredField, checkAndDistributeRequiredError, checkESigAuthenticated, checkForAppError, checkMethodAccess, clearSavedFilterSettings, clearSavedQbeSettings, close, copytonewrow, count, dataChangedEvent, delete, delete, deleteAndRemove, deleteAndRemove, displaycount, duplicateMbo, execute, fetchRecordData, fetchTableData, filterrows, findAndCallMethod, fireChildChangedEvent, fireDataChangedEvent, fireDataChangedEvent, fireStructureChangedEvent, fireStructureChangedEvent, getAppWhere, getAttributes, getBoolean, getBoolean, getCacheRowIndex, getColumnDate, getColumnString, getCompleteWhere, getConditionalProperties, getCurrentQueryDescription, getCurrentQueryName, getCurrentRow, getDataAsArray, getDataList, getDataList, getDataList, getDataList, getDataListFromMboSetRemote, getDate, getDefaultOrderBy, getDefaultValue, getDescAttributeId, getEndRow, getEventRowIndex, getKeyAttribute, getKeyAttributes, getLastEventHandled, getLastFetchIndex, getList, getList, getList, getLockedByDisplayName, getMbo, getMbo, getMboForUniqueId, getMboName, getMboOrZombie, getMboRowIndex, getMboSetData, getMboSetFromSmartFind, getMboSetFromSmartFind, getMboSetFromSmartFind, getMboValueData, getMboValueData, getMboValueInfo, getMXSession, getNullRequiedFields, getOrderBy, getPageEndRow, getPageRowCount, getPageStartIndex, getParent, getParentRelationship, getQbe, getQbe, getQbeAttributes, getQueryDescBeforeReviseAction, getQueryNameBeforeReviseAction, getRemoteForDownload, getRemoteForLookup, getReturnAttribute, getReturnComponent, getReturnComponentId, getReturnControlId, getRowIndexFromEvent, getSavedFilterSettings, getSelectedDataAsArray, getSelection, getShowDetails, getSmartFillValue, getSortOrder, getString, getString, getTableAttributes, getTableOffset, getTableStateFlags, getTitle, getUIERMEntity, getUniqueIdFromSmartFill, getUniqueIdFromSmartFill, getUniqueIdName, getUniqueIdValue, getUserAndQbeWhere, getUserWhere, getWarnings, getZombie, getZombieMboValueData, handleRemoteException, handleRequiredFieldException, hasLongDescriptionText, hasLongDescriptionText, hasMboSetRemote, hasPageRows, hasRow, hasSameMboSet, hasSigOptionAccess, hasSigOptionAccess, hierarchicalmove, highlightrow, highlightrow, insert, insert, insertAtEnd, instantdelete, isAppTableRetain, isAttribute, isAttributeHidden, isAttributeHidden, isColumnSorted, isEmpty, isListTableModified, isListTableRetain, isLookupMultiSelect, isMboHidden, isMboHidden, isModifiedRow, isNewRow, isNewRow, isNewRowUnedited, isRowLocked, isSelected, isSubSelect, isTableAttribute, isTablePostionMarked, isTableRowSelected, isTableStateFlagSet, listenerChangedEvent, madeRequiredConditionally, markTablePosition, moveToMboFromDataBean, needToAuthenticate, nextrow, positionState, prevrow, propagateRequired, queryAllBookmarks, queryAllRecs, refreshFieldErrors, refreshTable, registerDynamicControlsWithERM, reloadTable, removeDialogReference, removeListener, removeRowOnCancel, rePosition, resetJSPFlags, resetQbe, resetWithSelection, restoreSavedQbeSettings, retainPosition, returnLookupValue, returnLookupValue, returnLookupValue, returnLookupValue, save, saveCurrentQbeSettings, scrollnext, scrollprev, selectRows, sendRefreshTable, setApp, setAppDefault, setAppDefaults, setApplicationError, setAppWhere, setAsyncLock, setAttributes, setCurrentQueryDescription, setDate, setDate, setDate, setDefaultOrderBy, setDefaultQbe, setDefaultValue, setDefaultValue, setDescAttributeId, setDynamicAppDefaults, setDynamicDefault, setDynamicQbeDefaults, setEmptyOnClear, setEsigValidated, setEventRowIndex, setfiltervalue, setLastEventHandled, setListTableModified, setListTableRetain, setMboName, setNewRowUnedited, setOrderBy, setParent, setQbe, setQbe, setQbe, setQbe, setQbe, setQbeAttributes, setQbeCaseSensitive, setQbeExactMatch, setQueryBySiteQbe, setQueryDescBeforeReviseAction, setQueryNameBeforeReviseAction, setRemoveOnCancel, setReturnAttribute, setReturnComponent, setReturnComponentId, setReturnControlId, setShowDetails, setSmartFillValue, setTableFlag, setUserDefaults, setUserWhere, setvalue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromComponent, smartFill, smartFill, sort, sort, sortcolumn, sortcolumn, sqlwhere, structureChangedEvent, toBeSaved, toggledeleterow, toggledetailstate, toggleselectallrows, toggleselectrow, toString, turnEmptyStateOn, unbindComponent, undelete, undelete, useAllBookmarksQuery, useAllRecsQuery, useqbe, usequery, useQuery, useStoredQuery, validate, validateChildren, validateMbo, valueBound, valueUnbound
getCreator, getId, setCreator, setId
public void addListener(DataBeanListener listener)
addListener
in class DataBean
public void reset() throws MXException
reset
in class DataBean
MXException
public void recHasChanged()
public boolean isAppLockEnabled()
public boolean hasRecChanged()
public MboSetRemote getMboSet() throws MXException, java.rmi.RemoteException
getMboSet
in class DataBean
MXException
java.rmi.RemoteException
public void save() throws MXException
save
in class DataBean
MXException
public boolean setCurrentRow(int nRow) throws MXException, java.rmi.RemoteException
setCurrentRow
in class DataBean
MXException
java.rmi.RemoteException
public void setSubSetMaxRowCount(int maxrows)
public void resetSelectedCache()
public void clearBean() throws MXException, java.rmi.RemoteException
clearBean
in class DataBean
MXException
java.rmi.RemoteException
public void getFirstRecord()
public int search() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public int selectrecord() throws MXException, java.rmi.RemoteException
selectrecord
in class DataBean
MXException
java.rmi.RemoteException
public void setPageRowCount(int rowCount)
setPageRowCount
in class DataBean
public int togglesubselect() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean useSubSelect()
public void select(int row) throws MXException
select
in class DataBean
MXException
public void unselect(int row) throws MXException
unselect
in class DataBean
MXException
public void selectAll() throws MXException
selectAll
in class DataBean
MXException
public void unselect(int startIndex, int count) throws MXException
unselect
in class DataBean
startIndex
- starting index position (must be >= 0)count
- number of Mbos after the start index to be marked
unselected (must be > 0).MXException
public void select(int startIndex, int count) throws MXException
select
in class DataBean
startIndex
- starting index position (must be >= 0)count
- number of Mbos after the start index to be marked
unselected (must be > 0).MXException
public void unselectAll() throws MXException
unselectAll
in class DataBean
MXException
public boolean next() throws MXException
next
in class DataBean
MXException
public boolean previous() throws MXException
previous
in class DataBean
MXException
public int findFirstSelectedIndex()
public boolean allSelected()
public int fetchTableData() throws MXException, java.rmi.RemoteException
fetchTableData
in class DataBean
MXException
java.rmi.RemoteException
public void setupBean(WebClientSession wcs)
DataBean
public void setupBean(SessionContext sc)
WebClientBean
public boolean hasRecordsForAction() throws MXException
MXException
public int clearfilter() throws MXException
clearfilter
in class DataBean
MXException
public int BOOKMARK() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setStartEmpty()
public void turnEmptyStateOff() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void turnEmptyStateOff(boolean dofetch) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String[][] getDataAsArray(java.lang.String[] attributeNames)
DataBean
getDataAsArray
in class DataBean
public java.lang.String[][] getSelectedDataAsArray(java.lang.String[] attributeNames)
DataBean
getSelectedDataAsArray
in class DataBean
public boolean getResetFromQbeclearInit()
public void setResetFromQbeclearInit(boolean flag)
public void setQbeDefaults()
setQbeDefaults
in class DataBean
public void recHasChanged(int oper)
oper
- - ROW_INSERT,ROW_MODIFY,ROW_DELETEpublic void clearTableRetainCache()
public boolean isModifiedRow(int thisRow)
isModifiedRow
in class DataBean
public boolean isRowDeleted(int thisRow)
isRowDeleted
in class DataBean