de.akquinet.jbosscc.needle.db.transaction
Interface Runnable<T>

Type Parameters:
T - - return type of run()
All Known Implementing Classes:
VoidRunnable

public interface Runnable<T>

Interface for passing algorithms to executeInTransaction().


Method Summary
 T run(javax.persistence.EntityManager entityManager)
          Operation to be automatically called inside executeInTransaction().
 

Method Detail

run

T run(javax.persistence.EntityManager entityManager)
      throws Exception
Operation to be automatically called inside executeInTransaction().

Parameters:
entityManager - an EntityManager
Returns:
return value of the operation
Throws:
Exception - thrown when something failed


Copyright © 2013 akquinet AG. All Rights Reserved.