Package com.microsoft.sqlserver.jdbc
Class SQLServerSavepoint
- java.lang.Object
-
- com.microsoft.sqlserver.jdbc.SQLServerSavepoint
-
- All Implemented Interfaces:
ISQLServerSavepoint,Serializable,Savepoint
public final class SQLServerSavepoint extends 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.FThe 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, String sName)Constructs a SQLServerSavepoint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLabel()Returns the savepoint labelintgetSavepointId()StringgetSavepointName()Returns the savepoint namebooleanisNamed()Returns if the savepoint label is null
-
-
-
Constructor Detail
-
SQLServerSavepoint
public SQLServerSavepoint(SQLServerConnection con, String sName)
Constructs a SQLServerSavepoint.- Parameters:
con- the connectionsName- the savepoint name
-
-
Method Detail
-
getSavepointName
public String getSavepointName() throws SQLServerException
Description copied from interface:ISQLServerSavepointReturns the savepoint name- Specified by:
getSavepointNamein interfaceISQLServerSavepoint- Specified by:
getSavepointNamein interfaceSavepoint- Returns:
- the name of savepoint
- Throws:
SQLServerException
-
getLabel
public String getLabel()
Description copied from interface:ISQLServerSavepointReturns the savepoint label- Specified by:
getLabelin interfaceISQLServerSavepoint- Returns:
- the label for Savepoint
-
isNamed
public boolean isNamed()
Description copied from interface:ISQLServerSavepointReturns if the savepoint label is null- Specified by:
isNamedin interfaceISQLServerSavepoint- Returns:
- true is the savepoint is named. Otherwise, false.
-
getSavepointId
public int getSavepointId() throws SQLServerException- Specified by:
getSavepointIdin interfaceSavepoint- Throws:
SQLServerException
-
-