Package org.firebirdsql.jdbc
Class FBRowUpdater
- java.lang.Object
- 
- org.firebirdsql.jdbc.FBRowUpdater
 
- 
 public class FBRowUpdater extends java.lang.ObjectClass 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.
 - Author:
- Roman Rokytskyy, Mark Rotteveel
 
- 
- 
Constructor SummaryConstructors Constructor Description FBRowUpdater(FBConnection connection, RowDescriptor rowDescriptor, Synchronizable syncProvider, boolean cached, FBObjectListener.ResultSetListener rsListener)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelRowUpdates()voidclose()voiddeleteRow()FBFieldgetField(int fieldPosition)RowValuegetInsertRow()RowValuegetNewRow()RowValuegetOldRow()voidinsertRow()voidmoveToCurrentRow()voidmoveToInsertRow()voidrefreshRow()booleanrowDeleted()booleanrowInserted()booleanrowUpdated()voidsetRow(RowValue row)voidupdateRow()
 
- 
- 
- 
Constructor Detail- 
FBRowUpdaterpublic FBRowUpdater(FBConnection connection, RowDescriptor rowDescriptor, Synchronizable syncProvider, boolean cached, FBObjectListener.ResultSetListener rsListener) throws java.sql.SQLException - Throws:
- java.sql.SQLException
 
 
- 
 - 
Method Detail- 
closepublic void close() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
setRowpublic void setRow(RowValue row) 
 - 
cancelRowUpdatespublic void cancelRowUpdates() 
 - 
getFieldpublic FBField getField(int fieldPosition) 
 - 
updateRowpublic void updateRow() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
deleteRowpublic void deleteRow() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
insertRowpublic void insertRow() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
refreshRowpublic void refreshRow() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
rowInsertedpublic boolean rowInserted() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
rowDeletedpublic boolean rowDeleted() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
rowUpdatedpublic boolean rowUpdated() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
getNewRowpublic RowValue getNewRow() 
 - 
getInsertRowpublic RowValue getInsertRow() 
 - 
getOldRowpublic RowValue getOldRow() 
 - 
moveToInsertRowpublic void moveToInsertRow() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
moveToCurrentRowpublic void moveToCurrentRow() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 
- 
 
-