org.enableit.db.darrt.resolvers
Class DeleteAndInsertConflictResolver

java.lang.Object
  |
  +--org.enableit.db.darrt.resolvers.DeleteAndInsertConflictResolver
All Implemented Interfaces:
ConflictResolver

public class DeleteAndInsertConflictResolver
extends java.lang.Object
implements ConflictResolver

Conflict Resolver to replace existing rows with new ones in all cases.

Author:
Tim Stephenson

Field Summary
static java.lang.String about
          CVS info ABOUT this class and its current version
 
Constructor Summary
DeleteAndInsertConflictResolver()
          Default Constructor
 
Method Summary
 org.enableit.db.beans.RowSet resolve(org.enableit.db.beans.Provider target, org.enableit.db.beans.RowSet rows)
          Remove the existing row that shares the same primary key, replacing it with the one received.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

about

public static final java.lang.String about
CVS info ABOUT this class and its current version

See Also:
Constant Field Values
Constructor Detail

DeleteAndInsertConflictResolver

public DeleteAndInsertConflictResolver()
Default Constructor

Method Detail

resolve

public org.enableit.db.beans.RowSet resolve(org.enableit.db.beans.Provider target,
                                            org.enableit.db.beans.RowSet rows)
Remove the existing row that shares the same primary key, replacing it with the one received.

Specified by:
resolve in interface ConflictResolver


Copyright © 1999-2004 enableIT.org. All Rights Reserved.