Project Wonder 5.0

er.extensions.eof
Class ERXTolerantSaver

java.lang.Object
  extended by er.extensions.eof.ERXTolerantSaver

Deprecated. use ERXEC

public class ERXTolerantSaver
extends java.lang.Object

This class is pulled directly out of David Neumann's ChangeNotification framework. The only changes made are to use log4j instead of System.out.println.

The tolerant saver provides a way to save an editing context in a tolerant fashion. By tolerant we mean that you can have the option to save an editing context and have the exception ignored, hvae the changes merged from the database or stomp all the changes the database regardless of locking. The entry point for using this class is the save method.


Field Summary
static org.apache.log4j.Logger log
          Deprecated. logging support
 
Constructor Summary
ERXTolerantSaver()
          Deprecated.  
 
Method Summary
static java.lang.String save(com.webobjects.eocontrol.EOEditingContext ec, boolean writeAnyWay)
          Deprecated. Cover method for calling the method save with the third parameter (merge) set to true.
static java.lang.String save(com.webobjects.eocontrol.EOEditingContext ec, boolean writeAnyWay, boolean merge)
          Deprecated.  
 
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
Deprecated. 
logging support

Constructor Detail

ERXTolerantSaver

public ERXTolerantSaver()
Deprecated. 
Method Detail

save

public static java.lang.String save(com.webobjects.eocontrol.EOEditingContext ec,
                                    boolean writeAnyWay)
Deprecated. 
Cover method for calling the method save with the third parameter (merge) set to true. See the description of the three parameter version for a detailed explanation.

Parameters:
ec - editing context to be saved.
writeAnyWay - boolean flag to determine if the editing context should be resaved after a general adaptor exception
Returns:
string representation of the exception that happened. This will be changed in the future.

save

public static java.lang.String save(com.webobjects.eocontrol.EOEditingContext ec,
                                    boolean writeAnyWay,
                                    boolean merge)
Deprecated. 

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

Copyright © 2002 – 2007 Project Wonder.