|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is the schema service interface for reading and writing to and from NDS.
All schema modifications should be made through SchemaDefinition. This interface provides methods to get the SchemaDefinition and attribute and class definitions. Applications should never use this interface directly to modify the schema.
SchemaDefinition| Method Summary | |
void |
deleteAttributeDefinition(AttributeDefinition attributeDef)
Deletes the attribute definition from NDS. |
void |
deleteClassDefinition(ClassDefinition classDef)
Deletes the class definition from NDS. |
AttributeDefinition |
getAttributeDefinition(java.lang.String attrName)
Returns the definition for a specific attribute. |
ClassDefinition |
getClassDefinition(java.lang.String className)
Returns the definition for a specific class. |
ObjectType |
getObjectType(java.lang.String className)
Returns an ObjectType object for a specific class. |
SchemaDefinition |
getSchemaDefinition()
Returns the schema definition from NDS. |
void |
modifyClassDefinition(ClassDefinition classDef)
Modifies the class definition in NDS. |
void |
refreshSchema()
Forces the entire schema to be re-read from NDS. |
void |
writeAttributeDefinition(AttributeDefinition attributeDef)
Writes the attribute definition to NDS. |
void |
writeClassDefinition(ClassDefinition classDef)
Writes the class definition to NDS. |
| Method Detail |
public void deleteAttributeDefinition(AttributeDefinition attributeDef)
throws SPIException
attributeDef - The attribute definition.
SPIException - Refer to SPIException documentation.public void deleteClassDefinition(ClassDefinition classDef)
throws SPIException
classDef - The class definition.
SPIException - Refer to SPIException documentation.public AttributeDefinition getAttributeDefinition(java.lang.String attrName)
throws SPIException
attrName - The name of the attribute.
SPIException - Refer to SPIException documentation.public ClassDefinition getClassDefinition(java.lang.String className)
throws SPIException
className - The name of the class.
SPIException - Refer to SPIException documentation.SchemaDefinition.getClassDefinition(String)public ObjectType getObjectType(java.lang.String className)
throws SPIException
className - The name of the class.
SPIException - Refer to SPIException documentation.public SchemaDefinition getSchemaDefinition()
throws SPIException
SPIException - Refer to SPIException documentation.public void modifyClassDefinition(ClassDefinition classDef)
throws SPIException
classDef - The class definition.
SPIException - Refer to SPIException documentation.public void refreshSchema()
public void writeAttributeDefinition(AttributeDefinition attributeDef)
throws SPIException
attributeDef - The attribute definition.
SPIException - Refer to SPIException documentation.public void writeClassDefinition(ClassDefinition classDef)
throws SPIException
classDef - The class definition.
SPIException - Refer to SPIException documentation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||