WebObjects 5.4.2

com.webobjects.directtoweb
Class D2WQueryAnyField

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.D2WStatelessComponent
                  extended by com.webobjects.directtoweb.QueryComponent
                      extended by com.webobjects.directtoweb.D2WQueryAnyField
All Implemented Interfaces:
WOActionResults, DTWGeneration, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable

public class D2WQueryAnyField
extends QueryComponent

This property-level component builds a query based on the destination objects of a relationship. The user can specify the key for an attribute of the destination object and a value the attribute must have. This object does not traverse the relationship, making it appropriate for relationships that contain many objects.

Property-level components are not accessed programmatically. Instead, you use the Web Assistant to choose the property-level component that Direct to Web uses to display a property on a particular entity and task page.

If you want to create property-level component to query based on a property, use D2WCustomQueryComponent.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent
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.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
 
Field Summary
 
Fields inherited from class com.webobjects.directtoweb.D2WComponent
currentObjectKey
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
KeyPathSeparator
 
Constructor Summary
D2WQueryAnyField(WOContext aContext)
          Creates a new D2WQueryAnyField with the specified aContext.
 
Method Summary
 String componentsForDisplayKeyList()
          This method is intentionally undocumented.
 String componentsForKeyList()
          This method is intentionally undocumented.
 D2WContext relationshipContext()
          This method is intentionally undocumented.
 NSArray relationshipContextDisplayAttributesKeys()
          This method is intentionally undocumented.
 WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, DTWTemplate aTemplate, WOContext aContext)
          This method is intentionally undocumented.
 void reset()
          This method is intentionally undocumented.
 String selectedKey()
          This method is intentionally undocumented.
 void setSelectedKey(String newValue)
          This method is intentionally undocumented.
 String variableNameForKeyList()
          This method is intentionally undocumented.
 
Methods inherited from class com.webobjects.directtoweb.QueryComponent
displayGroup, setValue, value
 
Methods inherited from class com.webobjects.directtoweb.D2WStatelessComponent
d2wContext, isStateless, localContext, object
 
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, isEntityReadOnly, isLiveAssistantEnabled, isNotBoldAsBoolean, isNotItalicAsBoolean, isPropertyAnAttribute, isWebAssistantActive, isWebAssistantConnected, isWebAssistantEnabled, keyForGenerationReplacementForVariableNamed, keyWhenRelationship, lastUrl, length, logout, objectPropertyValue, objectPropertyValueIsNonNull, pageTitle, property, propertyKey, propertyValueClassName, relationship, resourcePathURL, sessionID, setCurrentSettings, setDynamicPages, setEntities, setEntity, setEntityName, setLocalContext, setObject, setPropertyKey, setResourcePathURL, setTask, setTasks, showBanner, showWebAssistant, submitActionName, target, task, tasks, visibleEntityNames
 
Methods inherited from class com.webobjects.appserver.WOComponent
appendToResponse, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

D2WQueryAnyField

public D2WQueryAnyField(WOContext aContext)
Creates a new D2WQueryAnyField with the specified aContext.

Parameters:
aContext - a WOContext.
Method Detail

relationshipContext

public D2WContext relationshipContext()
This method is intentionally undocumented. You should never have to invoke or customize it.


reset

public void reset()
This method is intentionally undocumented. You should never have to invoke or customize it.

Overrides:
reset in class QueryComponent
See Also:
D2WStatelessComponent.d2wContext(), D2WStatelessComponent.object()

relationshipContextDisplayAttributesKeys

public NSArray relationshipContextDisplayAttributesKeys()
This method is intentionally undocumented. You should never have to invoke or customize it.


selectedKey

public String selectedKey()
This method is intentionally undocumented. You should never have to invoke or customize it.


variableNameForKeyList

public String variableNameForKeyList()
This method is intentionally undocumented. You should never have to invoke or customize it.


componentsForKeyList

public String componentsForKeyList()
This method is intentionally undocumented. You should never have to invoke or customize it.


componentsForDisplayKeyList

public String componentsForDisplayKeyList()
This method is intentionally undocumented. You should never have to invoke or customize it.


setSelectedKey

public void setSelectedKey(String newValue)
This method is intentionally undocumented. You should never have to invoke or customize it.


replacementAssociationForAssociation

public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation,
                                                          String oldBinding,
                                                          DTWTemplate aTemplate,
                                                          WOContext aContext)
This method is intentionally undocumented. You should never have to invoke or customize it.

Specified by:
replacementAssociationForAssociation in interface DTWGeneration
Overrides:
replacementAssociationForAssociation in class QueryComponent

Last updated June 2008

Copyright © 2000-2008 Apple Inc.