org.firebirdsql.jdbc

Class FBRowUpdater

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: If the result set definition does not meet these conditions, it is considered read-only.
Author:
Roman Rokytskyy

Constructor Summary

FBRowUpdater(org.firebirdsql.gds.impl.GDSHelper connection, XSQLVAR[] xsqlvars, Synchronizable syncProvider, boolean cached, FBObjectListener.ResultSetListener rsListener)

Method Summary

void
cancelRowUpdates()
void
close()
void
deleteRow()
org.firebirdsql.jdbc.field.FBField
getField(int fieldPosition)
byte[][]
getInsertRow()
byte[][]
getNewRow()
byte[][]
getOldRow()
void
insertRow()
void
moveToCurrentRow()
void
moveToInsertRow()
void
refreshRow()
boolean
rowDeleted()
boolean
rowInserted()
boolean
rowUpdated()
void
setRow(byte[][] row)
void
updateRow()

Constructor Details

FBRowUpdater

public FBRowUpdater(org.firebirdsql.gds.impl.GDSHelper connection,
                    XSQLVAR[] xsqlvars,
                    Synchronizable syncProvider,
                    boolean cached,
                    FBObjectListener.ResultSetListener rsListener)
            throws SQLException

Method Details

cancelRowUpdates

public void cancelRowUpdates()
Specified by:
cancelRowUpdates in interface org.firebirdsql.jdbc.FirebirdRowUpdater

close

public void close()
            throws SQLException
Specified by:
close in interface org.firebirdsql.jdbc.FirebirdRowUpdater

deleteRow

public void deleteRow()
            throws SQLException
Specified by:
deleteRow 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

getInsertRow

public byte[][] getInsertRow()
Specified by:
getInsertRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater

getNewRow

public byte[][] getNewRow()
Specified by:
getNewRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater

getOldRow

public byte[][] getOldRow()
Specified by:
getOldRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater

insertRow

public void insertRow()
            throws SQLException
Specified by:
insertRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater

moveToCurrentRow

public void moveToCurrentRow()
            throws SQLException
Specified by:
moveToCurrentRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater

moveToInsertRow

public void moveToInsertRow()
            throws SQLException
Specified by:
moveToInsertRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater

refreshRow

public void refreshRow()
            throws SQLException
Specified by:
refreshRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater

rowDeleted

public boolean rowDeleted()
            throws SQLException
Specified by:
rowDeleted in interface org.firebirdsql.jdbc.FirebirdRowUpdater

rowInserted

public boolean rowInserted()
            throws SQLException
Specified by:
rowInserted in interface org.firebirdsql.jdbc.FirebirdRowUpdater

rowUpdated

public boolean rowUpdated()
            throws SQLException
Specified by:
rowUpdated in interface org.firebirdsql.jdbc.FirebirdRowUpdater

setRow

public void setRow(byte[][] row)
Specified by:
setRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater

updateRow

public void updateRow()
            throws SQLException
Specified by:
updateRow in interface org.firebirdsql.jdbc.FirebirdRowUpdater

Copyright B) 2001 David Jencks and other authors. All rights reserved.