Package com.microsoft.sqlserver.jdbc
Class SQLServerSavepoint
- java.lang.Object
-
- com.microsoft.sqlserver.jdbc.SQLServerSavepoint
-
- All Implemented Interfaces:
ISQLServerSavepoint
,java.io.Serializable
,java.sql.Savepoint
public final class SQLServerSavepoint extends java.lang.Object implements ISQLServerSavepoint
Provides an implementation of JDBC Interface java.sql.Savepoint. A savepoint is checkpoint to which a transaction can be rolled back. Savepoints are defined relative to a connection.The API javadoc for JDBC API methods that this class implements are not repeated here. Please see Sun's JDBC API interfaces javadoc for those details.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SQLServerSavepoint(SQLServerConnection con, java.lang.String sName)
Constructs a SQLServerSavepoint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLabel()
Returns the savepoint labelint
getSavepointId()
java.lang.String
getSavepointName()
Returns the savepoint nameboolean
isNamed()
Returns if the savepoint label is null
-
-
-
Constructor Detail
-
SQLServerSavepoint
public SQLServerSavepoint(SQLServerConnection con, java.lang.String sName)
Constructs a SQLServerSavepoint.- Parameters:
con
- the connectionsName
- the savepoint name
-
-
Method Detail
-
getSavepointName
public java.lang.String getSavepointName() throws SQLServerException
Description copied from interface:ISQLServerSavepoint
Returns the savepoint name- Specified by:
getSavepointName
in interfaceISQLServerSavepoint
- Specified by:
getSavepointName
in interfacejava.sql.Savepoint
- Returns:
- the name of savepoint
- Throws:
SQLServerException
-
getLabel
public java.lang.String getLabel()
Description copied from interface:ISQLServerSavepoint
Returns the savepoint label- Specified by:
getLabel
in interfaceISQLServerSavepoint
- Returns:
- the label for Savepoint
-
isNamed
public boolean isNamed()
Description copied from interface:ISQLServerSavepoint
Returns if the savepoint label is null- Specified by:
isNamed
in interfaceISQLServerSavepoint
- Returns:
- true is the savepoint is named. Otherwise, false.
-
getSavepointId
public int getSavepointId() throws SQLServerException
- Specified by:
getSavepointId
in interfacejava.sql.Savepoint
- Throws:
SQLServerException
-
-