|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
org.LexGrid.LexBIG.caCore.applicationservice.impl.LexEVSApplicationServiceImpl
public class LexEVSApplicationServiceImpl
Main implementation class of LexEVSAPI. This class implements but the DataService and the Distributed portions of the LexEVSAPI.
Field Summary | |
---|---|
protected org.springframework.context.ApplicationContext |
appContext
|
private LexEVSClassCache |
classCache
|
private static Class |
DATA_SERVICE_TOKEN_REQUIRED
Annotation to indicate that this Data Service method requires a Security Token |
private GridCQLToDetachedCriteria |
gridCQLToDetachedCriteriaTranslator
|
private org.LexGrid.LexBIG.LexBIGService.LexBIGService |
lbs
The lbs. |
private static org.apache.log4j.Logger |
log
|
private NestedObjectToCriteria |
nestedObjectToCriteriaTranslator
|
private PaginationHelper |
paginationHelper
|
private QBEPathToDetachedCriteria |
qbePathToDetachedCriteriaTranslator
|
private SDKCQLToDetachedCriteria |
sdkCQLToDetachedCriteriaTranslator
|
private static Class |
TOKEN_REQUIRED
Annotation class used to mark LexBig classes and methods as requiring security token for execution on a client without the LexBig environment. |
private org.LexGrid.LexBIG.caCore.security.Validator |
validator
|
Constructor Summary | |
---|---|
LexEVSApplicationServiceImpl(LexEVSClassCache classCache,
org.LexGrid.LexBIG.caCore.security.Validator validator)
|
|
LexEVSApplicationServiceImpl(org.LexGrid.LexBIG.caCore.security.Validator validator)
|
Method Summary | ||
---|---|---|
protected
|
convertToListProxy(Collection originalList,
Object query,
String classname,
Integer start,
QueryOptions options)
|
|
RemoteExecutionResults |
executeRemotely(Object object,
String methodName,
String[] parameterClasses,
Object[] args)
Execute the given method on the specified LexBig object. |
|
Object |
executeSecurely(String methodName,
Annotation[] annotations,
String[] parameterClasses,
Object[] args,
HashMap tokens)
Execute securely. |
|
List<Object> |
getAssociation(Object source,
String associationName)
|
|
List<Object> |
getAssociation(Object source,
String associationName,
QueryOptions queryOptions)
Retrieves an associated object for the example object specified by the source parameter. |
|
protected LexEVSClassCache |
getClassCache()
|
|
org.LexGrid.LexBIG.LexBIGService.CodedNodeSet |
getCodingSchemeConcepts(String codingScheme,
org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag versionOrTag)
|
|
org.LexGrid.LexBIG.LexBIGService.CodedNodeSet |
getCodingSchemeConcepts(String codingScheme,
org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag versionOrTag,
boolean activeOnly)
Deprecated. Not implemented here since it is deprecated in the LexBIGService interface. |
|
protected gov.nih.nci.system.dao.DAO |
getDAO(String classname)
|
|
private List<LexEVSDAO> |
getDOAListForQuery(gov.nih.nci.system.dao.Request request,
QueryOptions queryOptions)
|
|
org.LexGrid.LexBIG.Extensions.Query.Filter |
getFilter(String name)
|
|
org.LexGrid.LexBIG.DataModel.Collections.ExtensionDescriptionList |
getFilterExtensions()
|
|
org.LexGrid.LexBIG.Extensions.Generic.GenericExtension |
getGenericExtension(String name)
|
|
org.LexGrid.LexBIG.DataModel.Collections.ExtensionDescriptionList |
getGenericExtensions()
|
|
GridCQLToDetachedCriteria |
getGridCQLToDetachedCriteriaTranslator()
|
|
org.LexGrid.LexBIG.History.HistoryService |
getHistoryService(String codingScheme)
|
|
Date |
getLastUpdateTime()
|
|
org.LexGrid.LexBIG.DataModel.Collections.ModuleDescriptionList |
getMatchAlgorithms()
|
|
NestedObjectToCriteria |
getNestedObjectToCriteriaTranslator()
|
|
org.LexGrid.LexBIG.LexBIGService.CodedNodeGraph |
getNodeGraph(String codingScheme,
org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag versionOrTag,
String relationsName)
|
|
org.LexGrid.LexBIG.LexBIGService.CodedNodeSet |
getNodeSet(String codingScheme,
org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag versionOrTag,
org.LexGrid.LexBIG.DataModel.Collections.LocalNameList localNameList)
|
|
PaginationHelper |
getPaginationHelper()
|
|
QBEPathToDetachedCriteria |
getQbePathToDetachedCriteriaTranslator()
|
|
Integer |
getQueryRowCount(Object criteria,
String targetClassName)
|
|
Integer |
getQueryRowCount(Object criteria,
String targetClassName,
QueryOptions queryOptions)
Returns the number of records that meet the search criteria. |
|
SDKCQLToDetachedCriteria |
getSdkCQLToDetachedCriteriaTranslator()
|
|
org.LexGrid.LexBIG.LexBIGService.LexBIGServiceManager |
getServiceManager(Object credentials)
|
|
org.LexGrid.LexBIG.LexBIGService.LexBIGServiceMetadata |
getServiceMetadata()
|
|
org.LexGrid.LexBIG.Extensions.Query.Sort |
getSortAlgorithm(String name)
|
|
org.LexGrid.LexBIG.DataModel.Collections.SortDescriptionList |
getSortAlgorithms(org.LexGrid.LexBIG.DataModel.InterfaceElements.types.SortContext context)
|
|
org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList |
getSupportedCodingSchemes()
|
|
private int |
isMethodArgumentSecured(Method object)
Returns true if the given method or class is marked TOKEN_REQUIRED. |
|
private boolean |
isMethodDataServiceSecured(Object object)
Returns true if the given method or class is marked TOKEN_REQUIRED. |
|
private boolean |
isMethodSecured(Object object)
Returns true if the given method or class is marked TOKEN_REQUIRED. |
|
protected
|
privateQuery(Object criteria,
String targetClassName,
QueryOptions queryOptions)
|
|
|
query(gov.nih.nci.system.query.cql.CQLQuery cqlQuery)
|
|
|
query(gov.nih.nci.cagrid.cqlquery.CQLQuery cqlQuery)
|
|
|
query(gov.nih.nci.system.query.cql.CQLQuery cqlQuery,
QueryOptions queryOptions)
Retrieves the result from the data source using the CQL query. |
|
|
query(gov.nih.nci.cagrid.cqlquery.CQLQuery cqlQuery,
QueryOptions queryOptions)
Retrieves the result from the data source using the caGrid's CQL query. |
|
|
query(gov.nih.nci.system.query.cql.CQLQuery cqlQuery,
String targetClassName)
|
|
|
query(gov.nih.nci.system.query.cql.CQLQuery cqlQuery,
String targetClassName,
QueryOptions queryOptions)
Retrieves the result from the data source using the CQL query. |
|
|
query(org.hibernate.criterion.DetachedCriteria detachedCriteria)
|
|
|
query(org.hibernate.criterion.DetachedCriteria detachedCriteria,
QueryOptions queryOptions)
Retrieves the result from the data source using the DetachedCriteria query. |
|
|
query(org.hibernate.criterion.DetachedCriteria detachedCriteria,
String targetClassName)
|
|
|
query(org.hibernate.criterion.DetachedCriteria detachedCriteria,
String targetClassName,
QueryOptions queryOptions)
Retrieves the result from the data source using the DetachedCriteria query. |
|
|
query(gov.nih.nci.system.query.hibernate.HQLCriteria hqlCriteria)
|
|
|
query(gov.nih.nci.system.query.hibernate.HQLCriteria hqlCriteria,
QueryOptions queryOptions)
Retrieves the result from the data source using the HQL query. |
|
|
query(gov.nih.nci.system.query.hibernate.HQLCriteria hqlCriteria,
String targetClassName)
|
|
|
query(gov.nih.nci.system.query.hibernate.HQLCriteria hqlCriteria,
String targetClassName,
QueryOptions queryOptions)
Retrieves the result from the data source using the HQL query. |
|
|
query(Object criteria,
Integer firstRow,
String targetClassName)
|
|
|
query(Object criteria,
Integer firstRow,
String targetClassName,
QueryOptions queryOptions)
Used by the infrastructure to get next chunk of records in the result set. |
|
protected gov.nih.nci.system.dao.Response |
query(gov.nih.nci.system.dao.Request request,
LexEVSDAO dao)
|
|
protected gov.nih.nci.system.dao.Response |
query(gov.nih.nci.system.dao.Request request,
LexEVSDAO dao,
boolean lazyLoad,
int resultPageSize)
|
|
protected gov.nih.nci.system.dao.Response |
query(gov.nih.nci.system.dao.Request request,
QueryOptions options)
|
|
Boolean |
registerSecurityToken(String vocabulary,
gov.nih.nci.evs.security.SecurityToken token)
Register Security Token |
|
org.LexGrid.codingSchemes.CodingScheme |
resolveCodingScheme(String codingScheme,
org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag versionOrTag)
|
|
String |
resolveCodingSchemeCopyright(String codingScheme,
org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag versionOrTag)
|
|
|
search(Class targetClass,
List objList)
|
|
|
search(Class targetClass,
List objList,
QueryOptions queryOptions)
Retrieves the result from the data source using the Query by Example. |
|
|
search(Class targetClass,
Object obj)
|
|
|
search(Class targetClass,
Object obj,
QueryOptions queryOptions)
Retrieves the result from the data source using the Query by Example. |
|
|
search(Class targetClass,
Object obj,
String eagerFetchAssociation,
QueryOptions queryOptions)
|
|
|
search(String path,
List objList)
|
|
|
search(String path,
List objList,
QueryOptions queryOptions)
Retrieves the result from the data source using a Nested Search Criteria. |
|
|
search(String path,
Object obj)
|
|
|
search(String path,
Object obj,
QueryOptions queryOptions)
Retrieves the result from the data source using the Nested Search Criteria. |
|
void |
setGridCQLToDetachedCriteriaTranslator(GridCQLToDetachedCriteria gridCQLToDetachedCriteriaTranslator)
|
|
void |
setNestedObjectToCriteriaTranslator(NestedObjectToCriteria nestedObjectToCriteriaTranslator)
|
|
void |
setPaginationHelper(PaginationHelper paginationHelper)
|
|
void |
setQbePathToDetachedCriteriaTranslator(QBEPathToDetachedCriteria qbePathToDetachedCriteriaTranslator)
|
|
void |
setSdkCQLToDetachedCriteriaTranslator(SDKCQLToDetachedCriteria sdkCQLToDetachedCriteriaTranslator)
|
Methods inherited from class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl |
---|
convertToListProxy, getMaxRecordsCount, privateQuery, query |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gov.nih.nci.system.applicationservice.ApplicationService |
---|
getMaxRecordsCount |
Field Detail |
---|
private LexEVSClassCache classCache
private static org.apache.log4j.Logger log
protected org.springframework.context.ApplicationContext appContext
private org.LexGrid.LexBIG.caCore.security.Validator validator
private final org.LexGrid.LexBIG.LexBIGService.LexBIGService lbs
private NestedObjectToCriteria nestedObjectToCriteriaTranslator
private GridCQLToDetachedCriteria gridCQLToDetachedCriteriaTranslator
private QBEPathToDetachedCriteria qbePathToDetachedCriteriaTranslator
private SDKCQLToDetachedCriteria sdkCQLToDetachedCriteriaTranslator
private PaginationHelper paginationHelper
private static final Class TOKEN_REQUIRED
private static final Class DATA_SERVICE_TOKEN_REQUIRED
Constructor Detail |
---|
public LexEVSApplicationServiceImpl(LexEVSClassCache classCache, org.LexGrid.LexBIG.caCore.security.Validator validator) throws gov.nih.nci.system.applicationservice.ApplicationException
gov.nih.nci.system.applicationservice.ApplicationException
public LexEVSApplicationServiceImpl(org.LexGrid.LexBIG.caCore.security.Validator validator) throws gov.nih.nci.system.applicationservice.ApplicationException
gov.nih.nci.system.applicationservice.ApplicationException
Method Detail |
---|
public RemoteExecutionResults executeRemotely(Object object, String methodName, String[] parameterClasses, Object[] args) throws gov.nih.nci.system.applicationservice.ApplicationException
executeRemotely
in interface LexEVSApplicationService
object
- - ObjectmethodName
- - StringparameterClasses
- -String[]args
- - Object[]
gov.nih.nci.system.applicationservice.ApplicationException
- the application exceptionpublic Object executeSecurely(String methodName, Annotation[] annotations, String[] parameterClasses, Object[] args, HashMap tokens) throws Exception
executeSecurely
in interface LexEVSApplicationService
object
- the objectmethodName
- the method nameannotations
- annotations used by this methodparameterClasses
- the parameter classesargs
- the args
Exception
- the exceptionprivate boolean isMethodSecured(Object object)
object
- the object
private boolean isMethodDataServiceSecured(Object object)
object
- the object
private int isMethodArgumentSecured(Method object)
object
- the object
public Boolean registerSecurityToken(String vocabulary, gov.nih.nci.evs.security.SecurityToken token) throws Exception
registerSecurityToken
in interface org.LexGrid.LexBIG.caCore.security.interfaces.TokenSecurableApplicationService
vocabulary
- the Stringtoken
- the SecurityToken
Exception
- the exceptionpublic List<Object> getAssociation(Object source, String associationName, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
LexEVSDataService
source
parameter.
getAssociation
in interface LexEVSDataService
queryOptions
- Specific Options to be used while processing this query.
gov.nih.nci.system.applicationservice.ApplicationException
public List<Object> getAssociation(Object source, String associationName) throws gov.nih.nci.system.applicationservice.ApplicationException
getAssociation
in interface gov.nih.nci.system.applicationservice.ApplicationService
getAssociation
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> search(Class targetClass, Object obj, String eagerFetchAssociation, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> search(Class targetClass, Object obj) throws gov.nih.nci.system.applicationservice.ApplicationException
search
in interface gov.nih.nci.system.applicationservice.ApplicationService
search
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> search(Class targetClass, Object obj, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
LexEVSDataService
targetClass
specifies
the object that the user intends to fetch after executing the query. The targetClass
should be
same as the example object or associated object for the example object. The example query is converted into
the data source specific query language. For the Object Relational Mapping based persistence tier, the example
query structure is converted in the Hibernate Query Language (HQL). Hibernate converts the HQL into SQL and
executes it against the relational database.
The retrieved results are converted into a list which may not be completely loaded. If the retrieved results
are more than the maximum number of supported records as indicated by ApplicationService.getMaxRecordsCount()
then the
result set will be partially loaded. The client framework will execute a subsequent query (transparent to the
client application) against the ApplicationService
to load the remaining results in the chunk
no greater than value specified by ApplicationService.getMaxRecordsCount()
.
search
in interface LexEVSDataService
queryOptions
- Specific Options to be used while processing this query.
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> search(Class targetClass, List objList) throws gov.nih.nci.system.applicationservice.ApplicationException
search
in interface gov.nih.nci.system.applicationservice.ApplicationService
search
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> search(Class targetClass, List objList, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
LexEVSDataService
targetClass
specifies
the object that the user intends to fetch after executing the query. The targetClass
should be
same as the object specified in the objList or associated object for the example object. Also, all the objects
in the objList
has to be of the same type. The example query is converted into the data source
specific query language. For the Object Relational Mapping based persistence tier, the example query structure
is converted in the Hibernate Query Language (HQL). Hibernate converts the HQL into SQL and executes it against
the relational database.
The retrieved results are converted into a list which may not be completely loaded. If the retrieved results
are more than the maximum number of supported records as indicated by ApplicationService.getMaxRecordsCount()
then the
result set will be partially loaded. The client framework will execute a subsequent query (transparent to the
client application) against the ApplicationService
to load the remaining results in the chunk
no greater than value specified by ApplicationService.getMaxRecordsCount()
.
search
in interface LexEVSDataService
queryOptions
- Specific Options to be used while processing this query.
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> search(String path, Object obj, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
LexEVSDataService
path
specifies
the list of objects (separated by commas) which should be used to reach the target object from the example object
passed as obj
, or the associated object for the example object. Internally, the Nested Search Criteria
is converted into the data source specific query language. For the Object Relational Mapping based persistence
tier, the query structure is first converted into the Hibernate Query Language (HQL). Hibernate then converts the HQL into
SQL and executes it against the relational database.
The retrieved results are converted into a list which may not be completely loaded. If the retrieved results
are more than the maximum number of supported records as indicated by ApplicationService.getMaxRecordsCount()
then the
result set will be partially loaded. The client framework will execute a subsequent query (transparent to the
client application) against the ApplicationService
to load the remaining results in the chunk
no greater than value specified by ApplicationService.getMaxRecordsCount()
.
search
in interface LexEVSDataService
queryOptions
- Specific Options to be used while processing this query.
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> search(String path, Object obj) throws gov.nih.nci.system.applicationservice.ApplicationException
search
in interface gov.nih.nci.system.applicationservice.ApplicationService
search
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> query(gov.nih.nci.system.query.cql.CQLQuery cqlQuery, String targetClassName, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
LexEVSDataService
ApplicationService.getMaxRecordsCount()
then the
result set will be partially loaded. The client framework will execute a subsequent query (transparent to the
client application) against the ApplicationService
to load the remaining results in the chunk
no greater than value specified by ApplicationService.getMaxRecordsCount()
.
Note: The targetClassName
parameter will not be interpreted by the system. This parameter
will be determined from the CQLQuery.
query
in interface LexEVSDataService
gov.nih.nci.system.applicationservice.ApplicationException
#query(CQLQuery)}
public <E> List<E> query(gov.nih.nci.system.query.cql.CQLQuery cqlQuery, String targetClassName) throws gov.nih.nci.system.applicationservice.ApplicationException
query
in interface gov.nih.nci.system.applicationservice.ApplicationService
query
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> query(gov.nih.nci.system.query.cql.CQLQuery cqlQuery, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
LexEVSDataService
ApplicationService.getMaxRecordsCount()
then the
result set will be partially loaded. The client framework will execute a subsequent query (transparent to the
client application) against the ApplicationService
to load the remaining results in the chunk
no greater than value specified by ApplicationService.getMaxRecordsCount()
.
query
in interface LexEVSDataService
queryOptions
- Specific Options to be used while processing this query.
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> query(gov.nih.nci.system.query.cql.CQLQuery cqlQuery) throws gov.nih.nci.system.applicationservice.ApplicationException
query
in interface gov.nih.nci.system.applicationservice.ApplicationService
query
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> query(gov.nih.nci.cagrid.cqlquery.CQLQuery cqlQuery) throws gov.nih.nci.system.applicationservice.ApplicationException
query
in interface gov.nih.nci.system.applicationservice.ApplicationService
query
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> query(gov.nih.nci.cagrid.cqlquery.CQLQuery cqlQuery, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
LexEVSDataService
ApplicationService.getMaxRecordsCount()
then the
result set will be partially loaded. The client framework will execute a subsequent query (transparent to the
client application) against the ApplicationService
to load the remaining results in the chunk
no greater than value specified by ApplicationService.getMaxRecordsCount()
.
query
in interface LexEVSDataService
queryOptions
- Specific Options to be used while processing this query.
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> query(org.hibernate.criterion.DetachedCriteria detachedCriteria, String targetClassName) throws gov.nih.nci.system.applicationservice.ApplicationException
query
in interface gov.nih.nci.system.applicationservice.ApplicationService
query
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> query(org.hibernate.criterion.DetachedCriteria detachedCriteria, String targetClassName, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
LexEVSDataService
ApplicationService.getMaxRecordsCount()
then the
result set will be partially loaded. The client framework will execute a subsequent query (transparent to the
client application) against the ApplicationService
to load the remaining results in the chunk
no greater than value specified by ApplicationService.getMaxRecordsCount()
.
Note: The targetClassName
parameter will not be interpreted by the system. This parameter
will be determined from the DetachedCriteria object.
query
in interface LexEVSDataService
queryOptions
- Specific Options to be used while processing this query.
gov.nih.nci.system.applicationservice.ApplicationException
#query(DetachedCriteria)}
public <E> List<E> query(org.hibernate.criterion.DetachedCriteria detachedCriteria) throws gov.nih.nci.system.applicationservice.ApplicationException
query
in interface gov.nih.nci.system.applicationservice.ApplicationService
query
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> query(org.hibernate.criterion.DetachedCriteria detachedCriteria, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
LexEVSDataService
ApplicationService.getMaxRecordsCount()
then the
result set will be partially loaded. The client framework will execute a subsequent query (transparent to the
client application) against the ApplicationService
to load the remaining results in the chunk
no greater than value specified by ApplicationService.getMaxRecordsCount()
.
query
in interface LexEVSDataService
queryOptions
- Specific Options to be used while processing this query.
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> query(gov.nih.nci.system.query.hibernate.HQLCriteria hqlCriteria, String targetClassName) throws gov.nih.nci.system.applicationservice.ApplicationException
query
in interface gov.nih.nci.system.applicationservice.ApplicationService
query
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> query(gov.nih.nci.system.query.hibernate.HQLCriteria hqlCriteria, String targetClassName, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
LexEVSDataService
ApplicationService.getMaxRecordsCount()
then the
result set will be partially loaded. The client framework will execute a subsequent query (transparent to the
client application) against the ApplicationService
to load the remaining results in the chunk
no greater than value specified by ApplicationService.getMaxRecordsCount()
.
Note: The targetClassName
parameter will not be interpreted by the system. This parameter
will be determined from the hql query.
query
in interface LexEVSDataService
queryOptions
- Specific Options to be used while processing this query.
gov.nih.nci.system.applicationservice.ApplicationException
#query(HQLCriteria)}
public <E> List<E> query(gov.nih.nci.system.query.hibernate.HQLCriteria hqlCriteria) throws gov.nih.nci.system.applicationservice.ApplicationException
query
in interface gov.nih.nci.system.applicationservice.ApplicationService
query
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> query(gov.nih.nci.system.query.hibernate.HQLCriteria hqlCriteria, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
LexEVSDataService
ApplicationService.getMaxRecordsCount()
then the
result set will be partially loaded. The client framework will execute a subsequent query (transparent to the
client application) against the ApplicationService
to load the remaining results in the chunk
no greater than value specified by ApplicationService.getMaxRecordsCount()
.
query
in interface LexEVSDataService
queryOptions
- Specific Options to be used while processing this query.
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> query(Object criteria, Integer firstRow, String targetClassName) throws gov.nih.nci.system.applicationservice.ApplicationException
query
in interface gov.nih.nci.system.applicationservice.ApplicationService
query
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> query(Object criteria, Integer firstRow, String targetClassName, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
LexEVSDataService
ApplicationService.getMaxRecordsCount()
to determine what should be the start of next chunk.
query
in interface LexEVSDataService
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> search(String path, List objList) throws gov.nih.nci.system.applicationservice.ApplicationException
search
in interface gov.nih.nci.system.applicationservice.ApplicationService
search
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
gov.nih.nci.system.applicationservice.ApplicationException
public <E> List<E> search(String path, List objList, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
LexEVSDataService
path
specifies
the list of objects (separated by commas), which should be used to reach the target object from the example objects
passed in the objList
or associated object for the example object. The Nested Search Criteria
is converted into the data source specific query language. For the Object Relational Mapping based persistence
tier, the query structure is first converted into the Hibernate Query Language (HQL). Hibernate then converts the HQL into
SQL and executes it against the relational database.
The retrieved results are converted into a list which may not be completely loaded. If the retrieved results
are more than the maximum number of supported records as indicated by ApplicationService.getMaxRecordsCount()
then the
result set will be partially loaded. The client framework will execute a subsequent query (transparent to the
client application) against the ApplicationService
to load the remaining results in the chunk
no greater than value specified by ApplicationService.getMaxRecordsCount()
.
search
in interface LexEVSDataService
queryOptions
- Specific Options to be used while processing this query.
gov.nih.nci.system.applicationservice.ApplicationException
public Integer getQueryRowCount(Object criteria, String targetClassName) throws gov.nih.nci.system.applicationservice.ApplicationException
getQueryRowCount
in interface gov.nih.nci.system.applicationservice.ApplicationService
getQueryRowCount
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
gov.nih.nci.system.applicationservice.ApplicationException
public Integer getQueryRowCount(Object criteria, String targetClassName, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
LexEVSDataService
ApplicationService.getMaxRecordsCount()
getQueryRowCount
in interface LexEVSDataService
queryOptions
- Specific Options to be used while processing this query.
gov.nih.nci.system.applicationservice.ApplicationException
protected <E> List<E> convertToListProxy(Collection originalList, Object query, String classname, Integer start, QueryOptions options)
protected <E> List<E> privateQuery(Object criteria, String targetClassName, QueryOptions queryOptions) throws gov.nih.nci.system.applicationservice.ApplicationException
gov.nih.nci.system.applicationservice.ApplicationException
protected gov.nih.nci.system.dao.Response query(gov.nih.nci.system.dao.Request request, QueryOptions options) throws gov.nih.nci.system.applicationservice.ApplicationException
gov.nih.nci.system.applicationservice.ApplicationException
private List<LexEVSDAO> getDOAListForQuery(gov.nih.nci.system.dao.Request request, QueryOptions queryOptions) throws SelectionStrategyException
SelectionStrategyException
protected gov.nih.nci.system.dao.Response query(gov.nih.nci.system.dao.Request request, LexEVSDAO dao) throws Exception
Exception
protected gov.nih.nci.system.dao.Response query(gov.nih.nci.system.dao.Request request, LexEVSDAO dao, boolean lazyLoad, int resultPageSize) throws Exception
Exception
@Deprecated public org.LexGrid.LexBIG.LexBIGService.CodedNodeSet getCodingSchemeConcepts(String codingScheme, org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag versionOrTag, boolean activeOnly) throws org.LexGrid.LexBIG.Exceptions.LBException
getCodingSchemeConcepts
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
codingScheme
- the coding scheme StringversionOrTag
- the version or tag StringactiveOnly
- the active only boolean
org.LexGrid.LexBIG.Exceptions.LBException
- the LB exceptionpublic org.LexGrid.LexBIG.LexBIGService.CodedNodeSet getCodingSchemeConcepts(String codingScheme, org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag versionOrTag) throws org.LexGrid.LexBIG.Exceptions.LBException
getCodingSchemeConcepts
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
org.LexGrid.LexBIG.Exceptions.LBException
public org.LexGrid.LexBIG.Extensions.Query.Filter getFilter(String name) throws org.LexGrid.LexBIG.Exceptions.LBException
getFilter
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
org.LexGrid.LexBIG.Exceptions.LBException
public org.LexGrid.LexBIG.DataModel.Collections.ExtensionDescriptionList getFilterExtensions()
getFilterExtensions
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
public org.LexGrid.LexBIG.Extensions.Generic.GenericExtension getGenericExtension(String name) throws org.LexGrid.LexBIG.Exceptions.LBException
getGenericExtension
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
org.LexGrid.LexBIG.Exceptions.LBException
public org.LexGrid.LexBIG.DataModel.Collections.ExtensionDescriptionList getGenericExtensions()
getGenericExtensions
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
public org.LexGrid.LexBIG.History.HistoryService getHistoryService(String codingScheme) throws org.LexGrid.LexBIG.Exceptions.LBException
getHistoryService
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
org.LexGrid.LexBIG.Exceptions.LBException
public Date getLastUpdateTime() throws org.LexGrid.LexBIG.Exceptions.LBInvocationException
getLastUpdateTime
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
org.LexGrid.LexBIG.Exceptions.LBInvocationException
public org.LexGrid.LexBIG.DataModel.Collections.ModuleDescriptionList getMatchAlgorithms()
getMatchAlgorithms
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
public org.LexGrid.LexBIG.LexBIGService.CodedNodeGraph getNodeGraph(String codingScheme, org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag versionOrTag, String relationsName) throws org.LexGrid.LexBIG.Exceptions.LBException
getNodeGraph
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
org.LexGrid.LexBIG.Exceptions.LBException
public org.LexGrid.LexBIG.LexBIGService.LexBIGServiceManager getServiceManager(Object credentials) throws org.LexGrid.LexBIG.Exceptions.LBException
getServiceManager
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
org.LexGrid.LexBIG.Exceptions.LBException
public org.LexGrid.LexBIG.LexBIGService.LexBIGServiceMetadata getServiceMetadata() throws org.LexGrid.LexBIG.Exceptions.LBException
getServiceMetadata
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
org.LexGrid.LexBIG.Exceptions.LBException
public org.LexGrid.LexBIG.Extensions.Query.Sort getSortAlgorithm(String name) throws org.LexGrid.LexBIG.Exceptions.LBException
getSortAlgorithm
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
org.LexGrid.LexBIG.Exceptions.LBException
public org.LexGrid.LexBIG.DataModel.Collections.SortDescriptionList getSortAlgorithms(org.LexGrid.LexBIG.DataModel.InterfaceElements.types.SortContext context)
getSortAlgorithms
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
public org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList getSupportedCodingSchemes() throws org.LexGrid.LexBIG.Exceptions.LBInvocationException
getSupportedCodingSchemes
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
org.LexGrid.LexBIG.Exceptions.LBInvocationException
public org.LexGrid.codingSchemes.CodingScheme resolveCodingScheme(String codingScheme, org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag versionOrTag) throws org.LexGrid.LexBIG.Exceptions.LBException
resolveCodingScheme
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
org.LexGrid.LexBIG.Exceptions.LBException
public String resolveCodingSchemeCopyright(String codingScheme, org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag versionOrTag) throws org.LexGrid.LexBIG.Exceptions.LBException
resolveCodingSchemeCopyright
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
org.LexGrid.LexBIG.Exceptions.LBException
public org.LexGrid.LexBIG.LexBIGService.CodedNodeSet getNodeSet(String codingScheme, org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag versionOrTag, org.LexGrid.LexBIG.DataModel.Collections.LocalNameList localNameList) throws org.LexGrid.LexBIG.Exceptions.LBException
getNodeSet
in interface org.LexGrid.LexBIG.LexBIGService.LexBIGService
org.LexGrid.LexBIG.Exceptions.LBException
protected LexEVSClassCache getClassCache()
getClassCache
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
protected gov.nih.nci.system.dao.DAO getDAO(String classname) throws gov.nih.nci.system.applicationservice.ApplicationException
getDAO
in class gov.nih.nci.system.applicationservice.impl.ApplicationServiceImpl
gov.nih.nci.system.applicationservice.ApplicationException
public NestedObjectToCriteria getNestedObjectToCriteriaTranslator()
public void setNestedObjectToCriteriaTranslator(NestedObjectToCriteria nestedObjectToCriteriaTranslator)
public GridCQLToDetachedCriteria getGridCQLToDetachedCriteriaTranslator()
public void setGridCQLToDetachedCriteriaTranslator(GridCQLToDetachedCriteria gridCQLToDetachedCriteriaTranslator)
public QBEPathToDetachedCriteria getQbePathToDetachedCriteriaTranslator()
public void setQbePathToDetachedCriteriaTranslator(QBEPathToDetachedCriteria qbePathToDetachedCriteriaTranslator)
public SDKCQLToDetachedCriteria getSdkCQLToDetachedCriteriaTranslator()
public void setSdkCQLToDetachedCriteriaTranslator(SDKCQLToDetachedCriteria sdkCQLToDetachedCriteriaTranslator)
public PaginationHelper getPaginationHelper()
public void setPaginationHelper(PaginationHelper paginationHelper)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |