org.cocome.tradingsystem.inventory.data.persistence.impl
Class PersistenceImpl

java.lang.Object
  extended by org.cocome.tradingsystem.inventory.data.persistence.impl.PersistenceImpl
All Implemented Interfaces:
PersistenceIf

public class PersistenceImpl
extends java.lang.Object
implements PersistenceIf

Author:
Yannick Welsch

Constructor Summary
PersistenceImpl(javax.persistence.EntityManagerFactory emf)
           
 
Method Summary
 PersistenceContext getPersistenceContext()
          Method used to get a PersistenceContext (to start transactions and persist objects for example)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceImpl

public PersistenceImpl(javax.persistence.EntityManagerFactory emf)
Method Detail

getPersistenceContext

public PersistenceContext getPersistenceContext()
Description copied from interface: PersistenceIf
Method used to get a PersistenceContext (to start transactions and persist objects for example)

Specified by:
getPersistenceContext in interface PersistenceIf
Returns:
the new PersistenceContext