|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.TermSearchQuery
public abstract class TermSearchQuery
TermSearchQuery
provides search methods for searching terms.
Copyright: Copyright (c) 2003
Company: 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 TermSearchQuery |
createInstance(ServerConnection sc)
Creates an instance of TermSearchQuery . |
static TermSearchQuery |
createInstance(ServerConnection sc,
boolean isValidating)
Creates an instance of TermSearchQuery . |
Term[] |
findTermsWithInverseTermAssociationMatching(AssociationType termAssocType,
String fromTermName,
TermSearchOptions options)
Finds terms with Term Association having given Term Association Type and matching From Term name pattern. |
Term[] |
findTermsWithNameMatching(String pattern,
TermSearchOptions options)
Retrieves each term with a name (string identifier) that matches the argument pattern, based on the specified search options. |
Term[] |
findTermsWithPropertyMatching(DTSPropertyType propType,
String pattern,
TermSearchOptions options)
Finds terms with Property having given Property Type and matching value pattern. |
Term[] |
findTermsWithTermAssociationMatching(AssociationType termAssocType,
String toTermName,
TermSearchOptions options)
Finds terms with Term Association having given Term Association Type and matching To Term name pattern. |
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.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 |
---|
public static TermSearchQuery createInstance(ServerConnection sc) throws IllegalArgumentException
TermSearchQuery
.
ServerConnection
object passed in the
argument, the server may be local (JDBC), socket, or another implementation.
sc
- the type of server connection
IllegalArgumentException
- if a null server connection is passedServerConnectionJDBC
,
ServerConnectionSocket
public static TermSearchQuery createInstance(ServerConnection sc, boolean isValidating) throws IllegalArgumentException
TermSearchQuery
.
ServerConnection
object passed in the
argument, the server may be local(JDBC), socket, or another implementation.
sc
- the type of server connectionisValidating
- a boolean value. It is true if xml needs to
be validated, otherwise it is false.
IllegalArgumentException
- if a null server connection is passedServerConnectionJDBC
,
ServerConnectionSocket
public Term[] findTermsWithNameMatching(String pattern, TermSearchOptions options) throws DTSException
pattern
- the term name pattern for searchingoptions
- DTS search options such as search limit,
namespace to search in, attributes to return
with retrieved terms
Term
objects with names that
match the search pattern. An empty array is returned when
there are no matches.
DTSException
- if any error occurs in the methodpublic Term[] findTermsWithPropertyMatching(DTSPropertyType propType, String pattern, TermSearchOptions options) throws DTSException
propType
- DTSPropertyType of the searchable Properties.pattern
- the term property value pattern for searchingoptions
- Term search options such as search limit,
namespace to search in, attributes to return
with retrieved terms
DTSException
- if any error occurs in the methodpublic Term[] findTermsWithTermAssociationMatching(AssociationType termAssocType, String toTermName, TermSearchOptions options) throws DTSException
termAssocType
- term association type to search fortoTermName
- the to term name patternoptions
- Term search options such as search limit,
namespace to search in, attributes to return
with retrieved terms
Term
s with an association
of the specified type where the to term matches the passed
term name
DTSException
- if any error occurs in the methodpublic Term[] findTermsWithInverseTermAssociationMatching(AssociationType termAssocType, String fromTermName, TermSearchOptions options) throws DTSException
termAssocType
- term association type to search forfromTermName
- the from term name patternoptions
- Term search options such as search limit,
namespace to search in, attributes to return
with retrieved terms
Term
s in an association of
the specified type where the from term matches the passed
term name
DTSException
- if any error occurs in the method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |