org.firebirdsql.jdbc
Class FBRowUpdater
java.lang.Object
org.firebirdsql.jdbc.FBRowUpdater
- org.firebirdsql.jdbc.FirebirdRowUpdater
public class FBRowUpdater
extends java.lang.Object
implements org.firebirdsql.jdbc.FirebirdRowUpdater
Class responsible for modifying updatable result sets.
A result set is updatable if and only if:
- It is a subset of a single table and includes all columns from the
table's primary key (in other words, includes all best row identifiers) or
RDB$DB_KEY column (in this case tables without primary key can be updated
too).
- If base table columns not included in the result set allow NULL values,
result set allows inserting rows into it.
- The result set?s SELECT statement does not contain subqueries, a
DISTINCT predicate, a HAVING clause, aggregate functions, joined tables,
user-defined functions, or stored procedures.
If the result set definition does not meet these conditions, it is considered
read-only.
cancelRowUpdates
public void cancelRowUpdates()
- cancelRowUpdates in interface org.firebirdsql.jdbc.FirebirdRowUpdater
close
public void close()
throws SQLException
- close in interface org.firebirdsql.jdbc.FirebirdRowUpdater
deleteRow
public void deleteRow()
throws SQLException
- deleteRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater
getField
public org.firebirdsql.jdbc.field.FBField getField(int fieldPosition)
- getField in interface org.firebirdsql.jdbc.FirebirdRowUpdater
getInsertRow
public byte[][] getInsertRow()
- getInsertRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater
getNewRow
public byte[][] getNewRow()
- getNewRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater
getOldRow
public byte[][] getOldRow()
- getOldRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater
insertRow
public void insertRow()
throws SQLException
- insertRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater
moveToCurrentRow
public void moveToCurrentRow()
throws SQLException
- moveToCurrentRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater
moveToInsertRow
public void moveToInsertRow()
throws SQLException
- moveToInsertRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater
refreshRow
public void refreshRow()
throws SQLException
- refreshRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater
rowDeleted
public boolean rowDeleted()
throws SQLException
- rowDeleted in interface org.firebirdsql.jdbc.FirebirdRowUpdater
rowInserted
public boolean rowInserted()
throws SQLException
- rowInserted in interface org.firebirdsql.jdbc.FirebirdRowUpdater
rowUpdated
public boolean rowUpdated()
throws SQLException
- rowUpdated in interface org.firebirdsql.jdbc.FirebirdRowUpdater
setRow
public void setRow(byte[][] row)
- setRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater
updateRow
public void updateRow()
throws SQLException
- updateRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater
Copyright B) 2001 David Jencks and other authors. All rights reserved.