com.ibm.mobileservices.isync.midp
Class ConflictReader

java.lang.Object
  |
  +--com.ibm.mobileservices.isync.midp.ConflictReader

public final class ConflictReader
extends java.lang.Object

This class serves as a reader for client rejected row information returned from the DB2 Everyplace Sync Server, in the event the client changes collided with changes made either to the source database or by other clients to the same rows in a non-compatiable way. Note that for ISync.OP_DELETE operation, only the primary key column(s) data are returned.


Method Summary
 int getOperation()
          Return the operation that generated the conflict.
 byte[] getRejectedRow()
          Get the rejected row data in byte array format, identical in format to all MIDP rows for this table.
 java.lang.String getTableName()
          Get the conflicted table name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTableName

public final java.lang.String getTableName()
Get the conflicted table name.

Returns:
the table name in conflict

getRejectedRow

public final byte[] getRejectedRow()
Get the rejected row data in byte array format, identical in format to all MIDP rows for this table.

Returns:
a ResultSet that contains the rejected row of a table.

getOperation

public final int getOperation()
Return the operation that generated the conflict.

Returns:
The attempted operation that failed, one of ISync.OP_DELETE, ISync.OP_INSERT, ISync.OP_UPDATE.


(c) Copyright IBM Corp. 2001, 2002, 2003. All Rights Reserved.