public class ERD2WQueryPage extends ERD2WPage implements ERDQueryPageInterface
In addition to the rest of the goodies of ERD2WPage, it lets you save and restore the initial query bindings by supplying a NS(Mutable)Dictionary which contains the keys "queryMin", "queryMax" etc from the respective fields of the WODisplayGroup.
Name | Description |
---|---|
fetchSpecificationName | fetchSpecificationName |
enableQueryForNullValues | enableQueryForNullValues |
isDeep | isDeep |
usesDistinct | usesDistinct |
refrehRefetchedObjects | refrehRefetchedObjects |
fetchLimit | fetchLimit |
prefetchingRelationshipKeyPaths | prefetchingRelationshipKeyPaths |
showListInSamePage | showListInSamePage |
listConfigurationName | listConfigurationName |
queryDataSourceDelegate | queryDataSourceDelegate |
queryValidationDelegate | queryValidationDelegate |
enableQueryForNullValues | enableQueryForNullValues |
canQueryPropertyForNullValues | canQueryPropertyForNullValues |
ERD2WPage.Keys, ERD2WPage.ValidationDelegate
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException
Modifier and Type | Field and Description |
---|---|
protected NSArray |
_nullablePropertyKeys |
protected boolean |
didLoadQueryBindings |
protected WODisplayGroup |
displayGroup |
protected com.webobjects.eocontrol.EOFetchSpecification |
fetchSpecification |
protected NSMutableDictionary |
keysToQueryForNull |
protected NSDictionary |
queryBindings |
protected ERDQueryDataSourceDelegateInterface |
queryDataSourceDelegate |
protected ERDQueryValidationDelegate |
queryValidationDelegate |
com.webobjects.appserver.WOComponent |
returnPage |
protected Boolean |
showResults |
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _pageController, _userInfo, errorKeyOrder, errorMessage, errorMessages, keyPathsWithValidationExceptions, log, validationDelegate, validationDelegateInited, validationLog
_eo, _localContext, currentObjectKey
_Extension, _IsEventLoggingEnabled, _keyAssociations
Constructor and Description |
---|
ERD2WQueryPage(com.webobjects.appserver.WOContext context) |
Modifier and Type | Method and Description |
---|---|
void |
appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
Overridden from the parent for better logging.
|
void |
awake()
Overridden to lock the page's editingContext, if there is any present.
|
com.webobjects.appserver.WOComponent |
cancelAction() |
boolean |
canQueryCurrentPropertyForNullValue()
Determines if the null query checkbox can be shown for the current D2W property key should be checked.
|
com.webobjects.appserver.WOComponent |
clearAction()
ディスプレイ・グループの全クエリ設定を取り除きます。
|
protected void |
createDisplayGroup() |
com.webobjects.eocontrol.EODataSource |
defaultQueryDataSource()
Default implementation of which assembles the data source for the search results page, configured
for the current query.
|
WODisplayGroup |
displayGroup()
Gets the display group.
|
int |
fetchLimit() |
com.webobjects.eocontrol.EOFetchSpecification |
fetchSpecification() |
String |
fetchSpecificationName() |
String |
headerTemplate() |
boolean |
isDeep() |
boolean |
isNullQueryCheckedForCurrentProperty()
Determines if the null query checkbox for the current D2W property key should be checked.
|
protected void |
loadQueryBindings() |
NSArray |
nullablePropertyKeys()
Discovers the property keys that can be queried for a NULL value.
|
NSArray |
prefetchingRelationshipKeyPaths() |
protected void |
pullQueryBindingsForName(String name) |
protected void |
pushQueryBindingsForName(String name) |
com.webobjects.eocontrol.EOQualifier |
qualifier() |
com.webobjects.appserver.WOComponent |
queryAction() |
NSDictionary |
queryBindings() |
com.webobjects.eocontrol.EODataSource |
queryDataSource()
Assembles the data source for the search results page, configured for the current query.
|
ERDQueryDataSourceDelegateInterface |
queryDataSourceDelegate()
Gets the query data source delegate.
|
com.webobjects.eocontrol.EOFetchSpecification |
queryFetchSpecification() |
ERDQueryValidationDelegate |
queryValidationDelegate()
Gets the query validation delegate.
|
boolean |
refreshRefetchedObjects() |
com.webobjects.appserver.WOComponent |
returnAction() |
protected void |
saveQueryBindings() |
void |
setCancelDelegate(com.webobjects.directtoweb.NextPageDelegate cancelDelegate) |
void |
setFetchSpecification(com.webobjects.eocontrol.EOFetchSpecification value) |
void |
setFetchSpecificationName(String value) |
void |
setIsNullQueryCheckedForCurrentProperty(boolean value)
Sets the flag denoting a property key is being queried for a null value.
|
void |
setQueryBindings(NSDictionary dictionary) |
void |
setQueryDataSource(com.webobjects.eocontrol.EODataSource datasource)
Sets the query data source.
|
void |
setQueryDataSourceDelegate(ERDQueryDataSourceDelegateInterface delegate)
Sets the query data source delegate.
|
void |
setQueryMatchForKey(Object value,
String operator,
String key)
Set a search value for the display group query match.
|
void |
setQueryValidationDelegate(ERDQueryValidationDelegate delegate)
Sets the query validation delegate.
|
void |
setShowResults(boolean value) |
boolean |
showCancel() |
boolean |
showResults() |
protected void |
substituteValueForNullableQueryKeys()
When querying for properties with a null value, and the null value checkbox for a property key is checked, this
method substitutes
NSKeyValueCoding.NullValue into the display group's query dictionaries for that
property key. |
void |
takeValuesFromRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
Overridden from the parent for better logging.
|
boolean |
usesDistinct() |
aggregateEventDurationForCurrentPropertyKey, allConfigurationNames, branch, branchChoices, branchName, clearTabSectionsContents, clearValidationFailed, clickToOpenEnabled, cssClassForPageContainerElement, cssClassForPropertyKey, cssClassForPropertyName, currentSection, currentSectionKeys, currentTab, d2wComponentNameDebuggingEnabled, d2wContext, d2wCurrentComponentName, d2wDebuggingEnabled, descriptionForResponse, displayVariant, editingContext, errorKeyOrder, errorMessage, errorMessageForPropertyKey, errorMessages, hasActualChanges, hasBranchChoices, hasErrors, hasValidationExceptionForPropertyKey, inlineStyleDeclarationForPropertyKey, inlineStyleDeclarationForPropertyName, invokeAction, isEmbedded, isEntityEditable, isEntityReadOnly, isKeyOmitted, isObjectDeleteable, isObjectEditable, isObjectInspectable, isTopLevelPage, latestEntryForCurrentPropertyKey, makeStatsKey, nextPage, nextPageDelegate, nextPageFromDelegate, now, object, pageController, pageWithName, pageWrapperName, sectionsContents, sectionsForCurrentTab, self, setBranch, setCurrentSection, setCurrentTab, setD2wContext, setDataSource, setEditingContext, setErrorMessage, setErrorMessages, setLocalContext, setNextPage, setNextPageDelegate, setObject, setPageController, settings, setValidationDelegate, shouldCollectValidationExceptions, shouldDisplayDetailedPageMetrics, shouldDisplayPageMetricsSummary, shouldPropagateExceptions, shouldSetFailedValidationValue, sleep, statsForPage, statsKeyForCurrentPropertyKey, statsKeyPrefix, tabSectionsContents, tabSectionsContentsFromRuleResult, urlForCurrentState, userInfo, userPreferencesValueForKey, userPreferencesValueForPageConfigurationKey, validationDelegate, validationFailedWithException
alternateRowColor, dataSource, extraBindings, replacementAssociationForAssociation, setExtraBindings
allEntities, allowCollapsing, applicationPort, assistantPort, attribute, backgroundColorForHeaderRow, backgroundColorForPage, backgroundColorForTable, backgroundColorForTableDark, backgroundColorForTableLight, color, currentSettings, currentUrl, d2wContextVisibleEntityNamesCountPlus1, defaultRowspan, displayNameForKeyWhenRelationship, displayNameForProperty, displayPropertyKeys, dynamicPages, entity, entityName, formatter, generationReplacementFor, generationReplacementForCurrentObject, hasCustomKey, hasEntity, hasNoColor, homeClicked, homeHref, isEditing, isEntityReadOnly, isLiveAssistantEnabled, isNotBoldAsBoolean, isNotItalicAsBoolean, isPropertyAnAttribute, isWebAssistantActive, isWebAssistantConnected, isWebAssistantEnabled, keyForGenerationReplacementForVariableNamed, keyWhenRelationship, lastUrl, length, localContext, logout, objectPropertyValue, objectPropertyValueIsNonNull, pageTitle, property, propertyKey, propertyValueClassName, relationship, resourcePathURL, sessionID, setCurrentSettings, setDynamicPages, setEntities, setEntity, setEntityName, setPropertyKey, setResourcePathURL, setTask, setTasks, showBanner, showWebAssistant, submitActionName, target, task, tasks, visibleEntityNames
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
protected WODisplayGroup displayGroup
protected boolean didLoadQueryBindings
protected NSDictionary queryBindings
protected com.webobjects.eocontrol.EOFetchSpecification fetchSpecification
protected ERDQueryDataSourceDelegateInterface queryDataSourceDelegate
protected ERDQueryValidationDelegate queryValidationDelegate
protected NSArray _nullablePropertyKeys
protected NSMutableDictionary keysToQueryForNull
protected Boolean showResults
public com.webobjects.appserver.WOComponent returnPage
protected void createDisplayGroup()
protected void pullQueryBindingsForName(String name)
public com.webobjects.appserver.WOComponent clearAction()
public com.webobjects.eocontrol.EOFetchSpecification fetchSpecification()
public void setFetchSpecification(com.webobjects.eocontrol.EOFetchSpecification value)
public void setFetchSpecificationName(String value)
public String fetchSpecificationName()
public com.webobjects.eocontrol.EOFetchSpecification queryFetchSpecification()
protected void pushQueryBindingsForName(String name)
public void takeValuesFromRequest(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
ERD2WPage
takeValuesFromRequest
in class ERD2WPage
public void appendToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
ERD2WPage
appendToResponse
in class ERD2WPage
protected void saveQueryBindings()
protected void loadQueryBindings()
public void awake()
ERD2WPage
public boolean isDeep()
public NSDictionary queryBindings()
public void setQueryBindings(NSDictionary dictionary)
public boolean usesDistinct()
public boolean refreshRefetchedObjects()
public int fetchLimit()
public NSArray prefetchingRelationshipKeyPaths()
public com.webobjects.eocontrol.EOQualifier qualifier()
public boolean showResults()
public void setShowResults(boolean value)
public com.webobjects.appserver.WOComponent queryAction()
public com.webobjects.appserver.WOComponent cancelAction()
public com.webobjects.appserver.WOComponent returnAction()
public boolean showCancel()
showCancel
in class ERD2WPage
public com.webobjects.eocontrol.EODataSource queryDataSource()
queryDataSourceDelegate()
is defined, the delegate's implementation is invoked. Otherwise,
the defaultQueryDataSource()
is returned.queryDataSource
in interface com.webobjects.directtoweb.QueryPageInterface
queryDataSource
in interface ERDQueryPageInterface
public void setQueryDataSource(com.webobjects.eocontrol.EODataSource datasource)
datasource
- to be used as the query data sourcepublic com.webobjects.eocontrol.EODataSource defaultQueryDataSource()
public ERDQueryDataSourceDelegateInterface queryDataSourceDelegate()
public void setQueryDataSourceDelegate(ERDQueryDataSourceDelegateInterface delegate)
delegate
- to use as the query data source delegatepublic ERDQueryValidationDelegate queryValidationDelegate()
public void setQueryValidationDelegate(ERDQueryValidationDelegate delegate)
delegate
- to use as the query validation delegate
クエリ検証デリゲートをセットします。delegate
- - クエリ検証デリゲート (@see ERDQueryValidationDelegate)
public WODisplayGroup displayGroup()
public String headerTemplate()
public void setQueryMatchForKey(Object value, String operator, String key)
queryMatch()
, if it is ">" is uses queryMin()
,
so you can use it with the various date range components.setQueryMatchForKey
in interface ERDQueryPageInterface
value
- to assign to the queryMatch dictionary for the given keyoperator
- used for comparing the valuekey
- to usepublic void setCancelDelegate(com.webobjects.directtoweb.NextPageDelegate cancelDelegate)
setCancelDelegate
in interface ERDQueryPageInterface
public NSArray nullablePropertyKeys()
public boolean isNullQueryCheckedForCurrentProperty()
public void setIsNullQueryCheckedForCurrentProperty(boolean value)
value
- of the checkbox' checked attributepublic boolean canQueryCurrentPropertyForNullValue()
protected void substituteValueForNullableQueryKeys()
NSKeyValueCoding.NullValue
into the display group's query dictionaries for that
property key.Copyright © 2002 – 2020 Project Wonder.