Project Wonder 5.0.0.8794

er.directtoweb.pages
Class ERD2WQueryPage

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WOComponent
          extended by com.webobjects.directtoweb.D2WComponent
              extended by com.webobjects.directtoweb.D2WPage
                  extended by er.directtoweb.pages.ERD2WPage
                      extended by er.directtoweb.pages.ERD2WQueryPage
All Implemented Interfaces:
WOActionResults, com.webobjects.directtoweb.generation.DTWGeneration, QueryPageInterface, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, ERDBranchInterface, ERDQueryPageInterface, ERDUserInfoInterface, ERXComponentActionRedirector.Restorable, ERXExceptionHolder, Serializable, Cloneable
Direct Known Subclasses:
ERD2WQueryPageTemplate, ERD2WQueryPageWithFetchSpecification, ERD2WQueryPageWithFetchSpecificationTemplate, ERNEUQueryPage

public class ERD2WQueryPage
extends ERD2WPage
implements ERDQueryPageInterface

Superclass for all query pages.
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.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class er.directtoweb.pages.ERD2WPage
ERD2WPage.Keys
 
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent
WOComponent._EventLoggingEnabler, WOComponent.Event
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
 
Field Summary
protected  boolean didLoadQueryBindings
           
protected  WODisplayGroup displayGroup
           
protected  EOFetchSpecification fetchSpecification
           
protected  NSDictionary queryBindings
           
protected  ERDQueryDataSourceDelegateInterface queryDataSourceDelegate
           
 WOComponent returnPage
           
protected  Boolean showResults
           
 
Fields inherited from class er.directtoweb.pages.ERD2WPage
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _pageController, _userInfo, errorKeyOrder, errorMessage, errorMessages, keyPathsWithValidationExceptions, log, validationLog
 
Fields inherited from class com.webobjects.directtoweb.D2WComponent
_eo, _localContext, currentObjectKey
 
Fields inherited from class com.webobjects.appserver.WOComponent
_Extension, _IsEventLoggingEnabled, _keyAssociations, MINUSONE
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSValidation
_CLASS
 
Constructor Summary
ERD2WQueryPage(WOContext context)
           
 
Method Summary
 void appendToResponse(WOResponse arg0, WOContext arg1)
          Overridden from the parent for better logging.
 void awake()
          Overridden to lock the page's editingContext, if there is any present.
 WOComponent cancelAction()
           
 WOComponent clearAction()
           
protected  void createDisplayGroup()
           
 EODataSource defaultQueryDataSource()
           
 WODisplayGroup displayGroup()
          Returns the display group
 int fetchLimit()
           
 EOFetchSpecification fetchSpecification()
           
 String fetchSpecificationName()
           
 String headerTemplate()
           
 boolean isDeep()
           
protected  void loadQueryBindings()
           
 NSArray prefetchingRelationshipKeyPaths()
           
protected  void pullQueryBindingsForName(String name)
           
protected  void pushQueryBindingsForName(String name)
           
 EOQualifier qualifier()
           
 WOComponent queryAction()
           
 NSDictionary queryBindings()
           
 EODataSource queryDataSource()
          Returns the query datasource.
 ERDQueryDataSourceDelegateInterface queryDataSourceDelegate()
           
 EOFetchSpecification queryFetchSpecification()
           
 boolean refreshRefetchedObjects()
           
 WOComponent returnAction()
           
protected  void saveQueryBindings()
           
 void setCancelDelegate(NextPageDelegate cancelDelegate)
           
 void setFetchSpecification(EOFetchSpecification value)
           
 void setFetchSpecificationName(String value)
           
 void setQueryBindings(NSDictionary dictionary)
           
 void setQueryDataSource(EODataSource datasource)
           
 void setQueryDataSourceDelegate(ERDQueryDataSourceDelegateInterface delegate)
           
 void setQueryMatchForKey(Object value, String operator, String key)
          Set a search value for the display group query match.
 void setShowResults(boolean value)
           
 boolean showCancel()
           
 boolean showResults()
           
 void takeValuesFromRequest(WORequest request, WOContext context)
          Overridden from the parent for better logging.
 boolean usesDistinct()
           
 
Methods inherited from class er.directtoweb.pages.ERD2WPage
allConfigurationNames, branch, branchChoices, branchName, clearValidationFailed, clickToOpenEnabled, currentSection, currentSectionKeys, currentTab, d2wComponentNameDebuggingEnabled, d2wContext, d2wCurrentComponentName, d2wDebuggingEnabled, descriptionForResponse, editingContext, errorKeyOrder, errorMessage, errorMessages, hasActualChanges, hasBranchChoices, hasValidationExceptionForPropertyKey, invokeAction, isEmbedded, isEntityEditable, isEntityReadOnly, isObjectDeleteable, isObjectEditable, isObjectInspectable, 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, shouldCollectValidationExceptions, shouldPropagateExceptions, shouldSetFailedValidationValue, sleep, tabSectionsContents, tabSectionsContentsFromRuleResult, urlForCurrentState, userInfo, userPreferencesValueForKey, userPreferencesValueForPageConfigurationKey, validationFailedWithException
 
Methods inherited from class com.webobjects.directtoweb.D2WPage
alternateRowColor, dataSource, extraBindings, finalize, replacementAssociationForAssociation, setExtraBindings
 
Methods inherited from class com.webobjects.directtoweb.D2WComponent
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
 
Methods inherited from class com.webobjects.appserver.WOComponent
__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, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.webobjects.directtoweb.QueryPageInterface
setNextPageDelegate
 

Field Detail

displayGroup

protected WODisplayGroup displayGroup

didLoadQueryBindings

protected boolean didLoadQueryBindings

queryBindings

protected NSDictionary queryBindings

fetchSpecification

protected EOFetchSpecification fetchSpecification

queryDataSourceDelegate

protected ERDQueryDataSourceDelegateInterface queryDataSourceDelegate

showResults

protected Boolean showResults

returnPage

public WOComponent returnPage
Constructor Detail

ERD2WQueryPage

public ERD2WQueryPage(WOContext context)
Method Detail

createDisplayGroup

protected void createDisplayGroup()

pullQueryBindingsForName

protected void pullQueryBindingsForName(String name)

clearAction

public WOComponent clearAction()

fetchSpecification

public EOFetchSpecification fetchSpecification()

setFetchSpecification

public void setFetchSpecification(EOFetchSpecification value)

setFetchSpecificationName

public void setFetchSpecificationName(String value)

fetchSpecificationName

public String fetchSpecificationName()

queryFetchSpecification

public EOFetchSpecification queryFetchSpecification()

pushQueryBindingsForName

protected void pushQueryBindingsForName(String name)

takeValuesFromRequest

public void takeValuesFromRequest(WORequest request,
                                  WOContext context)
Description copied from class: ERD2WPage
Overridden from the parent for better logging. Also clears validation errors

Overrides:
takeValuesFromRequest in class ERD2WPage

appendToResponse

public void appendToResponse(WOResponse arg0,
                             WOContext arg1)
Description copied from class: ERD2WPage
Overridden from the parent for better logging. Reports exceptions in the console for easier debugging.

Overrides:
appendToResponse in class ERD2WPage

saveQueryBindings

protected void saveQueryBindings()

loadQueryBindings

protected void loadQueryBindings()

awake

public void awake()
Description copied from class: ERD2WPage
Overridden to lock the page's editingContext, if there is any present.

Overrides:
awake in class ERD2WPage

isDeep

public boolean isDeep()

queryBindings

public NSDictionary queryBindings()

setQueryBindings

public void setQueryBindings(NSDictionary dictionary)

usesDistinct

public boolean usesDistinct()

refreshRefetchedObjects

public boolean refreshRefetchedObjects()

fetchLimit

public int fetchLimit()

prefetchingRelationshipKeyPaths

public NSArray prefetchingRelationshipKeyPaths()

qualifier

public EOQualifier qualifier()

showResults

public boolean showResults()

setShowResults

public void setShowResults(boolean value)

queryAction

public WOComponent queryAction()

cancelAction

public WOComponent cancelAction()

returnAction

public WOComponent returnAction()

showCancel

public boolean showCancel()
Overrides:
showCancel in class ERD2WPage

queryDataSource

public EODataSource queryDataSource()
Description copied from interface: ERDQueryPageInterface
Returns the query datasource. Not having this is annoying...

Specified by:
queryDataSource in interface QueryPageInterface
Specified by:
queryDataSource in interface ERDQueryPageInterface

setQueryDataSource

public void setQueryDataSource(EODataSource datasource)

defaultQueryDataSource

public EODataSource defaultQueryDataSource()

queryDataSourceDelegate

public ERDQueryDataSourceDelegateInterface queryDataSourceDelegate()

setQueryDataSourceDelegate

public void setQueryDataSourceDelegate(ERDQueryDataSourceDelegateInterface delegate)

displayGroup

public WODisplayGroup displayGroup()
Returns the display group


headerTemplate

public String headerTemplate()

setQueryMatchForKey

public void setQueryMatchForKey(Object value,
                                String operator,
                                String key)
Set a search value for the display group query match. When the value is null is gets removed from the dict, when the operator is null and the value isn't, "=" is chosen.

Specified by:
setQueryMatchForKey in interface ERDQueryPageInterface
Parameters:
value -
operator -
key -

setCancelDelegate

public void setCancelDelegate(NextPageDelegate cancelDelegate)
Specified by:
setCancelDelegate in interface ERDQueryPageInterface

Last updated: Thu, Jan 8, 2009 • 12:32 PM EST

Copyright © 2002 – 2007 Project Wonder.