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
WOComponent._EventLoggingEnabler, WOComponent.Event
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
Modifier and Type | Field and Description |
---|---|
protected NSArray |
_nullablePropertyKeys |
protected boolean |
didLoadQueryBindings |
protected WODisplayGroup |
displayGroup |
protected EOFetchSpecification |
fetchSpecification |
protected NSMutableDictionary |
keysToQueryForNull |
protected NSDictionary |
queryBindings |
protected ERDQueryDataSourceDelegateInterface |
queryDataSourceDelegate |
protected ERDQueryValidationDelegate |
queryValidationDelegate |
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
_CLASS
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
NullValue
_CLASS
Constructor and Description |
---|
ERD2WQueryPage(WOContext context) |
Modifier and Type | Method and Description |
---|---|
void |
appendToResponse(WOResponse response,
WOContext context)
Overridden from the parent for better logging.
|
void |
awake()
Overridden to lock the page's editingContext, if there is any present.
|
WOComponent |
cancelAction() |
boolean |
canQueryCurrentPropertyForNullValue()
Determines if the null query checkbox can be shown for the current D2W property key should be checked.
|
WOComponent |
clearAction()
ディスプレイ・グループの全クエリ設定を取り除きます。
|
protected void |
createDisplayGroup() |
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() |
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) |
EOQualifier |
qualifier() |
WOComponent |
queryAction() |
NSDictionary |
queryBindings() |
EODataSource |
queryDataSource()
Assembles the data source for the search results page, configured for the current query.
|
ERDQueryDataSourceDelegateInterface |
queryDataSourceDelegate()
Gets the query data source delegate.
|
EOFetchSpecification |
queryFetchSpecification() |
ERDQueryValidationDelegate |
queryValidationDelegate()
Gets the query validation delegate.
|
boolean |
refreshRefetchedObjects() |
WOComponent |
returnAction() |
protected void |
saveQueryBindings() |
void |
setCancelDelegate(com.webobjects.directtoweb.NextPageDelegate cancelDelegate) |
void |
setFetchSpecification(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(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(WORequest request,
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 EOFetchSpecification fetchSpecification
protected ERDQueryDataSourceDelegateInterface queryDataSourceDelegate
protected ERDQueryValidationDelegate queryValidationDelegate
protected NSArray _nullablePropertyKeys
protected NSMutableDictionary keysToQueryForNull
protected Boolean showResults
public WOComponent returnPage
public ERD2WQueryPage(WOContext context)
protected void createDisplayGroup()
protected void pullQueryBindingsForName(String name)
public WOComponent clearAction()
public EOFetchSpecification fetchSpecification()
public void setFetchSpecification(EOFetchSpecification value)
public void setFetchSpecificationName(String value)
public String fetchSpecificationName()
public EOFetchSpecification queryFetchSpecification()
protected void pushQueryBindingsForName(String name)
public void takeValuesFromRequest(WORequest request, WOContext context)
ERD2WPage
takeValuesFromRequest
in class ERD2WPage
public void appendToResponse(WOResponse response, 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 EOQualifier qualifier()
public boolean showResults()
public void setShowResults(boolean value)
public WOComponent queryAction()
public WOComponent cancelAction()
public WOComponent returnAction()
public boolean showCancel()
showCancel
in class ERD2WPage
public 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(EODataSource datasource)
datasource
- to be used as the query data sourcepublic 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 – 2024 Project Wonder.