com.apelon.dts.client.concept
Class ThesaurusConceptQuery

java.lang.Object
  extended by com.apelon.apelonserver.client.BasicQuery
      extended by com.apelon.dts.client.attribute.QualifierTypeQuery
          extended by com.apelon.dts.client.attribute.PropertyTypeQuery
              extended by com.apelon.dts.client.concept.BaseConceptQuery
                  extended by com.apelon.dts.client.concept.BaseLocalConceptQuery
                      extended by com.apelon.dts.client.concept.ThesaurusConceptQuery

public abstract class ThesaurusConceptQuery
extends BaseLocalConceptQuery

A ThesaurusConceptQuery class provides access to thesaurus concepts. Thesaurus concepts may reside in an externally defined UMLS namespace or locally defined thesaurus namespace. A local namespace can be updated, so write access is provided to add, update, and delete concepts.

If you have two instances of ThesaurusConceptQuery and you would like to share the listeners between them, then you can code something like this.

 ThesaurusConceptQuery tcq1 = null;
 ThesaurusConceptQuery tcq2 = null;

 // Initialization code for tcq1 and tcq2

 tcq2.addConceptListener(tcq1.getConceptListener());
 // Now any event from tcq2 will be available to tcq1 listeners
 

Copyright: Copyright (c) 2004

Company: Apelon, Inc.

Since:
DTS 3.0.0
Version:
DTS 3.3.0
Author:
Apelon, Inc.

Field Summary
 
Fields inherited from class com.apelon.dts.client.concept.BaseConceptQuery
conceptListener
 
Fields inherited from class com.apelon.dts.client.attribute.QualifierTypeQuery
kbtypeListener
 
Fields inherited from class com.apelon.apelonserver.client.BasicQuery
ADMIN, queryHeader
 
Method Summary
static ThesaurusConceptQuery createInstance(ServerConnection sc)
          Creates an instance of ThesaurusConceptQuery.
static ThesaurusConceptQuery createInstance(ServerConnection sc, boolean isValidating)
          Creates an instance of ThesaurusConceptQuery.
 
Methods inherited from class com.apelon.dts.client.concept.BaseLocalConceptQuery
addConcept, addConcept, deleteConcept, updateConcept, updateConcept
 
Methods inherited from class com.apelon.dts.client.concept.BaseConceptQuery
addConceptListener, addProperty, addSynonym, deleteProperty, deleteSynonym, findConceptByCode, findConceptById, findConceptByName, findConceptsByCode, findConceptsById, findConceptsByName, fireConceptAction, getAllConceptPropertyTypes, getConceptListener, getConceptPropertyTypes, getNamespaceQuery, removeConceptListener, updateProperty, updateSynonym
 
Methods inherited from class com.apelon.dts.client.attribute.PropertyTypeQuery
addPropertyType, buildPropertyTypes, deletePropertyType, findPropertyTypeByCode, findPropertyTypeById, findPropertyTypeByName, isPropertyTypeUsed, updatePropertyType
 
Methods inherited from class com.apelon.dts.client.attribute.QualifierTypeQuery
addKBTypeListener, addQualifierType, deleteQualifierType, findQualifierTypeByCode, findQualifierTypeById, findQualifierTypeByName, fireKBTypeAction, getAllConceptAssociationQualifierTypes, getAllConceptPropertyQualifierTypes, getAllQualifierTypes, getAllTermAssociationQualifierTypes, getAllTermPropertyQualifierTypes, getConceptAssociationQualifierTypes, getConceptPropertyQualifierTypes, getKBTypeListener, getTermAssociationQualifierTypes, getTermPropertyQualifierTypes, removeKBTypeListener, updateQualifierType
 
Methods inherited from class com.apelon.apelonserver.client.BasicQuery
executeQuery, executeQueryNoParse, getServerConnection, initializeDtds, initializeDtds, ping, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createInstance

public static ThesaurusConceptQuery createInstance(ServerConnection sc)
                                            throws IllegalArgumentException
Creates an instance of ThesaurusConceptQuery. Depending on the type of ServerConnection object passed in the argument, the server may be local(JDBC), socket, or another implementation.

Parameters:
sc - the type of server connection
Returns:
the created ThesaurusConceptQuery
Throws:
IllegalArgumentException - if a null server connection is passed
See Also:
ServerConnectionJDBC, ServerConnectionSocket

createInstance

public static ThesaurusConceptQuery createInstance(ServerConnection sc,
                                                   boolean isValidating)
                                            throws IllegalArgumentException
Creates an instance of ThesaurusConceptQuery. Depending on the type of ServerConnection object passed in the argument, the server may be local(JDBC), socket, or another implementation. The second argument is a boolean value for XML validation.

Parameters:
sc - the type of server connection
isValidating - a boolean value. It is true if XML needs to be validated, otherwise it is false.
Returns:
the created ThesaurusConceptQuery
Throws:
IllegalArgumentException - if a null server connection is passed
See Also:
ServerConnectionJDBC, ServerConnectionSocket


Copyright © 2011. All Rights Reserved.