public class QueryServiceEJBImpl extends QueryServiceImpl implements QueryServiceEJBLocal, QueryServiceEJBRemote
| Constructor and Description |
|---|
QueryServiceEJBImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure() |
void |
registerQuery(QueryDefinition queryDefinition)
Registers new query definition in the system so it can be used for executing queries on top of it.
|
void |
replaceQuery(QueryDefinition queryDefinition)
Registers or replaces existing query.
|
void |
setCommandService(TransactionalCommandService commandService) |
void |
unregisterQuery(String uniqueQueryName)
Removes the query definition from the system
|
apply, applyQueryContext, getDataSetDefRegistry, getDataSourceResolver, getQueries, getQuery, init, onActivate, onDeactivate, onDeploy, onUnDeploy, query, query, setDataSetDefRegistry, setDataSetManager, setDataSourceResolver, setDeploymentRolesManager, setIdentityProvider, setProviderRegistry, setUserGroupCallbackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetQueries, getQuery, query, query@PostConstruct public void configure()
public void setCommandService(TransactionalCommandService commandService)
setCommandService in class QueryServiceImplpublic void registerQuery(QueryDefinition queryDefinition) throws QueryAlreadyRegisteredException
QueryServiceregisterQuery in interface QueryServiceregisterQuery in class QueryServiceImplqueryDefinition - definition of the query to be registeredQueryAlreadyRegisteredException - in case there is already query registered with given name (queryDefinition.getName())public void replaceQuery(QueryDefinition queryDefinition)
QueryServiceregisterQuery does, though it won't throw
exception in case there is already query registered but simply replace it.replaceQuery in interface QueryServicereplaceQuery in class QueryServiceImplqueryDefinition - definition of the query to be registered/replacedpublic void unregisterQuery(String uniqueQueryName) throws QueryNotFoundException
QueryServiceunregisterQuery in interface QueryServiceunregisterQuery in class QueryServiceImpluniqueQueryName - unique name that query was registered underQueryNotFoundException - in case there is no such query registeredCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.