Package net.sourceforge.jtds.jdbc
Class SavepointImpl
- java.lang.Object
-
- net.sourceforge.jtds.jdbc.SavepointImpl
-
- All Implemented Interfaces:
java.sql.Savepoint
class SavepointImpl extends java.lang.Object implements java.sql.Savepoint
Savepoint implementation class.- Version:
- $Id: SavepointImpl.java,v 1.5 2005-04-28 14:29:27 alin_sinpalean Exp $
- Author:
- Brian Heineman
-
-
Constructor Summary
Constructors Constructor Description SavepointImpl(int id)
Constructs a savepoint with a specific identifier.SavepointImpl(int id, java.lang.String name)
Constructs a savepoint with a specific identifier and name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
getId()
Returns the savepoint id.int
getSavepointId()
java.lang.String
getSavepointName()
-
-
-
Constructor Detail
-
SavepointImpl
SavepointImpl(int id)
Constructs a savepoint with a specific identifier.- Parameters:
id
- a savepoint identifier
-
SavepointImpl
SavepointImpl(int id, java.lang.String name)
Constructs a savepoint with a specific identifier and name.- Parameters:
id
- a savepoint identifiername
- the savepoint name
-
-
Method Detail
-
getSavepointId
public int getSavepointId() throws java.sql.SQLException
- Specified by:
getSavepointId
in interfacejava.sql.Savepoint
- Throws:
java.sql.SQLException
-
getSavepointName
public java.lang.String getSavepointName() throws java.sql.SQLException
- Specified by:
getSavepointName
in interfacejava.sql.Savepoint
- Throws:
java.sql.SQLException
-
getId
int getId()
Returns the savepoint id. This will not throw an exception for named savepoints as wouldgetSavepointId()
.- Returns:
- the savepoint id
-
-