|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.appserver.WOElement com.webobjects.appserver.WOComponent com.webobjects.webservices.generation.WOOperation com.webobjects.webservices.generation.WOUpdateOperation
Nested Class Summary |
Nested classes inherited from class com.webobjects.appserver.WOComponent |
WOComponent.Event |
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding |
NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor |
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions |
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
Nested classes inherited from class com.webobjects.foundation.NSValidation |
NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
Field Summary |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
NullValue |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
KeyPathSeparator |
Constructor Summary | |
WOUpdateOperation(WOContext context)
|
Method Summary | |
Object |
invoke()
Updates an EOEnterpriseObject identified by a global ID in the argument values or by combining the primary key attributes from 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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WOUpdateOperation(WOContext context)
Method Detail |
public Object invoke()
Updates an EOEnterpriseObject identified by a global ID in the argument values or by combining the primary key attributes from the argument values.
First an
existing EO is found. If one of the argument key paths equals the value returned
by gidArgumentKey()
, then the corresponding argument value is used
as an EOGlobalID to find the EO of interest.
If no global ID key is defined, then the property key paths that match the primary
key attribute names for the operation's entity are identified. If these keys are
the corresponding values are combined to create a primary key which is used to
fetch the EO of interest.
Once the EO is found and brought into this operation's editing context, the remaining value changes are applied to the EO using key-value coding.
If WOServiceUtilities.commitOperationImmediately() is true, then the changes to the editing context are saved before this method returns.
invoke
in class WOOperation
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |