|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
com.webobjects.directtoweb.D2WComponent
com.webobjects.directtoweb.D2WPage
er.directtoweb.pages.ERD2WPage
er.directtoweb.pages.ERD2WQueryPage
public class ERD2WQueryPage
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.
D2W Keys | |
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 |
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 |
---|
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding |
---|
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.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
---|
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 |
Field Summary | |
---|---|
protected com.webobjects.foundation.NSArray |
_nullablePropertyKeys
|
protected boolean |
didLoadQueryBindings
|
protected com.webobjects.appserver.WODisplayGroup |
displayGroup
|
protected com.webobjects.eocontrol.EOFetchSpecification |
fetchSpecification
|
protected com.webobjects.foundation.NSMutableDictionary |
keysToQueryForNull
|
protected com.webobjects.foundation.NSDictionary |
queryBindings
|
protected ERDQueryDataSourceDelegateInterface |
queryDataSourceDelegate
|
protected ERDQueryValidationDelegate |
queryValidationDelegate
|
com.webobjects.appserver.WOComponent |
returnPage
|
protected java.lang.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 |
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.NSKeyValueCoding |
---|
NullValue |
Fields inherited from interface com.webobjects.foundation.NSValidation |
---|
_CLASS |
Constructor Summary | |
---|---|
ERD2WQueryPage(com.webobjects.appserver.WOContext context)
|
Method Summary | |
---|---|
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. |
com.webobjects.appserver.WODisplayGroup |
displayGroup()
Gets the display group. |
int |
fetchLimit()
|
com.webobjects.eocontrol.EOFetchSpecification |
fetchSpecification()
|
java.lang.String |
fetchSpecificationName()
|
java.lang.String |
headerTemplate()
|
boolean |
isDeep()
|
boolean |
isNullQueryCheckedForCurrentProperty()
Determines if the null query checkbox for the current D2W property key should be checked. |
protected void |
loadQueryBindings()
|
com.webobjects.foundation.NSArray |
nullablePropertyKeys()
Discovers the property keys that can be queried for a NULL value. |
com.webobjects.foundation.NSArray |
prefetchingRelationshipKeyPaths()
|
protected void |
pullQueryBindingsForName(java.lang.String name)
|
protected void |
pushQueryBindingsForName(java.lang.String name)
|
com.webobjects.eocontrol.EOQualifier |
qualifier()
|
com.webobjects.appserver.WOComponent |
queryAction()
|
com.webobjects.foundation.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(java.lang.String value)
|
void |
setIsNullQueryCheckedForCurrentProperty(boolean value)
Sets the flag denoting a property key is being queried for a null value. |
void |
setQueryBindings(com.webobjects.foundation.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(java.lang.Object value,
java.lang.String operator,
java.lang.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()
|
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 |
---|
_associationWithName, _awakeInContext, _childTemplate, _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, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForBinding, valueForKey, valueForKeyPath |
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 |
---|
protected com.webobjects.appserver.WODisplayGroup displayGroup
protected boolean didLoadQueryBindings
protected com.webobjects.foundation.NSDictionary queryBindings
protected com.webobjects.eocontrol.EOFetchSpecification fetchSpecification
protected ERDQueryDataSourceDelegateInterface queryDataSourceDelegate
protected ERDQueryValidationDelegate queryValidationDelegate
protected com.webobjects.foundation.NSArray _nullablePropertyKeys
protected com.webobjects.foundation.NSMutableDictionary keysToQueryForNull
protected java.lang.Boolean showResults
public com.webobjects.appserver.WOComponent returnPage
Constructor Detail |
---|
public ERD2WQueryPage(com.webobjects.appserver.WOContext context)
Method Detail |
---|
protected void createDisplayGroup()
protected void pullQueryBindingsForName(java.lang.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(java.lang.String value)
public java.lang.String fetchSpecificationName()
public com.webobjects.eocontrol.EOFetchSpecification queryFetchSpecification()
protected void pushQueryBindingsForName(java.lang.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
awake
in class ERD2WPage
public boolean isDeep()
public com.webobjects.foundation.NSDictionary queryBindings()
public void setQueryBindings(com.webobjects.foundation.NSDictionary dictionary)
public boolean usesDistinct()
public boolean refreshRefetchedObjects()
public int fetchLimit()
public com.webobjects.foundation.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 delegatepublic com.webobjects.appserver.WODisplayGroup displayGroup()
public java.lang.String headerTemplate()
public void setQueryMatchForKey(java.lang.Object value, java.lang.String operator, java.lang.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 com.webobjects.foundation.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.
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |