java.sql(JDBC)

Using savepoints in transactions

A savepoint is a point within a database transaction to which the transaction can be partially rolled back. JDBC provides the Savepoint interface and the Connection methods setSavepoint() and rollback(Savepoint) for working with savepoints. Unlike rollback(), which normally cancels the entire transaction, rolling back to a savepoint cancels only the operations performed after that savepoint. […]

Using savepoints in transactions Read More »

JdbcRowSet

JdbcRowSet is a connected RowSet implementation that maintains an active connection to the database. It provides a convenient wrapper around a ResultSet and supports both forward and backward navigation depending on its configuration. Key Features Maintains an active database connection. Supports navigation through rows. Supports updating database records. Provides JavaBeans-style properties and events. Suitable when

JdbcRowSet Read More »

FilteredRowSet

FilteredRowSet is a disconnected RowSet implementation used to display only the rows that satisfy a particular filtering condition. It extends WebRowSet and allows filtering without requiring a separate SQL query for every filtering operation. For example, if the RowSet contains all employees, a filter can be used to display only employees from the IT department.

FilteredRowSet Read More »

JoinRowSet

JoinRowSet is a disconnected RowSet implementation that allows multiple RowSet objects to be combined using join conditions. It provides functionality similar to SQL joins while working with RowSet objects. Key Features Combines multiple RowSet objects. Supports join operations. Works without requiring a continuous database connection. Can combine data from different RowSet sources. Useful when related

JoinRowSet Read More »

WebRowSet

WebRowSet is a disconnected RowSet implementation that extends the functionality of CachedRowSet. It can represent RowSet data as XML, making it useful for transferring database data between different applications or systems. Key Features Extends CachedRowSet. Supports disconnected operation. Can read and write RowSet data as XML. Useful for data exchange between applications. Can preserve information

WebRowSet Read More »

CachedRowSet

CachedRowSet is a disconnected RowSet implementation. It retrieves data from the database, stores the data in memory, and can then be used after the database connection has been closed. Key Features Does not require a continuous database connection. Stores rows in memory. Can be serialized and transferred between applications. Supports scrolling and updating. Can reconnect

CachedRowSet Read More »

RowSet Implementations

JDBC provides several standard implementations of the RowSet interface. They are mainly divided based on whether they maintain an active database connection or work in a disconnected manner. RowSet Types RowSet Implementation Type Main Purpose JdbcRowSet Connected Works like an enhanced ResultSet while maintaining an active database connection. CachedRowSet Disconnected Stores database rows in memory

RowSet Implementations Read More »

Scroll to Top