public class JPAService extends Object implements Service, Instrumentable
JPAExecutor
.Modifier and Type | Field and Description |
---|---|
static String |
CONF_CONN_DATA_SOURCE |
static String |
CONF_CREATE_DB_SCHEMA |
static String |
CONF_DB_SCHEMA |
static String |
CONF_DRIVER |
static String |
CONF_MAX_ACTIVE_CONN |
static String |
CONF_PASSWORD |
static String |
CONF_PREFIX |
static String |
CONF_URL |
static String |
CONF_USERNAME |
static String |
CONF_VALIDATE_DB_CONN |
static String |
CONF_VALIDATE_DB_CONN_EVICTION_INTERVAL |
static String |
CONF_VALIDATE_DB_CONN_EVICTION_NUM |
DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND
Constructor and Description |
---|
JPAService() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the JPAService
|
<T> T |
execute(JPAExecutor<T> executor)
Execute a
JPAExecutor . |
Class<? extends Service> |
getInterface()
Return the public interface of the service.
|
void |
init(Services services)
Initializes the
JPAService . |
void |
instrument(Instrumentation instr)
Set the system instrumentation.
|
public static final String CONF_DB_SCHEMA
public static final String CONF_PREFIX
public static final String CONF_URL
public static final String CONF_DRIVER
public static final String CONF_USERNAME
public static final String CONF_PASSWORD
public static final String CONF_CONN_DATA_SOURCE
public static final String CONF_MAX_ACTIVE_CONN
public static final String CONF_CREATE_DB_SCHEMA
public static final String CONF_VALIDATE_DB_CONN
public static final String CONF_VALIDATE_DB_CONN_EVICTION_INTERVAL
public static final String CONF_VALIDATE_DB_CONN_EVICTION_NUM
public JPAService()
public Class<? extends Service> getInterface()
getInterface
in interface Service
JPAService
.public void instrument(Instrumentation instr)
Instrumentable
instrument
in interface Instrumentable
instr
- system instrumentation.public void init(Services services) throws ServiceException
JPAService
.init
in interface Service
services
- services instance.ServiceException
- thrown if the service could not initialize.public <T> T execute(JPAExecutor<T> executor) throws JPAExecutorException
JPAExecutor
.executor
- JPAExecutor to execute.JPAExecutorException
- thrown if an jpa executor failedCopyright © 2015 Apache Software Foundation. All Rights Reserved.