com.apelon.dts.client.concept
Class OntylogConceptQuery

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.BaseOntylogConceptQuery
                      extended by com.apelon.dts.client.concept.OntylogConceptQuery

public abstract class OntylogConceptQuery
extends BaseOntylogConceptQuery

OntylogConceptQuery is a subclass of BaseOntylogConceptQuery. It can be instantiated to invoke the methods in BaseOntylogConceptQuery, which operate on Ontylog concepts, by using methods createInstance(ServerConnection sc) or createInstance(ServerConnection sc, boolean isValidating). Ontylog concepts reside in a standard terminology namespace, provided by subscription from Apelon, or loaded from a TDE or existing DTS 2.4 database. Concepts in an Ontylog namespace cannot be added or deleted using DTS (TDE must be used for this purpose), but properties and synonyms of concepts may be added, deleted, or modified.

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.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 OntylogConceptQuery createInstance(ServerConnection sc)
          Creates an instance of OntylogConceptQuery.
static OntylogConceptQuery createInstance(ServerConnection sc, boolean isValidating)
          Creates an instance of OntylogConceptQuery.
 
Methods inherited from class com.apelon.dts.client.concept.BaseOntylogConceptQuery
addRoleType, assertIsNotNull, deleteRoleType, deleteRoleType, fetchParentReferences, fetchRightIdentityReferences, findRoleTypeByCode, findRoleTypeById, findRoleTypeByName, getAllKinds, getAllRoleTypes, getKinds, getResponse, getRoleTypes, isRoleTypeUsed, updateRoleType
 
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 OntylogConceptQuery createInstance(ServerConnection sc)
                                          throws IllegalArgumentException
Creates an instance of OntylogConceptQuery. 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 OntylogConceptQuery: If you're using a JDBC connection, you'll need to add something like the following lines:
  ServerConnectionJDBC scJDBC = new ServerConnectionJDBC(user, password,
    host, port, instance);
  OntylogConceptQuery ontylogConceptQuery =
    OntylogConceptQuery.createInstance(scJDBC);
  scJDBC.setQueryServer(com.apelon.dts.server.OntylogConceptServer.class,
    DTSHeader.ONTYLOGCONCEPTSERVER_HEADER);
  scJDBC.setQueryServer(com.apelon.dts.server.NamespaceServer.class,
    DTSHeader.NAMESPACESERVER_HEADER);
 

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

createInstance

public static OntylogConceptQuery createInstance(ServerConnection sc,
                                                 boolean isValidating)
                                          throws IllegalArgumentException
Creates an instance of OntylogConceptQuery. 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 OntylogConceptQuery: If you're using a JDBC connection, you'll need to add something like the following lines:
  ServerConnectionJDBC scJDBC = new ServerConnectionJDBC(user, password,
    host, port, instance);
  OntylogConceptQuery ontylogConceptQuery =
    OntylogConceptQuery.createInstance(scJDBC, true);
  scJDBC.setQueryServer(com.apelon.dts.server.OntylogConceptServer.class,
    DTSHeader.ONTYLOGCONCEPTSERVER_HEADER);
  scJDBC.setQueryServer(com.apelon.dts.server.NamespaceServer.class,
    DTSHeader.NAMESPACESERVER_HEADER);
 

Parameters:
sc - the server connection
isValidating - true if XML needs to be validated, false otherwise.
Returns:
the created OntylogConceptQuery
Throws:
IllegalArgumentException - if a null server connection is passed
See Also:
ServerConnectionJDBC, ServerConnectionSocket, ServerConnectionSecureSocket


Copyright © 2011. All Rights Reserved.