java.lang.Object
com.microsoft.sqlserver.jdbc.SQLServerSavepoint
- All Implemented Interfaces:
ISQLServerSavepoint,Serializable,Savepoint
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.F
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
ConstructorsConstructorDescriptionSQLServerSavepoint(SQLServerConnection con, String sName)Constructs a SQLServerSavepoint. -
Method Summary
-
Constructor Details
-
SQLServerSavepoint
Constructs a SQLServerSavepoint.- Parameters:
con- the connectionsName- the savepoint name
-
-
Method Details
-
getSavepointName
Description copied from interface:ISQLServerSavepointReturns the savepoint name- Specified by:
getSavepointNamein interfaceISQLServerSavepoint- Specified by:
getSavepointNamein interfaceSavepoint- Returns:
- the name of savepoint
- Throws:
SQLServerException
-
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
- Specified by:
getSavepointIdin interfaceSavepoint- Throws:
SQLServerException
-