com.ibm.mobileservices.isync
Interface ConflictReader


public interface ConflictReader

This interface defines a reader for client rejected row information returned from the DB2 Everyplace Sync Server. Note that for ISync.OP_DELETE operation, only the primary key column(s) data are returned. An SQLException with exception code ISync.EXC_NO_DATA_FOUND will be thrown when trying to access non-primary key columns with ISync.OP_DELETE operation.

Methods supported in ResultSet:

Methods supported in ResultSetMetaData:

ISyncUnsupportedOperationException will be thrown for methods that are not supported.


Method Summary
 int getOperation()
          Gets the operation that was performed on the rejected row.
 java.sql.ResultSet getPrimaryKeys()
          Gets the description of a table's primary key columns.
 java.sql.ResultSet getRejectedRows()
          Gets the rejected rows.
 java.lang.String getTableName()
          Gets the conflicted table name.
 

Method Detail

getTableName

public java.lang.String getTableName()
                              throws ISyncException
Gets the conflicted table name.

Returns:
the table name in conflict
Throws:
ISyncException

getOperation

public int getOperation()
                 throws ISyncException
Gets the operation that was performed on the rejected row. Values are defined in the ISync class.

Returns:
  • ISync.OP_DELETE
  • ISync.OP_INSERT
  • ISync.OP_UPDATE
Throws:
ISyncException

getPrimaryKeys

public java.sql.ResultSet getPrimaryKeys()
                                  throws ISyncException
Gets the description of a table's primary key columns. They are ordered by COLUMN_NAME. Primary key column description is as follows: 1. TABLE_CAT (String) -> table catalog(maybe null) 2. TABLE_SCHEM (String) -> table schema(maybe null) 3. TABLE_NAME (String) -> table name 4. COLUMN_NAME (String) -> column name 5. KEY_SEQ (short) -> sequence number within primary key 6. PK_NAME (String) -> primary key name(maybe null)

Returns:
a ResultSet that contains primary key column information for each row.
Throws:
ISyncException

getRejectedRows

public java.sql.ResultSet getRejectedRows()
                                   throws ISyncException
Gets the rejected rows.

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


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