Project Wonder 5.0

er.extensions.eof
Class ERXEditingContextDelegate

java.lang.Object
  extended by er.extensions.eof.ERXEditingContextDelegate
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ERXDefaultEditingContextDelegate, ERXECNoValidationDelegate

public class ERXEditingContextDelegate
extends java.lang.Object
implements java.io.Serializable

This delegate does nothing. It is used to make the environment happy in that some parts of the system require that a delegate be set on the editing context. In those cases use an instance of this delegate. All of the other delegates subclass this delegate. The main delegate that is used is ERXDefaultEditingContextDelegate.

See Also:
Serialized Form

Field Summary
static org.apache.log4j.Logger log
          general logging support
 
Constructor Summary
ERXEditingContextDelegate()
          No arg constructor for Serializable.
 
Method Summary
static boolean _checkEditingContextDelegate(com.webobjects.eocontrol.EOEditingContext editingContext)
          By default, and this should change in the future, all editing contexts that are created and use ERXGenericRecords or subclasses need to have a delegate set of instance ERXEditingContextDelegate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.apache.log4j.Logger log
general logging support

Constructor Detail

ERXEditingContextDelegate

public ERXEditingContextDelegate()
No arg constructor for Serializable.

Method Detail

_checkEditingContextDelegate

public static boolean _checkEditingContextDelegate(com.webobjects.eocontrol.EOEditingContext editingContext)
By default, and this should change in the future, all editing contexts that are created and use ERXGenericRecords or subclasses need to have a delegate set of instance ERXEditingContextDelegate. These delegates provide the augmentation to the regular transaction mechanism, all of the will* methods plus the flushCaching method. To change the default behaviour set the property: er.extensions.ERXRaiseOnMissingEditingContextDelegate to false in your WebObjects.properties file. This method is called when an object is fetched, updated or inserted.

Parameters:
editingContext - to check for the correct delegate.
Returns:
if the editing context has the correct delegate set.

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.