|
||||||||||
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.concept.BaseConceptQuery com.apelon.dts.client.concept.BaseLocalConceptQuery
public abstract class BaseLocalConceptQuery
Base class for creating or deleting concepts in a local namespace.
The following events are fired in this class:
ConceptEvent
is fired for adding/modifying/deleting DTSConcept
Copyright: Copyright (c) 2004
Company: 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 |
Constructor Summary | |
---|---|
protected |
BaseLocalConceptQuery(ServerConnection sc,
boolean isValidating)
|
Method Summary | |
---|---|
DTSConcept |
addConcept(DTSConcept concept)
Adds a concept to a namespace by passing a DTSConcept object. |
DTSConcept |
addConcept(DTSConcept concept,
ConceptAttributeSetDescriptor asd)
Adds a concept to a namespace by passing a DTSConcept object. |
boolean |
deleteConcept(DTSConcept concept)
Deletes a concept from the knowledgebase. |
DTSConcept |
updateConcept(DTSConcept oldConcept,
DTSConcept newConcept)
Updates only the concept name and/or code. |
DTSConcept |
updateConcept(DTSConcept oldConcept,
DTSConcept newConcept,
ConceptAttributeSetDescriptor asd)
Updates only the concept name and/or code. |
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.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 BaseLocalConceptQuery(ServerConnection sc, boolean isValidating)
Method Detail |
---|
public DTSConcept addConcept(DTSConcept concept) throws DTSException
DTSConcept
object.
This method only adds the core concept and not any attributes that may
be attached to the DTSConcept
, such as synonyms, properties,
or qualifiers. To add attributes to a concept, use
BaseConceptQuery.addProperty(com.apelon.dts.client.concept.DTSConcept, com.apelon.dts.client.attribute.DTSProperty)
and BaseConceptQuery.addSynonym(com.apelon.dts.client.association.Synonym)
.
concept
- a concept to be added
DTSConcept
; if the code and
id were not assigned to the concept at instantiation, the code
and id values will be generated and returned.
DTSException
- if any error occurs in the methodpublic DTSConcept addConcept(DTSConcept concept, ConceptAttributeSetDescriptor asd) throws DTSException
DTSConcept
object.
This method only adds the core concept and not any attributes that may
be attached to the DTSConcept
, such as synonyms, properties,
or qualifiers. To add attributes to a concept, use
BaseConceptQuery.addProperty(com.apelon.dts.client.concept.DTSConcept, com.apelon.dts.client.attribute.DTSProperty)
and BaseConceptQuery.addSynonym(com.apelon.dts.client.association.Synonym)
.
concept
- a concept to be addedasd
- ConceptAttributeSetDescriptor
specifying which attributes to return with the
added concept
DTSConcept
populated with the requested
attributes; if the code and id were not assigned to the concept
at instantiation, the code and id values will be generated and
returned.
DTSException
- if a ontylog extension concept name is same
as any concept name in its linked namespace or
if any other error occurs in the methodpublic DTSConcept updateConcept(DTSConcept oldConcept, DTSConcept newConcept) throws DTSException
BaseConceptQuery
.
oldConcept
- DTSConcept
containing old concept
name and codenewConcept
- DTSConcept
containing new concept
name and code
DTSConcept
with the new
values of the updated concept.
DTSException
- if any error occurs in the method.public DTSConcept updateConcept(DTSConcept oldConcept, DTSConcept newConcept, ConceptAttributeSetDescriptor asd) throws DTSException
BaseConceptQuery
.
oldConcept
- DTSConcept
containing old concept
name and codenewConcept
- DTSConcept
containing new concept
name and codeasd
- ConceptAttributeSetDescriptor
specifying which attributes to return with the
updated concept
DTSConcept
with the new
values of the updated concept.
DTSException
- if a ontylog extension concept name is same
as any concept name in its linked namespace or
if any other error occurs in the methodpublic boolean deleteConcept(DTSConcept concept) throws DTSException
concept
- the concept to be deleted
true
if concept succesfully deleted; false
otherwise.
DTSException
- if any error occurs in the method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |