org.melati.poem.dbms.test.sql
Class ThrowingSavepoint

java.lang.Object
  extended by org.melati.poem.dbms.test.sql.Thrower
      extended by org.melati.poem.dbms.test.sql.ThrowingSavepoint
All Implemented Interfaces:
java.sql.Savepoint

public class ThrowingSavepoint
extends Thrower
implements java.sql.Savepoint

A SavePoint decorated to throw an on command.

Since:
10 Feb 2007
Author:
timp

Constructor Summary
ThrowingSavepoint(java.sql.Savepoint savepoint)
          Constructor.
 
Method Summary
 int getSavepointId()
          
 java.lang.String getSavepointName()
          
 
Methods inherited from class org.melati.poem.dbms.test.sql.Thrower
shouldThrow, startThrowing, startThrowingAfter, stopThrowing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowingSavepoint

public ThrowingSavepoint(java.sql.Savepoint savepoint)
Constructor.

Parameters:
savepoint - to decorate
Method Detail

getSavepointId

public int getSavepointId()
                   throws java.sql.SQLException

Specified by:
getSavepointId in interface java.sql.Savepoint
Throws:
java.sql.SQLException
See Also:
Savepoint.getSavepointId()

getSavepointName

public java.lang.String getSavepointName()
                                  throws java.sql.SQLException

Specified by:
getSavepointName in interface java.sql.Savepoint
Throws:
java.sql.SQLException
See Also:
Savepoint.getSavepointName()


Copyright © 2000-2008 PanEris. All Rights Reserved.