gov.nih.nci.system.dao.evs
Class EVSQueryDAOImpl

java.lang.Object
  extended by gov.nih.nci.system.dao.evs.EVSQueryDAOImpl

public class EVSQueryDAOImpl
extends java.lang.Object

Defines and implements methods to query the Enterprise Vocabulary Service. Results are returned as a Response object.


Constructor Summary
EVSQueryDAOImpl()
          Instantiates an EVSQueryDAOImpl instance
EVSQueryDAOImpl(java.lang.String file)
           
EVSQueryDAOImpl(java.lang.String file, java.util.Properties systemProperties)
           
 
Method Summary
 Response containsInverseRole(java.util.HashMap map)
          Returns a Boolean value if the specified concept contains inverse roles
 Response containsRole(java.util.HashMap map)
          Returns a Boolean value if the specified concept contains roles
 java.util.Vector convertAssociations(java.util.Vector dtsrpcAssociations)
           
 EdgeProperties convertEdgeProperties(TreeNode treenode)
           
 Response getAllAssociationTypes(java.util.HashMap map)
          Gets all association types for the specified concept from a given namespace
 java.util.List getAllClassNames()
           
 Response getAllConceptAssociationQualifierTypes(java.util.HashMap map)
          Gets all concept association qualifier types for the specified concept from a given namespace
 Response getAllConceptAssociationTypes(java.util.HashMap map)
          Gets all concept association types for the specified concept from a given namespace
 Response getAllConceptPropertyQualifierTypes(java.util.HashMap map)
          Gets all concept property qualifier types for the specified concept from a given namespace
 Response getAllConceptPropertyTypes(java.util.HashMap map)
          Gets all concept property types for the specified concept from a given namespace
 Response getAllLicenses(java.util.HashMap map)
          Gets all licenses for the specified concept from a given namespace
 Response getAllPropertyTypes(java.util.HashMap map)
           
 Response getAllQualifierTypes(java.util.HashMap map)
          Gets all qualifier types for the specified concept from a given namespace
 Response getAllRoleNames(java.util.HashMap map)
          Gets all the Role names for the specified concept from a given namespace
 Response getAllSilos(java.util.HashMap map)
           
 Response getAllSubConceptCodes(java.util.HashMap map)
          Gets all sub-concept codes for the specified concept from a given namespace
 Response getAllSubConceptNames(java.util.HashMap map)
          Gets all sub-concept names for the specified concept from a given namespace
 Response getAllSynonymTypes(java.util.HashMap map)
          Gets all synonym types for the specified concept from a given namespace
 Response getAllTermAssociationQualifierTypes(java.util.HashMap map)
          Gets all term association qualifier types for the specified concept from a given namespace
 Response getAllTermPropertyQualifierTypes(java.util.HashMap map)
          Gets all term property qualifier types for the specified concept from a given namespace
 Response getAllTermPropertyTypes(java.util.HashMap map)
          Gets all term property types for the specified concept from a given namespace
 java.util.Vector getDLSemanticTypes(DescLogicConcept dlc)
           
 Response getHistoryRecordbyCode(java.util.HashMap map)
           
 Response getHistoryRecords(java.util.HashMap map)
           
 Response getTree(java.util.HashMap map)
          get a DefaultMutableTreeNode for a given DescLogicConcept
 Response getVocabularyVersion(java.util.HashMap map)
          Returns a list of versions for the given vocabulary in the knowledgebase.
 Response query(Request r)
          Creates a connection to the EVS datasource and generates a query based on the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EVSQueryDAOImpl

public EVSQueryDAOImpl()
Instantiates an EVSQueryDAOImpl instance


EVSQueryDAOImpl

public EVSQueryDAOImpl(java.lang.String file)

EVSQueryDAOImpl

public EVSQueryDAOImpl(java.lang.String file,
                       java.util.Properties systemProperties)
Method Detail

query

public Response query(Request r)
               throws DAOException
Creates a connection to the EVS datasource and generates a query based on the request. The results are wrapped in a response object

Parameters:
r - - Request object (This object holds the evs query)
Returns:
- The results are stored in a list and returned as a response object
Throws:
DAOException
java.lang.Exception

getTree

public Response getTree(java.util.HashMap map)
                 throws java.lang.Exception
get a DefaultMutableTreeNode for a given DescLogicConcept

Parameters:
map - - Specifies the input parameters
Returns:
- Returns a Response that holds a DefaultMutableTreeNode in a list
Throws:
java.lang.Exception

getVocabularyVersion

public Response getVocabularyVersion(java.util.HashMap map)
                              throws java.lang.Exception
Returns a list of versions for the given vocabulary in the knowledgebase.

Parameters:
vocabularyName -
Throws:
java.lang.Exception

containsInverseRole

public Response containsInverseRole(java.util.HashMap map)
                             throws java.lang.Exception
Returns a Boolean value if the specified concept contains inverse roles

Parameters:
map - Specifies the input parameters
Returns:
Returns a response that holds a Boolean value in a list
Throws:
java.lang.Exception

containsRole

public Response containsRole(java.util.HashMap map)
                      throws java.lang.Exception
Returns a Boolean value if the specified concept contains roles

Parameters:
map - Specifies the input parameters
Returns:
Returns a response that holds a Boolean value in a list
Throws:
java.lang.Exception

getAllAssociationTypes

public Response getAllAssociationTypes(java.util.HashMap map)
                                throws java.lang.Exception
Gets all association types for the specified concept from a given namespace

Parameters:
map - Specifies the input parameters
Returns:
Returns a response
Throws:
java.lang.Exception

getAllConceptAssociationQualifierTypes

public Response getAllConceptAssociationQualifierTypes(java.util.HashMap map)
                                                throws java.lang.Exception
Gets all concept association qualifier types for the specified concept from a given namespace

Parameters:
map - Specifies the input parameters
Returns:
Returns a response
Throws:
java.lang.Exception

getAllConceptAssociationTypes

public Response getAllConceptAssociationTypes(java.util.HashMap map)
                                       throws java.lang.Exception
Gets all concept association types for the specified concept from a given namespace

Parameters:
map - Specifies the input parameters
Returns:
Returns a response
Throws:
java.lang.Exception

getAllConceptPropertyQualifierTypes

public Response getAllConceptPropertyQualifierTypes(java.util.HashMap map)
                                             throws java.lang.Exception
Gets all concept property qualifier types for the specified concept from a given namespace

Parameters:
map - Specifies the input parameters
Returns:
Returns a response
Throws:
java.lang.Exception

getAllConceptPropertyTypes

public Response getAllConceptPropertyTypes(java.util.HashMap map)
                                    throws java.lang.Exception
Gets all concept property types for the specified concept from a given namespace

Parameters:
map - Specifies the input parameters
Returns:
Returns a response
Throws:
java.lang.Exception

getAllLicenses

public Response getAllLicenses(java.util.HashMap map)
                        throws java.lang.Exception
Gets all licenses for the specified concept from a given namespace

Parameters:
map - Specifies the input parameters
Returns:
Returns a response
Throws:
java.lang.Exception

getAllQualifierTypes

public Response getAllQualifierTypes(java.util.HashMap map)
                              throws java.lang.Exception
Gets all qualifier types for the specified concept from a given namespace

Parameters:
map - Specifies the input parameters
Returns:
Returns a response
Throws:
java.lang.Exception

getAllRoleNames

public Response getAllRoleNames(java.util.HashMap map)
                         throws java.lang.Exception
Gets all the Role names for the specified concept from a given namespace

Parameters:
map - Specifies the input parameters
Returns:
Returns a response
Throws:
java.lang.Exception

getAllSilos

public Response getAllSilos(java.util.HashMap map)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getAllSubConceptCodes

public Response getAllSubConceptCodes(java.util.HashMap map)
                               throws java.lang.Exception
Gets all sub-concept codes for the specified concept from a given namespace

Parameters:
map - Specifies the input parameters
Returns:
Returns a response
Throws:
java.lang.Exception

getAllSubConceptNames

public Response getAllSubConceptNames(java.util.HashMap map)
                               throws java.lang.Exception
Gets all sub-concept names for the specified concept from a given namespace

Parameters:
map - Specifies the input parameters
Returns:
Returns a response
Throws:
java.lang.Exception

getAllSynonymTypes

public Response getAllSynonymTypes(java.util.HashMap map)
                            throws java.lang.Exception
Gets all synonym types for the specified concept from a given namespace

Parameters:
map - Specifies the input parameters
Returns:
Returns a response
Throws:
java.lang.Exception

getAllTermAssociationQualifierTypes

public Response getAllTermAssociationQualifierTypes(java.util.HashMap map)
                                             throws java.lang.Exception
Gets all term association qualifier types for the specified concept from a given namespace

Parameters:
map - Specifies the input parameters
Returns:
Returns a response
Throws:
java.lang.Exception

getAllTermPropertyQualifierTypes

public Response getAllTermPropertyQualifierTypes(java.util.HashMap map)
                                          throws java.lang.Exception
Gets all term property qualifier types for the specified concept from a given namespace

Parameters:
map - Specifies the input parameters
Returns:
Returns a response
Throws:
java.lang.Exception

getAllTermPropertyTypes

public Response getAllTermPropertyTypes(java.util.HashMap map)
                                 throws java.lang.Exception
Gets all term property types for the specified concept from a given namespace

Parameters:
map - Specifies the input parameters
Returns:
Returns a response
Throws:
java.lang.Exception

convertAssociations

public java.util.Vector convertAssociations(java.util.Vector dtsrpcAssociations)

convertEdgeProperties

public EdgeProperties convertEdgeProperties(TreeNode treenode)

getDLSemanticTypes

public java.util.Vector getDLSemanticTypes(DescLogicConcept dlc)

getAllPropertyTypes

public Response getAllPropertyTypes(java.util.HashMap map)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getHistoryRecordbyCode

public Response getHistoryRecordbyCode(java.util.HashMap map)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getHistoryRecords

public Response getHistoryRecords(java.util.HashMap map)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getAllClassNames

public java.util.List getAllClassNames()


Copyright © 2007 National Cancer Institute (NCI). All Rights Reserved.