org.softsmithy.lib.persistence
Class ResourceLocalTransactionController

java.lang.Object
  extended by org.softsmithy.lib.persistence.ResourceLocalTransactionController

public class ResourceLocalTransactionController
extends Object

Author:
puce

Constructor Summary
ResourceLocalTransactionController(String persistenceUnitName)
           
 
Method Summary
 void close()
          TODO: good to commit on close?
 EntityManager getEntityManager()
           
 EntityManagerFactory getEntityManagerFactory()
           
 void newTransaction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLocalTransactionController

public ResourceLocalTransactionController(String persistenceUnitName)
Method Detail

newTransaction

public void newTransaction()

close

public void close()
TODO: good to commit on close?


getEntityManager

public EntityManager getEntityManager()

getEntityManagerFactory

public EntityManagerFactory getEntityManagerFactory()


Copyright © 2002-2011 SoftSmithy. All Rights Reserved.