Package net.sourceforge.jtds.jdbc
Class SavepointImpl
java.lang.Object
net.sourceforge.jtds.jdbc.SavepointImpl
- All Implemented Interfaces:
Savepoint
Savepoint implementation class.
- Version:
- $Id: SavepointImpl.java,v 1.5 2005-04-28 14:29:27 alin_sinpalean Exp $
- Author:
- Brian Heineman
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSavepointImpl
(int id) Constructs a savepoint with a specific identifier.SavepointImpl
(int id, String name) Constructs a savepoint with a specific identifier and name. -
Method Summary
-
Field Details
-
id
private final int id -
name
-
-
Constructor Details
-
SavepointImpl
SavepointImpl(int id) Constructs a savepoint with a specific identifier.- Parameters:
id
- a savepoint identifier
-
SavepointImpl
SavepointImpl(int id, String name) Constructs a savepoint with a specific identifier and name.- Parameters:
id
- a savepoint identifiername
- the savepoint name
-
-
Method Details
-
getSavepointId
- Specified by:
getSavepointId
in interfaceSavepoint
- Throws:
SQLException
-
getSavepointName
- Specified by:
getSavepointName
in interfaceSavepoint
- Throws:
SQLException
-
getId
int getId()Returns the savepoint id. This will not throw an exception for named savepoints as wouldgetSavepointId()
.- Returns:
- the savepoint id
-