WebObjects 5.4.2

com.webobjects.webservices.generation
Class WOBeginTransactionOperation

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.WOBeginTransactionOperation
All Implemented Interfaces:
WOActionResults, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable

public class WOBeginTransactionOperation
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
WOBeginTransactionOperation(WOContext context)
           
 
Method Summary
 Object invoke()
           Creates a session and configures it to handle transactions.
static boolean requiresEntity()
           
 
Methods inherited from class com.webobjects.webservices.generation.WOOperation
aggregateValuesResult, attributeClassNames, classesForKeyPaths, comparisonKeys, d2wContext, editingContext, gidArgumentKey, inputPartKeyPaths, inputPartNames, inputPartValues, outputPartKeyPaths, outputPartNames, propertyNameForPartName, 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

WOBeginTransactionOperation

public WOBeginTransactionOperation(WOContext context)
Method Detail

requiresEntity

public static boolean requiresEntity()

invoke

public Object invoke()

Creates a session and configures it to handle transactions. Once this operation is invoked, calls to saveChangesInEditingContext will not result in changes to an operation's editing context being saved until an invocation of a WOCommitTransaction operation. A subsequent invocation of a WORollbackTransaction operation will reset the editing context.

Between the invocation of a begin transaction and either a commit or roll back transaction operation, all other operations invoked by the same client (carrying the proper SOAP headers) share a WOSession and EOEditingContext.

Overrides:
invoke in class WOOperation
Returns:
null
See Also:
WOCommitTransactionOperation, WORollbackTransactionOperation

Last updated June 2008

Copyright © 2000-2008 Apple Inc.