| Package | Description | 
|---|---|
| java.sql | Provides the API for accessing and processing data stored in a 
data source (usually a relational database) using the 
JavaTM programming language. | 
| javax.sql.rowset | Standard interfaces and base classes for JDBC  RowSetimplementations. | 
| javax.sql.rowset.spi | The standard classes and interfaces that a third party vendor has to
use in its implementation of a synchronization provider. | 
| Modifier and Type | Method and Description | 
|---|---|
| Savepoint | Connection. setSavepoint()Creates an unnamed savepoint in the current transaction and
 returns the new  Savepointobject that represents it. | 
| Savepoint | Connection. setSavepoint(String name)Creates a savepoint with the given name in the current transaction
 and returns the new  Savepointobject that represents it. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Connection. releaseSavepoint(Savepoint savepoint)Removes the specified  Savepointand subsequentSavepointobjects from the current
 transaction. | 
| void | Connection. rollback(Savepoint savepoint)Undoes all changes made after the given  Savepointobject
 was set. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | JdbcRowSet. rollback(Savepoint s)Each  JdbcRowSetcontains aConnectionobject from
 the originalResultSetor JDBC properties passed to it. | 
| void | CachedRowSet. rollback(Savepoint s)Each  CachedRowSetobject'sSyncProvidercontains
 aConnectionobject from the originalResultSetor JDBC properties passed to it. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | TransactionalWriter. rollback(Savepoint s)Undoes all changes made in the current transaction made prior to the given
  Savepointobject. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.