Top Fields Constructors Methods
org.postgresql.jdbc

public Class PSQLSavepoint

extends Object
implements Savepoint
Class Inheritance
All Implemented Interfaces
java.sql.Savepoint
Imports
org.postgresql.core.Utils, org.postgresql.util.GT, .PSQLException, .PSQLState, org.checkerframework.checker.nullness.qual.Nullable, java.sql.SQLException, .Savepoint

Field Summary

Modifier and TypeField and Description
private int
private final boolean
private boolean
private @Nullable String

Constructor Summary

AccessConstructor and Description
public
PSQLSavepoint(int id)

public

Method Summary

Modifier and TypeMethod and Description
public String
public int
getSavepointId()

Implements java.sql.Savepoint.getSavepointId.

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

public String
getSavepointName()

Implements java.sql.Savepoint.getSavepointName.

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

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

idback to summary
private int id
isNamedback to summary
private final boolean isNamed
isValidback to summary
private boolean isValid
nameback to summary
private @Nullable String name

Constructor Detail

PSQLSavepointback to summary
public PSQLSavepoint(int id)
PSQLSavepointback to summary
public PSQLSavepoint(String name)

Method Detail

getPGNameback to summary
public String getPGName() throws SQLException
getSavepointIdback to summary
public int getSavepointId() throws SQLException

Implements java.sql.Savepoint.getSavepointId.

Doc from java.sql.Savepoint.getSavepointId.

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

Returns:int

the numeric ID of this savepoint

Annotations
@Override
Exceptions
SQLException:
if this is a named savepoint
getSavepointNameback to summary
public String getSavepointName() throws SQLException

Implements java.sql.Savepoint.getSavepointName.

Doc from java.sql.Savepoint.getSavepointName.

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

Returns:String

the name of this savepoint

Annotations
@Override
Exceptions
SQLException:
if this is an un-named savepoint
invalidateback to summary
public void invalidate()