|
||||||||||
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
public abstract class QualifierTypeQuery
QualifierTypeServer
is a base query server class that allows the
creation, modification, and deletion of qualfier types.
The following events are fired in this class:
KBTypeEvent
is fired for adding/modifying/deleting QualifierType
Copyright: Copyright (c) 2002
Company: Apelon, Inc.
Field Summary | |
---|---|
protected KBTypeListener |
kbtypeListener
|
Fields inherited from class com.apelon.apelonserver.client.BasicQuery |
---|
ADMIN, queryHeader |
Constructor Summary | |
---|---|
protected |
QualifierTypeQuery()
|
protected |
QualifierTypeQuery(boolean isValidating)
|
Method Summary | |
---|---|
void |
addKBTypeListener(KBTypeListener listener)
|
QualifierType |
addQualifierType(QualifierType newQualifierType)
Adds a new QualifierType to the knowledgebase. |
boolean |
deleteQualifierType(QualifierType qualifierType)
Deletes a QualifierType from the knowledgebase. |
QualifierType |
findQualifierTypeByCode(String termCode,
int namespaceId)
Gets the QualifierType object with the specified code and
namespace ID. |
QualifierType |
findQualifierTypeById(int termId,
int namespaceId)
Gets the QualifierType object with the specified ID and
namespace ID. |
QualifierType |
findQualifierTypeByName(String termName,
int namespaceId)
Gets the QualifierType object with the specified name and
namespace ID. |
protected void |
fireKBTypeAction(KBTypeEvent event)
|
QualifierType[] |
getAllConceptAssociationQualifierTypes()
Retrieves all concept association qualifier types. |
QualifierType[] |
getAllConceptPropertyQualifierTypes()
Retrieves all concept property qualifier types. |
QualifierType[] |
getAllQualifierTypes()
Retrieves all qualifier types. |
QualifierType[] |
getAllTermAssociationQualifierTypes()
Retrieves all term association qualifier types. |
QualifierType[] |
getAllTermPropertyQualifierTypes()
Retrieves all term property qualifier types. |
QualifierType[] |
getConceptAssociationQualifierTypes(int namespaceId)
Retrieves all concept association qualifier types within a given namespace. |
QualifierType[] |
getConceptPropertyQualifierTypes(int namespaceId)
Retrieves all concept property qualifier types within a given namespace. |
KBTypeListener |
getKBTypeListener()
Get the KBTypeListener. |
QualifierType[] |
getTermAssociationQualifierTypes(int namespaceId)
Retrieves all term association qualifier types within a given namespace. |
QualifierType[] |
getTermPropertyQualifierTypes(int namespaceId)
Retrieves all term property qualifier types within a given namespace. |
void |
removeKBTypeListener(KBTypeListener listener)
|
QualifierType |
updateQualifierType(QualifierType oldQualifierType,
QualifierType newQualifierType)
Updates a qualifier type in the knowledgebase corresponding to the passed old QualifierType , using the values from the new
QualifierType . |
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 KBTypeListener kbtypeListener
Constructor Detail |
---|
protected QualifierTypeQuery()
protected QualifierTypeQuery(boolean isValidating)
Method Detail |
---|
public QualifierType addQualifierType(QualifierType newQualifierType) throws DTSException
QualifierType
to the knowledgebase.
newQualifierType
- QualifierType to add
QualifierType
DTSException
- if any error occurs in the methodpublic boolean deleteQualifierType(QualifierType qualifierType) throws DTSException
QualifierType
from the knowledgebase.
qualifierType
- QualifierType to delete
true
if the QualifierType is successfully deleted;
false
if not
DTSException
- if any error occurs in the methodpublic QualifierType updateQualifierType(QualifierType oldQualifierType, QualifierType newQualifierType) throws DTSException
QualifierType
, using the values from the new
QualifierType
.
oldQualifierType
- the qualifier type to be updatednewQualifierType
- the qualifier type as it should look when
updated
DTSException
- if any error occurs in the methodpublic QualifierType[] getAllQualifierTypes() throws DTSException
QualifierType
s. Returns an
empty array if there are no QualifierType
s.
DTSException
- if any error occurs in the methodpublic QualifierType[] getAllConceptPropertyQualifierTypes() throws DTSException
QualifierType
s.
Returns an empty array if there are no concept property
QualifierType
s.
DTSException
- if any error occurs in the methodpublic QualifierType[] getConceptPropertyQualifierTypes(int namespaceId) throws DTSException
namespaceId
- the ID of the namespace of interest
QualifierType
s in the
namespace. Returns an empty array if there are no concept property
QualifierType
s.
DTSException
- if any error occurs in the methodpublic QualifierType[] getAllTermPropertyQualifierTypes() throws DTSException
QualifierType
s.
Returns an empty array if there are no term property
QualifierType
s.
DTSException
- if any error occurs in the methodpublic QualifierType[] getTermPropertyQualifierTypes(int namespaceId) throws DTSException
namespaceId
- the ID of the namespace of interest
QualifierType
s in the
namespace. Returns an empty array if there are no term property
QualifierType
s.
DTSException
- if any error occurs in the methodpublic QualifierType[] getAllConceptAssociationQualifierTypes() throws DTSException
QualifierType
s. Returns an empty array if there
are no concept association QualifierType
s.
DTSException
- if any error occurs in the methodpublic QualifierType[] getConceptAssociationQualifierTypes(int namespaceId) throws DTSException
namespaceId
- the ID of the namespace of interest
QualifierType
s in
the namespace. Returns an empty array if there are no concept
association QualifierType
s.
DTSException
- if any error occurs in the methodpublic QualifierType[] getAllTermAssociationQualifierTypes() throws DTSException
QualifierType
s. Returns an empty array if there
are no term association QualifierType
s.
DTSException
- if any error occurs in the methodpublic QualifierType[] getTermAssociationQualifierTypes(int namespaceId) throws DTSException
namespaceId
- the ID of the namespace of interest
QualifierType
s in
the namespace. Returns an empty array if there are no term
association QualifierType
s.
DTSException
- if any error occurs in the methodpublic QualifierType findQualifierTypeByName(String termName, int namespaceId) throws DTSException
QualifierType
object with the specified name and
namespace ID.
termName
- the QualifierType namenamespaceId
- the QualifierType's namespace ID
QualifierType
identified by the specified name
and namespace, or null if not found
DTSException
- if any error occurs in the methodpublic QualifierType findQualifierTypeById(int termId, int namespaceId) throws DTSException
QualifierType
object with the specified ID and
namespace ID.
termId
- the QualifierType IDnamespaceId
- the QualifierType's namespace ID
QualifierType
identified by the specified ID and
namespace, or null if not found
DTSException
- if any error occurs in the methodpublic QualifierType findQualifierTypeByCode(String termCode, int namespaceId) throws DTSException
QualifierType
object with the specified code and
namespace ID.
termCode
- the QualifierType codenamespaceId
- the QualifierType's namespace ID
QualifierType
s identified by the specified code and
namespace, or null if not found
DTSException
- if any error occurs in the methodprotected void fireKBTypeAction(KBTypeEvent event)
public KBTypeListener getKBTypeListener()
public void addKBTypeListener(KBTypeListener listener)
public void removeKBTypeListener(KBTypeListener listener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |