|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.service.StoreService
public class StoreService
Base service for persistency of jobs and actions.
| Field Summary | |
|---|---|
static java.lang.String |
CONF_CREATE_DB_SCHEMA
|
static java.lang.String |
CONF_DRIVER
|
static java.lang.String |
CONF_MAX_ACTIVE_CONN
|
static java.lang.String |
CONF_PASSWORD
|
static java.lang.String |
CONF_PREFIX
|
static java.lang.String |
CONF_URL
|
static java.lang.String |
CONF_USERNAME
|
| Constructor Summary | |
|---|---|
StoreService()
|
|
| Method Summary | ||
|---|---|---|
void |
destroy()
Destroy the StoreService |
|
javax.persistence.EntityManager |
getEntityManager()
Return EntityManager |
|
java.lang.Class<? extends Service> |
getInterface()
Return the public interface of the service. |
|
|
getStore(java.lang.Class<S> klass)
Return instance of store. |
|
|
getStore(java.lang.Class<S> klass,
T store)
Return instance of store with an EntityManager pointing to an existing Store. |
|
void |
init(Services services)
Initializes the StoreService. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONF_PREFIX
public static final java.lang.String CONF_URL
public static final java.lang.String CONF_DRIVER
public static final java.lang.String CONF_USERNAME
public static final java.lang.String CONF_PASSWORD
public static final java.lang.String CONF_MAX_ACTIVE_CONN
public static final java.lang.String CONF_CREATE_DB_SCHEMA
| Constructor Detail |
|---|
public StoreService()
| Method Detail |
|---|
public <S extends Store> S getStore(java.lang.Class<S> klass)
throws StoreException
Store.
StoreException
public <S extends Store,T extends Store> S getStore(java.lang.Class<S> klass,
T store)
throws StoreException
Store.
StoreExceptionpublic java.lang.Class<? extends Service> getInterface()
getInterface in interface ServiceStoreService.
public void init(Services services)
throws ServiceException
StoreService.
init in interface Serviceservices - services instance.
ServiceException - thrown if the service could not initialize.public void destroy()
destroy in interface Servicepublic javax.persistence.EntityManager getEntityManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||