org.apache.onami.persist.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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Starts the underlying persistence engine and makes onami-persist ready for use.
| |||||||||||
Stops the underlying persistence engine.
|
true
if the underlying persistence engine is running.
false
otherwise.
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.
IllegalStateException | if the service is already running. |
---|
Stops the underlying persistence engine.