public class RestDCDataVO extends DCDataVO
ProgrammaticViewObjectImpl.BaseAccessorCollectionAdapter, ProgrammaticViewObjectImpl.CollectionAdapter, ProgrammaticViewObjectImpl.CollectionAdapterMapEntry, ProgrammaticViewObjectImpl.ProgrammaticVOAdapter| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PNAME_ROW_LEVEL_LOV |
DCDOTPREFIX, FKPREFIX, mStaticInstanceCount, PROP_VC, PROP_VO_KIND, ROWNUMATTR, STR_DEF_ELEMENTS_SCALAR, STR_DEF_NAME, VD_KIND_BEAN, VD_KIND_DOMAIN, VIEWDEF_SUFFIXmyIteratorATTR_VALUES_STORAGE_MAP, DATA_ROWKEYTAG, DISC_TAG, DYN_ATTRS, DYN_ATTRS_ENTRY, DYN_ATTRS_EXPR, DYN_ATTRS_NAME, DYN_ATTRS_TYPE, EFFDT_MODE, ENT_HDL_TRACKER, ENT_REF_INDEX, FETCH_ALL, FETCH_AS_NEEDED, FETCH_DEFAULT, FINDER_FOR_FINDBYKEY, FINDER_FOR_FINDBYVIEWCRITERIA, FINDER_FOR_GETALLROWSITERATOR, FULLSQL_MODE_AUGMENTATION, FULLSQL_MODE_NO_AUGMENTATION, INTERNAL_ALL_ROWS_FINDER_NAME, INTERNAL_EXPR_VALUE_OVERRIDES, INTERNAL_FINDER_RANGE_PAGING_MODE, mAssocClause, mAssocFromClause, mAssocRefs, mAttrDefs, mAttrDefsTab, mAutoPostChanges, mChangedAttrIndices, mChgAttrIndUseCount, mDefaultMaxActiveNodes, mDefaultMaxRowsPerNode, mDefaultRowSetMap, mDynAttrOffset, MIN_ACTIVE_NODES, MIN_ROWS_PER_NODE, mKeyAttrRefs, mOptimizerHint, mOrderBy, mSignatureCounter, mUsePersColl, mUserDefinedQuery, mViewDef, mViewRowSet, mWhere, NEW_ROW_HANDLE, NEW_ROW_INDEX, NEW_ROW_TRACKER, PROPERTY_BUG_COMPATIBLE_LEAVE_ASSOC_CONS_FOR_EXECUTE_EMPTY_ROWSET, PROPERTY_BUG_COMPATIBLE_SKIP_NO_VAR_WHERE_CLAUSE, PROPERTY_BUG_COMPATIBLE_USE_ALL_ROWS_ITERATOR_FOR_WRITEXML, PROPERTY_CREATE_CRITERIA_MODE_BOTH, PROPERTY_CREATE_SET_OUTER_JOIN_EO_TO_INITIALIZED, PROPERTY_DEFERRED_ESTIMATED_ROWCOUNT, PROPERTY_FINDER_MODE, PROPERTY_FINDER_ORIGINAL_VO, PROPERTY_FINDER_SKIP_WHERE, QC_TAG, TRANSIENT_DATA_ROWTAG, VIEW_OBJECT_KIND_ASSOC_ACCESSOR, VIEW_OBJECT_KIND_ECACHE_OVER_RS_BASE, VIEW_OBJECT_KIND_FINDER, VIEW_OBJECT_KIND_JIEXPR_SQL, VIEW_OBJECT_KIND_USER, VIEW_OBJECT_KIND_VALIDATOR, VIEW_OBJECT_KIND_VIEW_ACCESSOR_FOR_EO, VIEW_OBJECT_KIND_VIEW_ACCESSOR_FOR_VROW, VIEW_OBJECT_KIND_VIEW_LINK_ACCESSOR, VIEW_OBJECT_KIND_VL_ACCESSOR_FOR_EOmFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIXIMAGE_LOC, PROP_ALWAYS_USE_SORT, QUERY_MODE_SCAN_DATABASE_TABLES, QUERY_MODE_SCAN_ENTITY_ROWS, QUERY_MODE_SCAN_UNPOSTED_ENTITY_ROWS, QUERY_MODE_SCAN_VIEW_ROWS, QUERY_MODE_SKIP_WHERE, QUERY_TIMEOUT_WAIT_FOREVER, XML_ELEM_PASSIVATE_TRANSIENTCOPY_OPT_ALL_ROWS, COPY_OPT_LIMIT_RANGE, FORWARD_ONLY, RANGE_PAGING, RANGE_PAGING_AUTO_POST, RANGE_PAGING_INCR, SCROLLABLEITER_MODE_LAST_PAGE_FULL, ITER_MODE_LAST_PAGE_PARTIAL, SLOT_BEFORE_FIRST, SLOT_BEYOND_LAST, SLOT_DELETED, SLOT_VALIDXML_IGNORE_DEPTH_COUNT, XML_OPT_ALL_ROWS, XML_OPT_ASSOC_CONSISTENT, XML_OPT_CHANGES_ONLY, XML_OPT_LIMIT_RANGE, XML_PASSIVATION_USEDEFINITION_STATE_ACTIVE, DEFINITION_STATE_DEPRECATED, PROPERTY_DEFINITION_STATE, PROPERTY_LABEL, PROPERTY_LABEL_PLURAL, PROPERTY_TOOLTIPDFLT_VIEW_CRITERIA_NAME, IMPLICIT_VIEW_CRITERIA_NAME, QUICKSEARCH_VIEW_CRITERIA_NAME| Constructor and Description |
|---|
RestDCDataVO() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
create() |
ViewRowImpl |
createInstance(ViewRowSetImpl viewRowSet,
AttributeList attrValList)
Creates a view row instance.
|
ViewRowImpl |
createInstanceFromResultSet(QueryCollection qc,
java.sql.ResultSet resultSet)
Creates a view row instance from the query result.
|
protected ViewRowSetImpl |
createViewAccessorRS(ViewAccessorDef accessorDef,
Row masterRow,
java.lang.Object[] values,
boolean addRSToMasterRow) |
ViewCriteria |
createViewCriteria()
Creates a new view criteria object for this View Object.
|
AttributeHints |
getCriteriaItemAttributeHints(ViewCriteriaItem vci)
By default return null.
|
long |
getEstimatedRowCount()
Makes an estimated count of the rows in this row set.
|
protected java.lang.String |
getSelfLink() |
boolean |
hasNext()
Indicates whether the iterator has a next row.
|
protected void |
prepareForCreate() |
void |
prepareVOForQuery()
Prepare view object for build query.
|
void |
processCriteriaItemOperators(ViewCriteriaItem vci,
java.util.List compOperList)
Subclasses may override this method to modify the default operators
list supported for a ViewCriteriaItem.
|
activateNewRow, activateState, applyViewCriteria, checkAddAttrDef, clearCache, cloneProperties, closeRowSet, createAndInitViewLinkAccessorAdapter, createFinderVO, createNewRowForCollection, createRowFromResultSet, doCreateData, doRemoveData, findByKey, findPersDefObject, getAccessorName, getAccessorStructureDefImpl, getAllCachedQueryCollections, getApplicationModuleForLocalViewObject, getBeanClassName, getCachedQueryCollection, getCappedQueryHitCount, getDataControl, getDataProvider, getDataProvider, getDefinitionManager, getFKAttrs, getFullNameForPersDef, getQueryHitCount, getStructureDef, getViewAccessorDefsInternal, initFromMasterAccessor, initSource, initSource, isCriteriaVO, isReadOnly, lookupAttributeDef, lookupListBindingDef, lookupVCItem, notifyRowUpdated, passivateState, personalizeAttributeDef, personalizeViewAttributeDef, prepareForActivation, prepareForPassivation, remapAttrIndex, removeQueryCollectionFromCache, retrieveByKey, setMethodInfo, setName, substituteAttribute, validateRangeSizeForRangePagingcreateViewLinkAccessorVO, dumpRows, executeQueryForCollection, getColumnNameForAttribute, getRangePagingData, getScrollableData, getUserDataIteratorForCollection, hasNextForCollection, retrieveDataByKey, unpinDetailRowSetQCs_internal_dbg_debug_data, activateCurrentRow, activateDynamicAttributeDefs, activateIteratorState, activateNewRow, activateNewRowTracker, activateNewRowTracker, activateState, activateState, activateTransientAttribute, activateTransients, activateTransients, addDynamicAttribute, addDynamicAttributeWithType, addDynamicAttributeWithTypeInternal, addForwardDependency, addListener, addManagementListener, addOrderByClause, addQueryMode, addRowSet, addViewAccessorDef, addViewCriteriaToWhereClause, addViewLink, addWhereClause, adjustERCWithChangedRows, afterCommit, afterEntityRemove, afterRemove, afterRollback, appendViewCriteria, appendXMLElementNodes, appendXMLElementNodes, applyBindVariableForCriteria, applyPersonalization, applyViewCriteria, beforeCommit, beforeEntityRemove, beforeRollback, bindFinderRS, bindParametersForCollection, bindRangePagingParams, buildEffectiveDateFromClauseFragment, buildEffectiveDateWhereClauseFragment, buildFromClause, buildKey, buildNewCollection, buildOrderByClause, buildQualifyingRowFilters, buildQuery, buildQuery, buildRangePagingQuery, buildRowFilter, buildSelectClause, buildSubquery, buildSubqueryFromClauses, buildViewCriteriaClauses, buildWhereClause, cancelQuery, checkPassivateViewAttributes, clearRowSetDataByRowFilterKeyInternal, clearViewCriterias, closeFreedStatements, closeRowSetIterator, createAndInitRow, createAndInitRowForCollection, createDetailRowSet, createInstanceWithEntities, createKey, createPersonalization, createRow, createRowSet, createRowSetIterator, createVariableValueManager, createVariableValueManagerForRS, createViewCriteriaManagerImpl, createViewCriteriaRowAttributeHints, createViewLinkAccessor, createViewLinkAccessorRS, createViewLinkScanBaseRS, createViewRowSet, createXMLDefinition, criteriaChanged, criteriaSelReqBindVarsChanged, deepCopy, defineNamedWhereClauseParam, deletePersonalization, disconnectCollection, doesRowFilterMatch, dumpQCs, editCodeSource, ensureCategoryManager, ensureCodeSource, enumerateRowsInRange, executeDetailQuery, executeEmptyRowSet, executeQuery, executeQueryForActivation, findAltKeyDef, findAndSetCurrentRowByKey, findAssociatedEntity, findAttributeDef, findByAltKey, findByAltKey, findByEntity, findByKey, findByViewCriteria, findByViewCriteriaForViewRowSet, findByViewCriteriaWithBindVars, findByViewCriteriaWithBindVars, findDateEffectiveRowByKey, findInCacheByAltKey, findInCacheByKey, findListBindingDef, findOrCreateLocalViewObject, findOrCreateLocalViewObject, findPrimaryKeyColumns, findRowFinder, findRowInQCs, findRowSet, findRowSetIterator, findRowsMatchingCriteria, findViewAccessorDef, findViewDefFromDiscrVals, findViewDefFromDiscrVals, findViewLinkAccessor, findViewLinkAccessorVO, first, forceExecuteQueryOfSharedVO, getAccessMode, getAccessorStructureDefName, getAllRowFinders, getAllRowsInRange, getAllRowsIterator, getAllViewCriteriaNames, getAllViewCriterias, getAltKeyAttrDefs, getApplicationModule, getApplyAllViewCriterias, getApplyJoinedViewCriteriaNames, getApplyViewCriteriaNames, getApplyViewCriterias, getAssociationClause, getAttrDefsForEntityAttr, getAttributeCount, getAttributeDef, getAttributeDefs, getAttributeIndexOf, getAttrIndicesForEntityAttr, getAvailableViewCriteriaNames, getBackwardDependencies, getBackwardDependencyAttributes, getBindingStyle, getBindValsForSqlGen, getByKeyFinderRS, getCalculatedAttributeCount, getCallableStatement, getCappedRowCount, getCategoryManager, getCliIteratorState, getCollectionStorageAttributeCount, getCollectionStorageAttributeDefs, getColumnNameForQuery, getCriteriaAdapter, getCriteriaItemClause, getCtrlHints, getCurrentRow, getCurrentRowIndex, getCurrentRowSlot, getDBSortCriteria, getDBTransaction, getDef, getDefaultAccessMode, getDefaultRangePagingCacheFactor, getDefaultRangeSize, getDefaultRowSet, getDefaultRowSetInternal, getDeferEstimatedRowCountProperty, getDeferredEstimatedRowCount, getDefFullName, getDefName, getDeleteParticipants, getDetailEstimatedRowCount, getDetailRowSets, getDiscrColLoadIndices, getDynamicAttributeCount, getDynamicAttributeOffset, getEntityDef, getEntityDefCount, getEntityDefs, getEstimatedRangePageCount, getExecutedSelectedAttributeNames, getExecutedSelectedEntityReferenceNames, getFetchedRowCount, getFetchMode, getFetchSize, getFilteredRows, getFilteredRows, getFilteredRowsInRange, getFilteredRowsInRange, getForeignKeyValues, getForwardDependencies, getForwardDependencyAttributes, getFromClause, getFromClauseFlags, getFullLoggingName, getFullSqlMode, getGlobalScript, getImageLoc, getImplObject, getInsertParticipants, getIterMode, getKeyAttributeDefs, getListBindingDefsInternal, getLockParticipants, getMasterKeyValues, getMasterRowSetIterators, getMaxFetchSize, getNamedWhereClauseParam, getNamedWhereClauseParams, getNextRangeSet, getOperationDefinitions, getOrderByClause, getOrderedCategories, getParametersAsStorageTypes, getPreparedStatement, getPreviousRangeSet, getPrimaryKeys, getProxyClassName, getProxyInterfaceName, getQualifyingRowFilters, getQuery, getQueryCollection, getQueryCollectionWeight, getQueryHint, getQueryHitCount, getQueryMode, getQueryOptimizerHint, getQueryTimeOut, getRangeIndexOf, getRangePageStartForCollection, getRangePagingCacheFactor, getRangeSize, getRangeStart, getReqdVC, getRequiredViewCriteria, getRow, getRowAtRangeIndex, getRowClass, getRowComparator, getRowCount, getRowCountInRange, getRowFilters, getRowFilterValues, getRowFinders, getRowFromHandle, getRowLimit, getRowMatch, getRowMatchBindValue, getRowMatchFromViewCriteria, getRowOperationDefinitions, getRowOperationsScript, getRowProxyClassName, getRowQualifier, getRowSet, getRowSetForSqlGen, getRowSetImpl, getRowSetIterator, getRowSetIterators, getRowSets, getRowSetsInternal, getScanRowFilterAttributeDefs, getSelectClause, getSelectClauseFlags, getSelectedAttributeNames, getSelectedEntityReferenceNames, getSignature, getSortBy, getSortCriteria, getSubclassDef, getSubclassDefFromStructureDef, getSubqueryLevel, getSubstitutedDefNames, getSyncLock, getTransPostHandle, getUserDataForCollection, getUserDefinedQuery, getViewAccessorDefs, getViewAttributeDefImpls, getViewCriteria, getViewCriteria, getViewCriteriaClause, getViewCriteriaClause, getViewCriteriaManager, getViewCriteriaManagerInternal, getViewCriteriaRowAttributeHints, getViewDef, getViewLinkAccessorInfo, getViewLinkAccessorInfo2, getViewLinkDestinationAttributes, getViewLinkNames, getViewLinks, getViewObject, getViewObjectKind, getWhereClause, getWhereClauseFlags, getWhereClauseParams, getXMLElementTag, getXMLRowElementTag, handleActivatedRowNotFound, hasDefaultRowSet, hasPrevious, hideAttributeDef, initFromDef, initSharedQCPoolProperties, insertRow, insertRowAtRangeIndex, isAssociationConsistent, isAttributeKey, isAutoPostChanges, isAutoRefreshEnabled, isCollectionPresent, isDefaultAssocConsistent, isDefaultRowSet, isDynamicAttribute, isDynamicAttribute, isEffectiveDated, isEntityReferenceSelected, isExecuted, isExecutedEmpty, isFetchComplete, isForeignKey, isForScan, isForwardOnly, isInternal, isKeyNameForPK, isManageRowsByKey, isMasterKeyValues, isMaxFetchSizeExceeded, isNameGenerated, isPassivatableTransientAttribute, isPassivationEnabled, isPolymorphicDefinition, isPostedToDB, isQueryChanged, isRangeAtBottom, isRangeAtTop, isRowFinderAttribute, isRowValidation, isRuntimeSelectFromGeneration, isRuntimeSQLGeneration, isSelectAllAttributes, isShared, isTransientTransactionListener, isTransientTransactionPostListener, isViewLinkAccessorRetained, last, lookupAltKeyDef, lookupExprDef, lookupRawAttributeDef, lookupRowFinder, lookupViewAccessorDef, markQueryCollectionDirty, marshalListBindingDefs, navigated, needsRefresh, next, notifyRowDeleted, notifyRowInserted, notifyRowUpdated, notifyRowUpdated, notifyRowUpdated, onChangeNotification, onDatabaseChangeNotification, passivateDynamicAttributeDef, passivateDynamicAttributes, passivateNewRowTracker, passivateState, passivateState, passivateTransients, passivateTransients, personalizeTransientExprAndDefValForBeans, populateAttributeForRow, postChanges, preFetchRowsByKeys, preFetchRowsByKeys, prepareForBatchMode, prepareRowSetForQuery, prepareRowSetForQuery, previous, printXMLDefinition, processChangeNotification, processDatabaseChangeNotification, processNewSelectSet, processSortCriteria, putViewCriteria, qualifiesRowFilter, rangeRefreshed, rangeScrolled, readFromXml, readRowXML, readRowXML, readXML, readXML, reconnectCollection, refreshCollection, refreshWhereClauseParams, registerChangeListener, registerDatabaseChangeListener, releaseUserDataForCollection, remove, removeApplyViewCriteriaName, removeCurrentRow, removeCurrentRowAndRetain, removeCurrentRowFromCollection, removeListener, removeManagementListener, removeMasterRowSetIterator, removeNamedWhereClauseParam, removeRowHandle, removeRowSet, removeViewCriteria, reset, resetCriteria, resetExecuted, resetSelectedAttributeDefs, resetSelectedAttributeDefs, resetSession, retrieveByKey, retrieveByKey, rowDeleted, rowInserted, rowQualifies, rowUpdated, scrollRange, scrollRangeTo, scrollToRangePage, selectAttributeDefs, setAccessMode, setApplyJoinedViewCriteriaNames, setApplyViewCriteriaName, setApplyViewCriteriaName, setApplyViewCriteriaNames, setAssociationConsistent, setAutoPostChanges, setBindingStyle, setClauseGenForRowMatch, setCurrentRow, setCurrentRowAtRangeIndex, setCurrentUnionViewCriteriaName, setDBSortCriteria, setDefaultAccessMode, setDefaultAssocConsistent, setDefaultRangePagingCacheFactor, setDefaultRangeSize, setFetchCompleteForCollection, setFetchMode, setFetchSize, setForwardOnly, setFromClause, setFromClauseFlags, setFullSqlMode, setIterMode, setKeyAttributeDefs, setListenToEntityEvents, setManageRowsByKey, setMasterRowSetIterator, setMaxFetchSize, setNamedWhereClauseParam, setNamedWhereClauseParams, setNestedSelectForFullSql, setOrderByClause, setOrderByOrSortBy, setPassivatableTransientAttribute, setPassivationEnabled, setPostedToDB, setProxyClassName, setQuery, setQueryAsChanged, setQueryChanged, setQueryHint, setQueryMode, setQueryOptimizerHint, setQueryTimeOut, setRangePagingCacheFactor, setRangeSize, setRangeStart, setReqdVC, setRequiredViewCriteria, setResultSetForCollection, setRowFilterValues, setRowMatch, setRowMatchFromViewCriteria, setRowQualifier, setRowValidation, setSelectClause, setSelectClauseFlags, setSortBy, setSortCriteria, setSubqueryLevel, setThrowOnListBindingMismatch, setTransPostHandle, setUserDataForCollection, setViewCriteriaAdapter, setViewLinkAccessorRetained, setWhereClause, setWhereClauseFlags, setWhereClauseParam, setWhereClauseParams, shouldPutJoinConstraintInWhereClause, showCursorUsage, skipFilterListOnKeyAttributesForRow, skipNamedWhereClauseParam, sortRows, sourceChanged, throwOnListBindingMismatch, unpinDetailQC, unselectAttributeDefs, updatePersonalization, updateRowSetFromXML, validate, writeXML, writeXML, writeXML, writeXMLaddListener, applyPersonalization, createRef, ensureVariableManager, findOperationDefinitions, getAdfmConfigStartupProperty, getAllProperties, getBooleanAdfmConfigProperty, getCompListeners, getCompListenersList, getDefinitionState, getHintValue, getLabel, getLabelPlural, getMessageBundleClass, getProxyClassName, getResourceBundleDef, getRootApplicationModule, getStringFromMessageBundle, getTooltip, getVariableManager, hasVariables, isDead, isPersonalized, isRegWithPiggyMan, resolvePropertyRaw, setParentisPropertyExpression, setParent, setPropertiesMapallocatePropertyMap, getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionDef, getPropertyExpressionsMap, getPropertyMap, getRawPropertyValue, getResourcesFromBundle, mergePropertyMap, refreshProperty, removeProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, setFullName, setPropertiesMap2, setProperty, setProperty, setPropertyExpression, setPropertyMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFullName, getNameensureVariableManager, getMessageBundleClass, getResourceBundleDef, getVariableManager, hasVariablesgetFullName, getNamegetDefinitionState, getHintValue, getLabel, getLabelPlural, getTooltipgetProperties, getProperty, getProperty, refreshPropertygetName, getProperty, getResourceBundleDefgetFullNamepublic static final java.lang.String PNAME_ROW_LEVEL_LOV
protected void prepareForCreate()
prepareForCreate in class DCDataVOpublic void prepareVOForQuery()
ViewObjectImplprepareVOForQuery in class ViewObjectImplpublic void processCriteriaItemOperators(ViewCriteriaItem vci, java.util.List compOperList)
ViewObjectImplFor example, the following code snippet can be used to remove all the relational operators for a String type ViewCriteriaItem and to remove all the operators for a Date type ViewCriteriaItem.
if (ViewCriteriaItem.VCITEM_DATATYPE_STRING.equals(vci.get(ViewCriteriaItem.DATATYPE)))
{
Iterator iter = compOperList.iterator();
String oper = null;
while (iter.hasNext())
{
oper = ((JboCompOper) iter.next()).getOper();
if (JboCompOper.OPER_GT.equals(oper) || JboCompOper.OPER_GE.equals(oper) ||
JboCompOper.OPER_LT.equals(oper) || JboCompOper.OPER_LE.equals(oper))
{
iter.remove();
}
}
}
else if (ViewCriteriaItem.VCITEM_DATATYPE_DATE.equals(vci.get(ViewCriteriaItem.DATATYPE)))
{
compOperList.clear();
}
processCriteriaItemOperators in interface ViewObjectprocessCriteriaItemOperators in class ViewObjectImplvci - The ViewCriteriaItem for which the operators list can be modified.compOperList - List of JboCompOper objects. The list contains the default
operators list supported for the ViewCriteriaItem based on its data type.public AttributeHints getCriteriaItemAttributeHints(ViewCriteriaItem vci)
ViewObjectImplgetCriteriaItemAttributeHints in interface ViewObjectgetCriteriaItemAttributeHints in class ViewObjectImplprotected java.lang.String getSelfLink()
protected void create()
create in class ProgrammaticViewObjectImplprotected ViewRowSetImpl createViewAccessorRS(ViewAccessorDef accessorDef, Row masterRow, java.lang.Object[] values, boolean addRSToMasterRow)
createViewAccessorRS in class DCDataVOpublic long getEstimatedRowCount()
ViewObjectImpl
This method estimates the number of rows in the row count
by calling getQueryHitCount
(which performs a SELECT COUNT (*) FROM table).
Internal logic in Business Components for Java keeps the
EstimatedRowCount up-to-date as rows are
inserted and removed.
Thus, after the first call to this method, it can return
the estimated count quickly.
For example:
// Get the rowcount again because of deleted or inserted row rowCount = (int) iter.getRowSet().getEstimatedRowCount();
If you are working with a large number of rows, or if your application
demands a fast response, use this method instead of
getRowCount.
Note however, that this method might not be as accurate as
getRowCount(). To test whether the View Object has read
all the rows from the cursor, you can use getEstimatedRowCount()
in conjunction with getFetchedRowCount(). For example,
getEstimatedRowCount() returns an equivalent
of count(*) on the View Object. The getFetchedRowCount
method returns the count of rows already fetched. If getFetchedRowCount() returns a
value less than getEstimatedRowCount(), then the View Object has not read all rows
from the cursor.
getEstimatedRowCount in interface RowSetgetEstimatedRowCount in class ViewObjectImplViewObjectImpl.getQueryHitCount(ViewRowSetImpl),
ViewObjectImpl.getFetchedRowCount()public boolean hasNext()
ViewObjectImpl
This method delegates to the default RowSetIterator.
If this method is called on a row set that has not yet been
executed, executeQuery is implicitly called.
This method does not move the current row.
hasNext in interface RowIteratorhasNext in class ViewObjectImpltrue if the row set has a next row, or
false if not.public ViewRowImpl createInstance(ViewRowSetImpl viewRowSet, AttributeList attrValList)
ViewObjectImpl
This method is called by ViewObjectImpl.createRow().
The view row is created, and if it is a detail row for some View Link,
its foreign key value attributes are initialized.
createInstance in class DCDataVOviewRowSet - the row set requesting the new row instance.attrValList - a list of attribute values to be used
for initializing the view row.
If it is a detail row for some View Link, this list will
contain foreign key values.ViewObjectImpl.createRow()public ViewRowImpl createInstanceFromResultSet(QueryCollection qc, java.sql.ResultSet resultSet)
ViewObjectImpl
This method is called as the user navigates through the query result.
As rows are traversed through the JDBC ResultSet, view
rows are created through calls to this method.
createInstanceFromResultSet in class ViewObjectImplqc - query collection.resultSet - JDBC ResultSet.public ViewCriteria createViewCriteria()
ViewObjectImpl
A view criteria is a more structured way
of creating a SQL query WHERE clause. After setting various conditions for the
view criteria object, the application can call
applyViewCriteria
This method should not be overridden.
createViewCriteria in interface ViewObjectcreateViewCriteria in class ViewObjectImplViewCriteria,
ViewObjectImpl.applyViewCriteria(ViewCriteria)