O'Reilly logo

Java Enterprise in a Nutshell, Second Edition by David Flanagan, Jim Farley, William Crawford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

RowSet

Synopsis

RowSet extends the java.sql.ResultSet interface so that RowSet objects are JavaBeans components and can be manipulated by visual programming tools. A RowSet can be implemented on top of any JDBC-compliant ResultSet. The setCommand() method specifies what data the row set should contain (for a database generated set, this might be an SQL statement). RowSet objects can be either connected (in which case they are updated as the underlying data changes and changes to the RowSet object are reflected in the underlying data) or disconnected (in which case the RowSet represents a completely self-contained data set). The RowSet interface also allows listener objects to be associated with it, providing notifications of data updates as they occur.

                  Returned By
public interface RowSet extends java.sql.ResultSet {
// Event Registration Methods (by event name)
   public abstract void addRowSetListener(
        RowSetListener listener);  
   public abstract void removeRowSetListener(
        RowSetListener listener);  
// Property Accessor Methods (by property name)
   public abstract String getCommand();  
   public abstract void setCommand(
        String cmd) throws java.sql.SQLException;  
   public abstract void setConcurrency(
        int concurrency) throws java.sql.SQLException;  
   public abstract String getDataSourceName();  
   public abstract void setDataSourceName(
        String name) throws java.sql.SQLException;  
   public abstract boolean getEscapeProcessing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required