org.jboss.messaging.core.impl
Class JDBCSupport.JDBCTxRunner2<T>

java.lang.Object
  extended by org.jboss.messaging.core.impl.JDBCSupport.JDBCTxRunner2<T>
Enclosing class:
JDBCSupport

protected abstract class JDBCSupport.JDBCTxRunner2<T>
extends java.lang.Object


Field Summary
protected  java.sql.Connection conn
           
 
Constructor Summary
protected JDBCSupport.JDBCTxRunner2()
           
 
Method Summary
abstract  T doTransaction()
           
 T execute()
           
 T executeWithRetry()
           
 void rollback()
          allow work to be done if commit fails, implement this if you want to rollback your own work such as setting flags.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conn

protected java.sql.Connection conn
Constructor Detail

JDBCSupport.JDBCTxRunner2

protected JDBCSupport.JDBCTxRunner2()
Method Detail

execute

public T execute()
          throws java.lang.Exception
Throws:
java.lang.Exception

executeWithRetry

public T executeWithRetry()
                   throws java.lang.Exception
Throws:
java.lang.Exception

rollback

public void rollback()
allow work to be done if commit fails, implement this if you want to rollback your own work such as setting flags.


doTransaction

public abstract T doTransaction()
                         throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2006 JBoss Inc. All Rights Reserved.