This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.sql
interface Savepoint


Most common ways to construct:

Connection connection = …;

Savepoint savepoint1 = connection.setSavepoint("savepoint1");

Based on 16 examples

 

Connection conn = …;

Savepoint save1 = conn.setSavepoint();

Based on 14 examples


public interface Savepoint

The representation of a savepoint, which is a point within the current transaction that can be referenced from the Connection.rollback method. When a transaction is rolled back to a savepoint all changes made after that savepoint are undone.

Savepoints can be either named or unnamed. Unnamed savepoints are identified by an ID generated by the underlying data source.


Method Summary
 int

          Retrieves the generated ID for the savepoint that this Savepoint object represents.
 String

          Retrieves the name of the savepoint that this Savepoint object represents.
 

Method Detail

getSavepointId

public int getSavepointId()
                   throws SQLException
Retrieves the generated ID for the savepoint that this Savepoint object represents.

Returns:
the numeric ID of this savepoint
Throws:
SQLException - if this is a named savepoint

getSavepointName

public String getSavepointName()
                        throws SQLException
Retrieves the name of the savepoint that this Savepoint object represents.

Returns:
the name of this savepoint
Throws:
SQLException - if this is an un-named savepoint


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.