WebObjects 5.4.2

com.webobjects.webservices.generation
Class WODeleteOperation

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WOComponent
          extended by com.webobjects.webservices.generation.WOOperation
              extended by com.webobjects.webservices.generation.WODeleteOperation
All Implemented Interfaces:
WOActionResults, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable

public class WODeleteOperation
extends WOOperation

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 interface com.webobjects.foundation.NSKeyValueCodingAdditions
KeyPathSeparator
 
Constructor Summary
WODeleteOperation(WOContext context)
           
 
Method Summary
protected  void delete(Object value, EOEditingContext ec)
          Deletes the object value from EOEditingContext ec.
 Object invoke()
           Deletes one or more EOEnterpriseObject's identified by global ID in the argument values.
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WODeleteOperation

public WODeleteOperation(WOContext context)
Method Detail

invoke

public Object invoke()

Deletes one or more EOEnterpriseObject's identified by global ID in the argument values. All argument values are expected to be EOGlobalID's. For each global ID, a corresponding fault is created in the operation's editing context. The EO is then deleted using the delete method.

If WOServiceUtilities.commitOperationImmediately() is true, then the changes to the editing context are saved before this method returns.

Overrides:
invoke in class WOOperation
Returns:
an empty NSArray on success

delete

protected void delete(Object value,
                      EOEditingContext ec)
Deletes the object value from EOEditingContext ec. Value must either be an Object[] of EOGlobalIDs, an NSArray of EOGlobalIDs, an NSDictionary representing an EO primary key, an EOGlobalID, or an EOEnterpriseObject.

Parameters:
value - object(s) to delete
ec - EOEditingContext to delete objects from

Last updated June 2008

Copyright © 2000-2008 Apple Inc.