|
||||||||||
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
public abstract class BaseConceptQuery
BaseConceptQuery
is a base class for
BaseLocalConceptQuery
, BaseOntylogConceptQuery
,
DTSConceptQuery
, and SearchQuery
. Therefore it includes
methods for both Ontylog and thesaurus concepts.
The following events are fired in this class:
ConceptEvent
is fired for adding/modifying/deleting ConceptProperty
, Synonym
Copyright: Copyright (c) 2007
Company: Apelon, Inc.
Field Summary | |
---|---|
protected ConceptListener |
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 | |
---|---|
void |
addConceptListener(ConceptListener listener)
|
DTSConcept |
addProperty(DTSConcept concept,
DTSProperty newProperty)
Adds a property to a concept. |
boolean |
addSynonym(Synonym newSynonym)
Adds a synonym association between a concept and a term. |
DTSConcept |
deleteProperty(DTSConcept concept,
DTSProperty property)
Deletes a property from a concept. |
boolean |
deleteSynonym(Synonym synonym)
Deletes a synonym association between a concept and a term. |
DTSConcept |
findConceptByCode(String conceptCode,
int namespaceId,
ConceptAttributeSetDescriptor descriptor)
Gets a concept object ( DTSConcept or OntylogConcept )
that represents the same concept as the argument concept code, but with
those attributes present that are specified in the
ConceptAttributeSetDescriptor . |
DTSConcept |
findConceptById(int conceptId,
int namespaceId,
ConceptAttributeSetDescriptor descriptor)
Gets a concept object ( DTSConcept or OntylogConcept )
that represents the same concept as the argument concept ID, but with those
attributes present that are specified in the
ConceptAttributeSetDescriptor . |
DTSConcept |
findConceptByName(String conceptName,
int namespaceId,
ConceptAttributeSetDescriptor descriptor)
Gets a concept object ( DTSConcept or OntylogConcept )
that represents the same concept as the argument concept name, but with
those attributes present that are specified in the
ConceptAttributeSetDescriptor . |
DTSConcept[] |
findConceptsByCode(String[] conceptCodes,
int[] namespaceIds,
ConceptAttributeSetDescriptor descriptor)
Gets an array of concept objects ( DTSConcept s or
OntylogConcept s) that represent the same concepts as the argument
array of concept codes, from the same respective namespaces represented by
the namespace ID array, but with those attributes present that are
specified in the ConceptAttributeSetDescriptor . |
DTSConcept[] |
findConceptsById(int[] conceptIds,
int[] namespaceIds,
ConceptAttributeSetDescriptor descriptor)
Gets an array of concept objects ( DTSConcept s or
OntylogConcept s) that represent the same concepts as the argument
array of concept IDs, from the same respective namespaces represented by
the namespace ID array, but with those attributes present that are
specified in the ConceptAttributeSetDescriptor . |
DTSConcept[] |
findConceptsByName(String[] conceptNames,
int[] namespaceIds,
ConceptAttributeSetDescriptor descriptor)
Gets an array of concept objects ( DTSConcept s or
OntylogConcept s) that represent the same concepts as the argument
array of concept names, from the same respective namespaces represented by
the namespace ID array, but with those attributes present that are
specified in the ConceptAttributeSetDescriptor . |
protected void |
fireConceptAction(ConceptEvent event)
|
DTSPropertyType[] |
getAllConceptPropertyTypes()
Retrieves all concept property types. |
ConceptListener |
getConceptListener()
Get the ConceptListener. |
DTSPropertyType[] |
getConceptPropertyTypes(int namespaceId)
Retrieves all concept property types within a given namespace. |
protected NamespaceQuery |
getNamespaceQuery()
Gets the internally used NamespaceQuery instance |
void |
removeConceptListener(ConceptListener listener)
|
DTSConcept |
updateProperty(DTSConcept concept,
DTSProperty oldProperty,
DTSProperty newProperty)
Updates the concept, replacing the old DTSProperty with the new
DTSProperty including any qualifiers. |
boolean |
updateSynonym(Synonym oldSynonym,
Synonym newSynonym)
Updates a synonym association by passing old and new synonym associations. |
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 |
Field Detail |
---|
protected transient ConceptListener conceptListener
Method Detail |
---|
protected NamespaceQuery getNamespaceQuery()
NamespaceQuery
instance
public DTSConcept addProperty(DTSConcept concept, DTSProperty newProperty) throws DTSException
concept
- the concept to which a property will be addednewProperty
- the property to add
DTSConcept
with the property added
DTSException
- if any error occurs in the methodpublic DTSConcept deleteProperty(DTSConcept concept, DTSProperty property) throws DTSException
concept
- the concept from which a property will be deletedproperty
- the property to delete
DTSConcept
with the property deleted
DTSException
- if any error occurs in the methodpublic DTSConcept updateProperty(DTSConcept concept, DTSProperty oldProperty, DTSProperty newProperty) throws DTSException
DTSProperty
with the new
DTSProperty
including any qualifiers. If the new
property includes qualifiers that were not on the old property, the
qualifiers will be added. In turn, if the old property includes any
qualifiers that are not part of the new property the
old qualifiers will be removed.
concept
- concept for which a property is to be updatedoldProperty
- existing property to be updatednewProperty
- DTSProperty
having updated values
DTSConcept
with the property updated
DTSException
- if any error occurs in the methodpublic DTSConcept findConceptByName(String conceptName, int namespaceId, ConceptAttributeSetDescriptor descriptor) throws DTSException
DTSConcept
or OntylogConcept
)
that represents the same concept as the argument concept name, but with
those attributes present that are specified in the
ConceptAttributeSetDescriptor
.
conceptName
- the name of the concept to getnamespaceId
- ID of the concept's namespacedescriptor
- the ConceptAttributeSetDescriptor
that specifies which attributes to fetch
DTSException
- if any error occurs in the methodpublic DTSConcept[] findConceptsByName(String[] conceptNames, int[] namespaceIds, ConceptAttributeSetDescriptor descriptor) throws DTSException
DTSConcept
s or
OntylogConcept
s) that represent the same concepts as the argument
array of concept names, from the same respective namespaces represented by
the namespace ID array, but with those attributes present that are
specified in the ConceptAttributeSetDescriptor
.
conceptNames
- the array of names of concepts to getnamespaceIds
- array of the concepts' namespace IDsdescriptor
- the ConceptAttributeSetDescriptor
that specifies which attributes to fetch
DTSException
- if any error occurs in the methodpublic DTSConcept findConceptById(int conceptId, int namespaceId, ConceptAttributeSetDescriptor descriptor) throws DTSException
DTSConcept
or OntylogConcept
)
that represents the same concept as the argument concept ID, but with those
attributes present that are specified in the
ConceptAttributeSetDescriptor
.
conceptId
- the ID of the concept to getnamespaceId
- ID of the concept's namespacedescriptor
- the ConceptAttributeSetDescriptor
that specifies which attributes to fetch
DTSException
- if any error occurs in the methodpublic DTSConcept[] findConceptsById(int[] conceptIds, int[] namespaceIds, ConceptAttributeSetDescriptor descriptor) throws DTSException
DTSConcept
s or
OntylogConcept
s) that represent the same concepts as the argument
array of concept IDs, from the same respective namespaces represented by
the namespace ID array, but with those attributes present that are
specified in the ConceptAttributeSetDescriptor
.
conceptIds
- the array of IDs of concepts to getnamespaceIds
- array of the concepts' namespace IDsdescriptor
- the ConceptAttributeSetDescriptor
that specifies which attributes to fetch
DTSException
- if any error occurs in the methodpublic DTSConcept findConceptByCode(String conceptCode, int namespaceId, ConceptAttributeSetDescriptor descriptor) throws DTSException
DTSConcept
or OntylogConcept
)
that represents the same concept as the argument concept code, but with
those attributes present that are specified in the
ConceptAttributeSetDescriptor
.
conceptCode
- the code of the concept to getnamespaceId
- ID of the concept's namespacedescriptor
- the ConceptAttributeSetDescriptor
that specifies which attributes to fetch
DTSException
- if any error occurs in the methodpublic DTSConcept[] findConceptsByCode(String[] conceptCodes, int[] namespaceIds, ConceptAttributeSetDescriptor descriptor) throws DTSException
DTSConcept
s or
OntylogConcept
s) that represent the same concepts as the argument
array of concept codes, from the same respective namespaces represented by
the namespace ID array, but with those attributes present that are
specified in the ConceptAttributeSetDescriptor
.
conceptCodes
- the array of codes of concepts to getnamespaceIds
- array of the concepts' namespace IDsdescriptor
- the ConceptAttributeSetDescriptor
that specifies which attributes to fetch
DTSException
- if any error occurs in the methodpublic DTSPropertyType[] getAllConceptPropertyTypes() throws DTSException
DTSPropertyType
s.
Returns an empty array if there are no concept
DTSPropertyType
s.
DTSException
- if any error occurs in the methodpublic DTSPropertyType[] getConceptPropertyTypes(int namespaceId) throws DTSException
namespaceId
- the ID of the namespace of interest
DTSPropertyType
s in the namespace.
Returns an empty array if there are no concept
DTSPropertyType
s.
DTSException
- if any error occurs in the methodpublic boolean addSynonym(Synonym newSynonym) throws DTSException
newSynonym
- Synonym
to be added
true
if the synonym is added succesfully;
otherwise false
.
DTSException
- if any error occurs in the methodpublic boolean deleteSynonym(Synonym synonym) throws DTSException
synonym
- Synonym
to be deleted
true
if the synonym is succesfully deleted;
false
otherwise.
DTSException
- if any error occurs in the methodpublic boolean updateSynonym(Synonym oldSynonym, Synonym newSynonym) throws DTSException
oldSynonym
- the original synonym associationnewSynonym
- the updated synonym association
true
if the update is successful; false
otherwise
DTSException
- if any error occurs in the methodpublic ConceptListener getConceptListener()
public void addConceptListener(ConceptListener listener)
public void removeConceptListener(ConceptListener listener)
protected void fireConceptAction(ConceptEvent event)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |