com.syrtsov.ddao
Class DaoUtils

java.lang.Object
  extended by com.syrtsov.ddao.DaoUtils

public class DaoUtils
extends java.lang.Object

DaoUtils provides utility methods that can be used with DDao framework.

Created by Pavel Syrtsov Date: Aug 25, 2007 Time: 2:18:03 PM


Constructor Summary
DaoUtils()
           
 
Method Summary
static
<T> T
execInTx(java.lang.Object dao, java.util.concurrent.Callable<T> callable)
           
static void execInTx(java.lang.Object dao, java.lang.Runnable runnable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaoUtils

public DaoUtils()
Method Detail

execInTx

public static <T> T execInTx(java.lang.Object dao,
                             java.util.concurrent.Callable<T> callable)
                  throws java.lang.Exception
Throws:
java.lang.Exception

execInTx

public static void execInTx(java.lang.Object dao,
                            java.lang.Runnable runnable)
                     throws java.lang.Exception
Throws:
java.lang.Exception