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:
- public final int getInt(String columnName) throws SQLException
- public final int getInt(int columnIndex) throws SQLException
- public final short getShort(String columnName) throws SQLException
- public final short getShort(int columnIndex) throws SQLException
- public final String getString(String columnName) throws SQLException
- public final String getString(int columnIndex) throws SQLException
- public final BigDecimal getBigDecimal(String columnName) throws SQLException
- public final BigDecimal getBigDecimal(int columnIndex) throws SQLException
- public final java.sql.Date getDate(String columnName) throws SQLException
- public final java.sql.Date getDate(int columnIndex) throws SQLException
- public final java.sql.Time getTime(String columnName) throws SQLException
- public final java.sql.Time getTime(int columnIndex) throws SQLException
- public final java.sql.Timestamp getTimestamp(String columnName) throws SQLException
- public final java.sql.Timestamp getTimestamp(int columnIndex) throws SQLException
- public final byte[] getBytes(String columnName) throws SQLException
- public final byte[] getBytes(int columnIndex) throws SQLException
- public final Object getObject(String columnName) throws SQLException
- public final Object getObject(int columnIndex) throws SQLException
- public boolean wasNull() throws SQLException
- public boolean next() throws SQLException
- public void close() throws SQLException
- public synchronized ResultSetMetaData getMetaData() throws SQLException
Methods supported in ResultSetMetaData:
- public int getColumnCount() throws SQLException
- public final String getColumnName(int column) throws SQLException
- public String getTableName(int column) throws SQLException
- public final int getColumnType(int column) throws SQLException
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. |
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.