|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wideplay.warp.persist.PersistenceService
public abstract class PersistenceService
This is the core warp-persist artifact. It providers factories for generating guice modules for your persistence configuration. It also must be injected into your code later as a service abstraction for starting the underlying persistence engine (Hibernate or JPA).
Implementations of this type should make sure start()
and shutdown()
are
thread safe.
Constructor Summary | |
---|---|
PersistenceService()
|
Method Summary | |
---|---|
static boolean |
isDynamicFinder(Method method)
A utility for testing if a given method is a dynamic finder. |
abstract void |
shutdown()
Stops the underlying persistence engine. |
abstract void |
start()
Starts the underlying persistence engine and makes warp-persist ready for use. |
static SessionStrategyBuilder |
using(PersistenceStrategy ps)
Configure a given PersistenceStrategy , either
because it is not part of Warp Persist, or because you need support for multiple
persistence modules (bound to an annotation). |
static SessionStrategyBuilder |
usingDb4o()
A factory for warp-persist using Db4o in your Guice module. |
static SessionStrategyBuilder |
usingHibernate()
A factory for warp-persist using Hibernate in your Guice module. |
static SessionStrategyBuilder |
usingJpa()
A factory for warp-persist using JPA in your Guice module. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistenceService()
Method Detail |
---|
public abstract void start()
public abstract void shutdown()
public static SessionStrategyBuilder usingHibernate()
public static SessionStrategyBuilder usingJpa()
public static SessionStrategyBuilder usingDb4o()
public static SessionStrategyBuilder using(PersistenceStrategy ps)
PersistenceStrategy
, either
because it is not part of Warp Persist, or because you need support for multiple
persistence modules (bound to an annotation).
ps
- the PersistenceService
to configure
public static boolean isDynamicFinder(Method method)
method
- A method you suspect is a Dynamic Finder.
@Finder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |