com.apelon.dts.client.term
Class TermQuery
java.lang.Object
com.apelon.apelonserver.client.BasicQuery
com.apelon.dts.client.attribute.QualifierTypeQuery
com.apelon.dts.client.attribute.PropertyTypeQuery
com.apelon.dts.client.term.BaseTermQuery
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.
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.QualifierTypeQuery |
addKBTypeListener, addQualifierType, deleteQualifierType, findQualifierTypeByCode, findQualifierTypeById, findQualifierTypeByName, fireKBTypeAction, getAllConceptAssociationQualifierTypes, getAllConceptPropertyQualifierTypes, getAllQualifierTypes, getAllTermAssociationQualifierTypes, getAllTermPropertyQualifierTypes, getConceptAssociationQualifierTypes, getConceptPropertyQualifierTypes, getKBTypeListener, getTermAssociationQualifierTypes, getTermPropertyQualifierTypes, removeKBTypeListener, updateQualifierType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 connectionisValidating
- 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.