com.apelon.dts.client.term
Class TermQuery

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.term.BaseTermQuery
                  extended by com.apelon.dts.client.term.TermQuery

public abstract class TermQuery
extends BaseTermQuery

TermQuery support queries on terms, including their properties. If you have two instances of TermQuery and you would like to share the listeners between them, then you can code something like this.

 TermQuery tq1 = null;
 TermQuery tq2 = null;

 // Initialization code for tq1 and tq2

 tq2.addTermListener(tq1.getTermListener());
 // Now any event from tq2 will be available to tq1 listeners
 

Copyright: Copyright (c) 2003

Company: Apelon, Inc.

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

Field Summary
 
Fields inherited from class com.apelon.dts.client.term.BaseTermQuery
termListener
 
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 TermQuery createInstance(ServerConnection sc)
          Creates an instance of TermQuery.
static TermQuery createInstance(ServerConnection sc, boolean isValidating)
          Creates an instance of TermQuery.
 
Methods inherited from class com.apelon.dts.client.term.BaseTermQuery
addProperty, addTerm, addTermListener, deleteProperty, deleteTerm, fetchProperties, findTermByCode, findTermById, findTermsByName, fireTermAction, getAllTermPropertyTypes, getTermListener, getTermPropertyTypes, removeTermListener, updateProperty, updateTerm
 
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 TermQuery createInstance(ServerConnection sc)
                                throws IllegalArgumentException
Creates an instance of TermQuery.
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 TermQuery
Throws:
IllegalArgumentException - if a null server connection is passed
See Also:
ServerConnectionJDBC, ServerConnectionSocket

createInstance

public static TermQuery createInstance(ServerConnection sc,
                                       boolean isValidating)
                                throws IllegalArgumentException
Creates an instance of TermQuery.
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 TermQuery
Throws:
IllegalArgumentException - if a null server connection is passed
See Also:
ServerConnectionJDBC, ServerConnectionSocket


Copyright © 2011. All Rights Reserved.