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 entity manager
Returns:
-- return value
Throws:
Exception - -- thrown when something failed


Copyright © 2012 akquinet AG. All Rights Reserved.