public class DSViewObjectImpl extends ViewObjectImpl
ATTR_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_THROW_ON_DUPE_SYSEFFECTIVEDATEBINDVAR, 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 |
|---|
DSViewObjectImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected RowFilter |
buildRowFilter(java.lang.Object[] paramValues) |
protected ViewRowImpl |
createRowFromResultSet(java.lang.Object qc,
java.sql.ResultSet resultSet) |
protected void |
executeQueryForCollection(java.lang.Object qcObj,
java.lang.Object[] params,
int noUserParams)
Override from VO to execute the other side
|
long |
getQueryHitCount(ViewRowSetImpl viewRowSet,
Row[] masterRows) |
protected boolean |
hasNextForCollection(java.lang.Object qc)
;cefmnov* Override from VO to find if the source collection has any more rows.
|
void |
rangeRefreshed(RangeRefreshEvent event)
Invoked when the range changes.
|
void |
setFetchSize(short size)
Sets the number of rows that JDBC will fetch from the database during one
round trip.
|
int |
setRangeSize(int size)
Sets the range size for the iterator.
|
int |
setRangeStart(int start)
Positions the range.
|
_internal_dbg_debug_data, activateCurrentRow, activateDynamicAttributeDefs, activateIteratorState, activateNewRow, activateNewRowTracker, activateNewRowTracker, activateState, activateState, activateState, activateTransientAttribute, activateTransients, activateTransients, addCriteriaInPDef, addDynamicAttribute, addDynamicAttributeWithType, addDynamicAttributeWithTypeInternal, addForwardDependency, addListener, addManagementListener, addOrderByClause, addQueryMode, addRowSet, addViewAccessorDef, addViewCriteriaToWhereClause, addViewLink, addWhereClause, adjustERCWithChangedRows, afterCommit, afterEntityRemove, afterRemove, afterRollback, appendViewCriteria, appendViewCriteria, appendXMLElementNodes, appendXMLElementNodes, applyBindVariableForCriteria, applyPersonalization, applyViewCriteria, applyViewCriteria, beforeCommit, beforeEntityRemove, beforeRollback, bindFinderRS, bindParametersForCollection, bindRangePagingParams, buildEffectiveDateFromClauseFragment, buildEffectiveDateWhereClauseFragment, buildFromClause, buildKey, buildNewCollection, buildOrderByClause, buildQualifyingRowFilters, buildQuery, buildQuery, buildRangePagingQuery, buildSelectClause, buildSubquery, buildSubqueryFromClauses, buildViewCriteria, buildViewCriteriaClauses, buildWhereClause, cancelQuery, checkAddAttrDef, checkPassivateViewAttributes, clearCache, clearRowSetDataByRowFilterKeyInternal, clearViewCriterias, closeFreedStatements, closeRowSet, closeRowSetIterator, createAndInitRow, createAndInitRowForCollection, createDetailRowSet, createFinderVO, createInstance, createInstanceFromResultSet, createInstanceWithEntities, createKey, createNewRowForCollection, createRow, createRowSet, createRowSetIterator, createVariableValueManager, createVariableValueManagerForRS, createViewAccessorRS, createViewCriteria, createViewCriteriaManagerImpl, createViewCriteriaRowAttributeHints, createViewLinkAccessor, createViewLinkAccessorRS, createViewLinkAccessorVO, createViewLinkScanBaseRS, createViewRowSet, createXMLDefinition, criteriaChanged, criteriaSelReqBindVarsChanged, deepCopy, defineNamedWhereClauseParam, deleteCriteriaInPDef, disconnectCollection, doesRowFilterMatch, dumpQCs, editCodeSource, ensureCategoryManager, ensureCodeSource, enumerateRowsInRange, executeDetailQuery, executeEmptyRowSet, executeQuery, executeQueryForActivation, findAltKeyDef, findAndSetCurrentRowByKey, findAssociatedEntity, findAttributeDef, findByAltKey, findByAltKey, findByEntity, findByKey, findByKey, findByViewCriteria, findByViewCriteriaForViewRowSet, findByViewCriteriaWithBindVars, findByViewCriteriaWithBindVars, findDateEffectiveRowByKey, findEffectiveDateRangeStartRow, findInCacheByAltKey, findInCacheByKey, findListBindingDef, findOrCreateLocalViewObject, findOrCreateLocalViewObject, findOrCreatePDefViewObject, findPrimaryKeyColumns, findRowFinder, findRowInQCs, findRowSet, findRowSetIterator, findRowsMatchingCriteria, findViewAccessorDef, findViewDefFromDiscrVals, findViewDefFromDiscrVals, findViewLinkAccessor, findViewLinkAccessorVO, first, forceExecuteQueryOfSharedVO, getAccessMode, getAccessorStructureDefName, getAllCachedQueryCollections, getAllRowFinders, getAllRowsInRange, getAllRowsIterator, getAllViewCriteriaNames, getAllViewCriterias, getAltKeyAttrDefs, getApplicationModule, getApplicationModuleForLocalViewObject, getAppliedSortCriteria, getApplyAllViewCriterias, getApplyJoinedViewCriteriaNames, getApplyViewCriteriaNames, getApplyViewCriterias, getAssociationClause, getAttrDefsForEntityAttr, getAttributeCount, getAttributeDef, getAttributeDefs, getAttributeIndexOf, getAttributePrivateProperties, getAttrIndicesForEntityAttr, getAvailableViewCriteriaNames, getBackwardDependencies, getBackwardDependencyAttributes, getBindingStyle, getBindValsForSqlGen, getByKeyFinderRS, getCachedQueryCollection, getCalculatedAttributeCount, getCallableStatement, getCappedQueryHitCount, getCappedRowCount, getCategoryManager, getCliIteratorState, getCollectionStorageAttributeCount, getCollectionStorageAttributeDefs, getColumnNameForQuery, getCriteriaAdapter, getCriteriaItemAttributeHints, 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, getEstimatedRowCount, getExecutedSelectedAttributeNames, getExecutedSelectedEntityReferenceNames, getFetchedRowCount, getFetchMode, getFetchSize, getFilteredRows, getFilteredRows, getFilteredRowsInRange, getFilteredRowsInRange, getForeignKeyValues, getForwardDependencies, getForwardDependencyAttributes, getFromClause, getFromClauseFlags, getFullLoggingName, getFullSqlMode, getGlobalOperations, 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, getRowOperations, 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, getViewAccessorDefsInternal, getViewAttributeDefImpls, getViewCriteria, getViewCriteria, getViewCriteriaClause, getViewCriteriaClause, getViewCriteriaManager, getViewCriteriaManagerInternal, getViewCriteriaRowAttributeHints, getViewDef, getViewLinkAccessorInfo, getViewLinkAccessorInfo2, getViewLinkDestinationAttributes, getViewLinkNames, getViewLinks, getViewObject, getViewObjectKind, getWhereClause, getWhereClauseFlags, getWhereClauseParams, getXMLElementTag, getXMLRowElementTag, handleActivatedRowNotFound, hasDefaultRowSet, hasNext, hasPrevious, hideAttributeDef, initFromDef, initSharedQCPoolProperties, insertRow, insertRowAtRangeIndex, isAssociationConsistent, isAttributeKey, isAttributeUpdateable, 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, isReadOnly, isRowFinderAttribute, isRowValidation, isRuntimeSelectFromGeneration, isRuntimeSQLGeneration, isSelectAllAttributes, isShared, isTransientTransactionListener, isTransientTransactionPostListener, isViewLinkAccessorRetained, last, lookupAltKeyDef, lookupAttributeDef, lookupExprDef, lookupListBindingDef, lookupRawAttributeDef, lookupRowFinder, lookupViewAccessorDef, markQueryCollectionDirty, marshalListBindingDefs, navigated, needsRefresh, next, notifyRowDeleted, notifyRowInserted, notifyRowUpdated, notifyRowUpdated, notifyRowUpdated, notifyRowUpdated, onChangeNotification, onDatabaseChangeNotification, passivateDynamicAttributeDef, passivateDynamicAttributes, passivateNewRowTracker, passivateState, passivateState, passivateState, passivateTransients, passivateTransients, personalizeAttributeDef, personalizeTransientExprAndDefValForBeans, personalizeViewAttributeDef, populateAttributeForRow, postChanges, preFetchRowsByKeys, preFetchRowsByKeys, prepareForActivation, prepareForBatchMode, prepareForPassivation, prepareRowSetForQuery, prepareRowSetForQuery, prepareVOForQuery, previous, printXMLDefinition, processChangeNotification, processCriteriaItemOperators, processDatabaseChangeNotification, processNewSelectSet, processSortCriteria, putViewCriteria, qualifiesRowFilter, rangeScrolled, readFromXml, readRowXML, readRowXML, readXML, readXML, reconnectCollection, refreshCollection, refreshWhereClauseParams, registerChangeListener, registerDatabaseChangeListener, releaseUserDataForCollection, remapAttrIndex, remove, removeApplyViewCriteriaName, removeCurrentRow, removeCurrentRowAndRetain, removeCurrentRowFromCollection, removeListener, removeManagementListener, removeMasterRowSetIterator, removeNamedWhereClauseParam, removeQueryCollectionFromCache, removeRowHandle, removeRowSet, removeViewCriteria, reset, resetCriteria, resetExecuted, resetSelectedAttributeDefs, resetSelectedAttributeDefs, resetSession, retrieveByKey, 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, 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, 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, substituteAttribute, throwOnListBindingMismatch, unpinDetailQC, unselectAttributeDefs, updateCriteriaInPDef, updateRowSetFromXML, validate, validateRangeSizeForRangePaging, writeXML, writeXML, writeXML, writeXMLaddListener, applyPersonalization, create, createRef, ensureVariableManager, findPersDefObject, getAdfmConfigStartupProperty, getAllProperties, getBooleanAdfmConfigProperty, getCompListeners, getCompListenersList, getDefinitionManager, getDefinitionState, getFullNameForPersDef, getHintValue, getLabel, getLabelPlural, getMessageBundleClass, getProxyClassName, getResourceBundleDef, getRootApplicationModule, getStringFromMessageBundle, getTooltip, getVariableManager, hasVariables, isDead, isPersonalized, isRegWithPiggyMan, resolvePropertyRaw, setName, setParentisPropertyExpression, setParent, setPropertiesMapallocatePropertyMap, getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionDef, getPropertyExpressionsMap, getPropertyMap, getPropertyNamesSet, 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, getFullNameForPersDef, getNamegetDefinitionState, getHintValue, getLabel, getLabelPlural, getTooltipgetProperties, getProperty, getProperty, refreshPropertygetName, getProperty, getResourceBundleDefgetFullNameprotected void executeQueryForCollection(java.lang.Object qcObj,
java.lang.Object[] params,
int noUserParams)
executeQueryForCollection in class ViewObjectImplqcObj - the query collection about to execute the query.params - the bind parameters that will be applied to the query.noUserParams - the number of user bind parameters supplied
through the setWhereClauseParam calls.protected RowFilter buildRowFilter(java.lang.Object[] paramValues)
buildRowFilter in class ViewObjectImplprotected ViewRowImpl createRowFromResultSet(java.lang.Object qc, java.sql.ResultSet resultSet)
createRowFromResultSet in class ViewObjectImplprotected boolean hasNextForCollection(java.lang.Object qc)
hasNextForCollection in class ViewObjectImplpublic long getQueryHitCount(ViewRowSetImpl viewRowSet, Row[] masterRows)
getQueryHitCount in class ViewObjectImplpublic void setFetchSize(short size)
ViewObjectImplThe framework will use this value to set the JDBC row pre-fetch size. Note that the row pre-fetch size has performance ramifications. A larger fetch size is more expensive in terms of memory usage than a smaller size. The default fetch size is 1 row.
If the value of ViewObjectImpl.setFetchMode(byte) is FETCH_ALL, then
the value of setFetchSize is disregarded.
For each View Object, this method is customizable. Deciding what value to use could be made at runtime based on how many rows are expected for a particular View Object.
setFetchSize in class ViewObjectImplsize - number of rows to fetch from the database. 1 is the default.ViewObjectImpl.setFetchMode(byte)public int setRangeSize(int size)
ViewObjectImplThe following code example creates one View Object, uses the default iterator to display one row at a time, and creates a second iterator on the same View Object to display a range of five rows.
// Create the View Object within the context defined by the
// Application Module. The View Object provides a default iterator.
ViewObject vo = appMod.createViewObject(voName, voDefFile);
// Create another iterator.
RowSetIterator secondIter = vo.createRowSetIterator("Two");
secondIter.setRangeSize(5);
setRangeSize in interface RowIteratorsetRangeSize in class ViewObjectImplsize - the new range size, or -1 if all rows are to be included.RowIterator.setRangeStart(int)public int setRangeStart(int start)
ViewObjectImpl
This method scrolls the range to make the row of
the specified start index the first row of the range. If successful,
RowSetListener.rangeScrolled() is called to send
a ScrollEvent to registered RowSetListener.
If start indicates a row beyond the last row, the range
will be scrolled to the end of the row set.
In the following code sample, the range starts with the fourth row. Assume that printRows is a helper function defined elsewhere.
vo.setRangeStart(4);
vo.setRangeSize(3);
// this command prints rows 4 - 6.
printRows(vo.getAllRowsInRange(), vo.getRangeStart());
setRangeStart in interface RowIteratorsetRangeStart in class ViewObjectImplstart - an absolute row index.ScrollEvent,
RowSetListenerpublic void rangeRefreshed(RangeRefreshEvent event)
RowSetListenerrangeRefreshed in interface RowSetListenerrangeRefreshed in class ViewObjectImplevent - a description of the new ranges.