|
||||||||||
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
public abstract class PropertyTypeQuery
PropertyTypeServer
is a base query server class that allows the
creation, modification, and deletion of property types.
The following events are fired in this class:
KBTypeEvent
is fired for adding/modifying/deleting PropertyType
Copyright: Copyright (c) 2007
Company: Apelon, Inc.
Field Summary |
---|
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 |
PropertyTypeQuery()
|
protected |
PropertyTypeQuery(boolean isValidating)
|
Method Summary | |
---|---|
DTSPropertyType |
addPropertyType(DTSPropertyType propType)
Add a concept or term property type. |
protected DTSPropertyType[] |
buildPropertyTypes(String query)
|
boolean |
deletePropertyType(DTSPropertyType propType)
Deletes a DTSPropertyType from the knowledgebase. |
DTSPropertyType |
findPropertyTypeByCode(String code,
int namespaceId)
Retrieves the property type with the specified string value code. |
DTSPropertyType |
findPropertyTypeById(int id,
int namespaceId)
Retrieves the property type with the specified ID. |
DTSPropertyType |
findPropertyTypeByName(String name,
int namespaceId)
Retrieves the property type with the specified name. |
boolean |
isPropertyTypeUsed(DTSPropertyType propType)
Returns whether the given Property Type is used in a property definition or not. |
DTSPropertyType |
updatePropertyType(DTSPropertyType oldPropertyType,
DTSPropertyType newPropertyType)
Updates a qualifier type in the knowledgebase corresponding to the passed old DTSPropertyType , using the values from the new
DTSPropertyType . |
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 PropertyTypeQuery()
protected PropertyTypeQuery(boolean isValidating)
Method Detail |
---|
public DTSPropertyType addPropertyType(DTSPropertyType propType) throws DTSException
propType
- property type to add
DTSException
- if any error occurs in the methodpublic boolean deletePropertyType(DTSPropertyType propType) throws DTSException
DTSPropertyType
from the knowledgebase.
propType
- DTSPropertyType to delete
true
if the DTSPropertyType is successfully deleted;
false
if not
DTSException
- if any error occurs in the methodpublic DTSPropertyType updatePropertyType(DTSPropertyType oldPropertyType, DTSPropertyType newPropertyType) throws DTSException
DTSPropertyType
, using the values from the new
DTSPropertyType
.
oldPropertyType
- the qualifier type to be updatednewPropertyType
- the qualifier type as it should look when
updated
DTSPropertyType
.
DTSException
- if any error occurs in the methodpublic DTSPropertyType findPropertyTypeByName(String name, int namespaceId) throws DTSException
name
- the property name of the DTSPropertyType to fetchnamespaceId
- ID of the concept's namespace
null
if not found
DTSException
- if any error occurs in the methodpublic DTSPropertyType findPropertyTypeById(int id, int namespaceId) throws DTSException
id
- the property ID of the DTSPropertyType to fetchnamespaceId
- ID of the concept's namespace
null
if not found
DTSException
- if any error occurs in the methodpublic DTSPropertyType findPropertyTypeByCode(String code, int namespaceId) throws DTSException
code
- the property code of the DTSPropertyType to fetchnamespaceId
- ID of the concept's namespace
null
if not found
DTSException
- if any error occurs in the methodpublic boolean isPropertyTypeUsed(DTSPropertyType propType) throws DTSException
propType
- DTS Property Type
DTSException
- for any error while executing requestprotected DTSPropertyType[] buildPropertyTypes(String query) throws DTSException
DTSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |