com.mockrunner.mock.jdbc
Class MockSavepoint
java.lang.Object
com.mockrunner.mock.jdbc.MockSavepoint
- All Implemented Interfaces:
- java.sql.Savepoint
public class MockSavepoint
- extends java.lang.Object
- implements java.sql.Savepoint
Mock implementation of Savepoint
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockSavepoint
public MockSavepoint(int number)
MockSavepoint
public MockSavepoint(java.lang.String name,
int number)
getSavepointId
public int getSavepointId()
throws java.sql.SQLException
- Specified by:
getSavepointId
in interface java.sql.Savepoint
- Throws:
java.sql.SQLException
getSavepointName
public java.lang.String getSavepointName()
throws java.sql.SQLException
- Specified by:
getSavepointName
in interface java.sql.Savepoint
- Throws:
java.sql.SQLException
getNumber
public int getNumber()
isReleased
public boolean isReleased()
isRollbacked
public boolean isRollbacked()
- Deprecated. use
isRolledBack()
isRolledBack
public boolean isRolledBack()
setReleased
public void setReleased(boolean released)
setRollbacked
public void setRollbacked(boolean rollbacked)
- Deprecated. use
setRolledBack(boolean)
setRolledBack
public void setRolledBack(boolean rollbacked)