com.mockrunner.mock.jdbc
Class MockSavepoint

java.lang.Object
  extended by 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.


Constructor Summary
MockSavepoint(int number)
           
MockSavepoint(java.lang.String name, int number)
           
 
Method Summary
 int getNumber()
           
 int getSavepointId()
           
 java.lang.String getSavepointName()
           
 boolean isReleased()
           
 boolean isRollbacked()
          Deprecated. use isRolledBack()
 boolean isRolledBack()
           
 void setReleased(boolean released)
           
 void setRollbacked(boolean rollbacked)
          Deprecated. use setRolledBack(boolean)
 void setRolledBack(boolean rollbacked)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockSavepoint

public MockSavepoint(int number)

MockSavepoint

public MockSavepoint(java.lang.String name,
                     int number)
Method Detail

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)