org.apache.onami.persist
Interface PersistenceService


public interface PersistenceService

This is the main control to the entire persistence engine. Before calling any other method of either UnitOfWork, EntityManagerProvider, or any method annotated with @Transactional the persistence service must be started.


Method Summary
 boolean isRunning()
           
 void start()
          Starts the underlying persistence engine and makes onami-persist ready for use.
 void stop()
          Stops the underlying persistence engine.
 

Method Detail

start

void start()
Starts the underlying persistence engine and makes onami-persist ready for use. This method must be called by your code prior to using any other onami-persist artifacts. If you are using onami-persist in a web container PersistenceFilter will call this method upon initialization of the web application.

Throws:
IllegalStateException - if the service is already running.

isRunning

boolean isRunning()
Returns:
true if the underlying persistence engine is running. false otherwise.

stop

void stop()
Stops the underlying persistence engine.



Copyright © 2013–2014 The Apache Software Foundation. All rights reserved.