org.firebirdsql.jdbc
Class FBRowUpdater
java.lang.Object
org.firebirdsql.jdbc.FBRowUpdater
- All Implemented Interfaces:
- 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.
- Author:
- Roman Rokytskyy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FBRowUpdater
public FBRowUpdater(org.firebirdsql.gds.impl.GDSHelper connection,
XSQLVAR[] xsqlvars,
Synchronizable syncProvider,
boolean cached,
FBObjectListener.ResultSetListener rsListener)
throws java.sql.SQLException
close
public void close()
throws java.sql.SQLException
- Specified by:
close
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
- Throws:
java.sql.SQLException
setRow
public void setRow(byte[][] row)
- Specified by:
setRow
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
cancelRowUpdates
public void cancelRowUpdates()
- Specified by:
cancelRowUpdates
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
getField
public org.firebirdsql.jdbc.field.FBField getField(int fieldPosition)
- Specified by:
getField
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
updateRow
public void updateRow()
throws java.sql.SQLException
- Specified by:
updateRow
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
- Throws:
java.sql.SQLException
deleteRow
public void deleteRow()
throws java.sql.SQLException
- Specified by:
deleteRow
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
- Throws:
java.sql.SQLException
insertRow
public void insertRow()
throws java.sql.SQLException
- Specified by:
insertRow
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
- Throws:
java.sql.SQLException
refreshRow
public void refreshRow()
throws java.sql.SQLException
- Specified by:
refreshRow
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
- Throws:
java.sql.SQLException
rowInserted
public boolean rowInserted()
throws java.sql.SQLException
- Specified by:
rowInserted
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
- Throws:
java.sql.SQLException
rowDeleted
public boolean rowDeleted()
throws java.sql.SQLException
- Specified by:
rowDeleted
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
- Throws:
java.sql.SQLException
rowUpdated
public boolean rowUpdated()
throws java.sql.SQLException
- Specified by:
rowUpdated
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
- Throws:
java.sql.SQLException
getNewRow
public byte[][] getNewRow()
- Specified by:
getNewRow
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
getInsertRow
public byte[][] getInsertRow()
- Specified by:
getInsertRow
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
getOldRow
public byte[][] getOldRow()
- Specified by:
getOldRow
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
moveToInsertRow
public void moveToInsertRow()
throws java.sql.SQLException
- Specified by:
moveToInsertRow
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
- Throws:
java.sql.SQLException
moveToCurrentRow
public void moveToCurrentRow()
throws java.sql.SQLException
- Specified by:
moveToCurrentRow
in interface org.firebirdsql.jdbc.FirebirdRowUpdater
- Throws:
java.sql.SQLException
Copyright © 2001 David Jencks and other authors. All rights reserved.