com.webobjects.webservices.generation
Class WOSearchOperation
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
com.webobjects.webservices.generation.WOOperation
com.webobjects.webservices.generation.WOSearchOperation
- All Implemented Interfaces:
- WOActionResults, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable
- Direct Known Subclasses:
- WOFetchSpecSearchOperation
public class WOSearchOperation
- extends WOOperation
- See Also:
- Serialized Form
Method Summary |
int |
fetchLimit()
Returns the maximum number of objects to fetch for this operation. |
Object |
invoke()
Performs a search using an EOFetchSpecification based on the argument keys paths, and argument values. |
EOQualifier |
qualifier(EOEntity entity,
NSArray inputPartKeyPaths,
NSArray values,
NSArray comparisonKeys,
NSArray attributeClassNames,
String unspecifiedArgumentKey)
Returns a qualifier for searching on an entity. |
Methods inherited from class com.webobjects.webservices.generation.WOOperation |
aggregateValuesResult, attributeClassNames, classesForKeyPaths, comparisonKeys, d2wContext, editingContext, gidArgumentKey, inputPartKeyPaths, inputPartNames, inputPartValues, outputPartKeyPaths, outputPartNames, propertyNameForPartName, requiresEntity, saveChangesInEditingContext, serializationStrategy, setD2wContext, unspecifiedArgumentKey |
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, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, 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 |
WOSearchOperation
public WOSearchOperation(WOContext context)
invoke
public Object invoke()
- Performs a search using an EOFetchSpecification based on the argument keys paths, and argument values.
- Overrides:
invoke
in class WOOperation
- Returns:
- NSArray of objects matching search arguments
fetchLimit
public int fetchLimit()
- Returns the maximum number of objects to fetch for this operation. Subclasses should override this method to provide a custom fetch limit based on operation attributes or D2WContext information. The default implementation returns the D2WContext value for the key
fetchLimit
.
- Returns:
- the fetch limit to use in this operation's EOFetchSpecification
qualifier
public EOQualifier qualifier(EOEntity entity,
NSArray inputPartKeyPaths,
NSArray values,
NSArray comparisonKeys,
NSArray attributeClassNames,
String unspecifiedArgumentKey)
- Returns a qualifier for searching on an entity. Subclasses should override this method to provide custom qualifiers based on operation attributes or d2wContext() information. The default implementation invokes WOServiceUtilities.buildQualifier()
- Parameters:
entity
- the EOEntity that will be the root entity for the qualifier to buildinputPartKeyPaths
- array of property key pathsvalues
- array of values corresponding to inputPartKeyPathscomparisonKeys
- array of key-comparison keysattributeClassNames
- array of Class objectsunspecifiedArgumentKey
- String key representing a value that was not specified by the client
- Returns:
- a qualifier to use in this operation's EOFetchSpecification
- See Also:
WOServiceUtilities.buildQualifier(com.webobjects.eoaccess.EOEntity, com.webobjects.foundation.NSArray, com.webobjects.foundation.NSArray, com.webobjects.foundation.NSArray, com.webobjects.foundation.NSArray, java.lang.String)
Copyright © 2000-2008 Apple Inc.