|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.apelon.apelonserver.client.BasicQuery
com.apelon.dts.client.match.MatchQuery
public abstract class MatchQuery
A MatchQuery provides access to silos and pattern matching searches within
silos. A client can set a limit for resulting search matches using the
method in this link: MatchOptions.setLimit(int)
Copyright: Copyright (c) 2003
Company: Apelon, Inc.
| Field Summary |
|---|
| Fields inherited from class com.apelon.apelonserver.client.BasicQuery |
|---|
ADMIN, queryHeader |
| Constructor Summary | |
|---|---|
protected |
MatchQuery(boolean isValidating)
|
| Method Summary | |
|---|---|
static MatchQuery |
createInstance(ServerConnection sc)
Creates an instance of MatchQuery. |
static MatchQuery |
createInstance(ServerConnection sc,
boolean isValidating)
Creates an instance of MatchQuery. |
OntylogConcept[] |
findConceptsWithSiloMatching(String pattern,
MatchOptions searchSpec)
Gets an array of concept objects that represents the search pattern, but with those attributes present that are specified in the AttributteSetDescriptor. |
Silo[] |
getAllSilos()
Retrieves all silos known in the knowledgebase. |
Map |
getIdMap()
Deprecated. Do not use in application code. For use by Apelon's internal API implementation only. This method will be removed in a future DTS release. Use getAllSilos() instead. |
Map |
getNameMap()
Deprecated. Do not use in application code. For use by Apelon's internal API implementation only. This method will be removed in a future DTS release. Use getAllSilos() instead. |
Match[] |
searchSilo(String pattern,
MatchOptions searchSpec)
Performs a search for the specified pattern using the given search specification and returns an array of matches. |
| 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 |
| Constructor Detail |
|---|
protected MatchQuery(boolean isValidating)
| Method Detail |
|---|
public OntylogConcept[] findConceptsWithSiloMatching(String pattern,
MatchOptions searchSpec)
throws DTSException
searchSpec - the search criteria, such as the searched silo,
and a limit on returned matchespattern - the query string (pattern) on which the search is based
DTSException - if any error occurs in the method
public Match[] searchSilo(String pattern,
MatchOptions searchSpec)
throws DTSException
pattern - the words to search forsearchSpec - the search criteria, such as the searched silo,
and a limit on returned matches
Matches that matched the search words
DTSException - if any error occurs in the method
public static MatchQuery createInstance(ServerConnection sc)
throws IllegalArgumentException
MatchQuery. Depending on the type
of ServerConnection object passed in the argument, the server may be local
(JDBC), socket, or another implementation. When using a socket connection,
the Apelon DTS server must be configured with the following query servers
to support MatchQuery:
com.apelon.dts.server.MatchServer
ServerConnectionJDBC scJDBC = new ServerConnectionJDBC(user, password,
host, port, instance);
scJDBC.setQueryServer(com.apelon.dts.server.MatchServer.class,
DTSHeader.MATCHSERVER_HEADER);
MatchQuery matchQuery = MatchQuery.createInstance(scJDBC);
sc - the server connection
IllegalArgumentException - if a null server connection is passedServerConnectionJDBC,
ServerConnectionSocket,
ServerConnectionSecureSocket
public static MatchQuery createInstance(ServerConnection sc,
boolean isValidating)
throws IllegalArgumentException
MatchQuery. Depending on the type
of ServerConnection object passed in the first argument, the server may be
local (JDBC), socket, or another implementation. The second argument is a
boolean value for XML validation. When using a socket connection, the
Apelon DTS server must be configured with the following query servers
to support MatchQuery:
com.apelon.dts.server.MatchServer
ServerConnectionJDBC scJDBC = new ServerConnectionJDBC(user, password,
host, port, instance);
scJDBC.setQueryServer(com.apelon.dts.server.MatchServer.class,
DTSHeader.MATCHSERVER_HEADER);
MatchQuery matchQuery = MatchQuery.createInstance(scJDBC,
true);
sc - the server connectionisValidating - true if XML needs to be
validated, false otherwise.
IllegalArgumentException - if a null server connection is passedServerConnectionJDBC,
ServerConnectionSocket,
ServerConnectionSecureSocket
public Silo[] getAllSilos()
throws DTSException
Silos. Returns an empty array
if there are no Silos.
DTSException - if an error occurs in the methodpublic Map getIdMap()
getAllSilos() instead.
Map. The key is silo name, and the value
is silo ID.
public Map getNameMap()
getAllSilos() instead.
Map. The key is silo ID, and the value
is silo name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||