|
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 |
|---|
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 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
|
| 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(WOContext context)
|
|
| Method Summary | |
|---|---|
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()
|
| 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 java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.webobjects.directtoweb.QueryPageInterface |
|---|
setNextPageDelegate |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public ERD2WQueryPage(WOContext context)
| Method Detail |
|---|
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 ERD2WPageprotected void saveQueryBindings()
protected void loadQueryBindings()
public void awake()
ERD2WPage
awake in class ERD2WPagepublic 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 ERD2WPagepublic EODataSource queryDataSource()
queryDataSourceDelegate() is defined, the delegate's implementation is invoked. Otherwise,
the defaultQueryDataSource() is returned.
queryDataSource in interface com.webobjects.directtoweb.QueryPageInterfacequeryDataSource in interface ERDQueryPageInterfacepublic 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 delegatepublic 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 ERDQueryPageInterfacevalue - 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 ERDQueryPageInterfacepublic 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: Wed, Feb 22, 2012 07:00 AM EST | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||