org.cocome.tradingsystem.inventory.data.persistence
Interface PersistenceContext

All Known Implementing Classes:
PersistenceContextImpl

public interface PersistenceContext

Author:
Yannick Welsch

Method Summary
 void close()
          disposes the current PersistenceContext.
 TransactionContext getTransactionContext()
           
 void makePersistent(java.lang.Object o)
          persists the given object
 

Method Detail

getTransactionContext

TransactionContext getTransactionContext()
Returns:
the TransactionContext

makePersistent

void makePersistent(java.lang.Object o)
persists the given object

Parameters:
o - the object to be persisted

close

void close()
disposes the current PersistenceContext. No method on the current Context should be called after calling this method.