Package com.microsoft.sqlserver.jdbc
Class SQLServerSavepoint
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
ConstructorDescriptionSQLServerSavepoint(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:ISQLServerSavepoint
Returns the savepoint name- Specified by:
getSavepointName
in interfaceISQLServerSavepoint
- Specified by:
getSavepointName
in interfaceSavepoint
- Returns:
- the name of savepoint
- Throws:
SQLServerException
-
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
- Specified by:
getSavepointId
in interfaceSavepoint
- Throws:
SQLServerException
-