| org.netbeans.modules.sql.framework.model.SQLContainerObject
SQLContainerObject | public interface SQLContainerObject (Code) | | author: Ritesh Adval |
Method Summary | |
public void | addObject(SQLObject newObject) Adds given SQLObject instance to this SQLDefinition. | public void | addSecondPassSQLObject(SQLObject sqlObj, Element element) Adds SQLObject to list of object references to be resolved in a second pass. | public Object | cloneSQLObject() | public SQLObject | createObject(String objTag) Creates a new SQLObject instance of the given type with the given display name -
does not associated the vended SQLObject with this instance. | public SQLObject | createSQLObject(String className) Creates a new SQLObject instance of the given type with the given display name -
does not associated the vended SQLObject with this instance. | public Collection<SQLObject> | getAllObjects() Gets the Collection of active SQLObjects. | public SQLObject | getObject(String objectId, int type) Gets associated SQLObject instance, if any, with the given object ID. | public Collection | getObjectsOfType(int type) | public Object | getParent() Gets parent object, if any, that owns this SQLDefinition instance. | public void | parseXML(Element xmlElement) Parses the XML content, if any, using the given Element as a source for
reconstituting the member variables and collections of this instance. | public void | removeAllObjects() | public void | removeObject(SQLObject sqlObj) | public void | removeObjects(Collection sqlObjs) Removes SQLObjects passed. | public void | setParent(Object newParent) Sets parent object, if any, that owns this SQLDefinition instance. | public String | toXMLString(String prefix) Returns the XML representation of collabSegment.
Parameters: prefix - the xml. |
addObject | public void addObject(SQLObject newObject) throws BaseException(Code) | | Adds given SQLObject instance to this SQLDefinition.
Parameters: newObject - new instance to add throws: BaseException - if add fails or instance implements an unrecognized objecttype. |
addSecondPassSQLObject | public void addSecondPassSQLObject(SQLObject sqlObj, Element element)(Code) | | Adds SQLObject to list of object references to be resolved in a second pass.
Parameters: sqlObj - to be added Parameters: element - DOM Element of SQLObject to be resolved later |
createObject | public SQLObject createObject(String objTag) throws BaseException(Code) | | Creates a new SQLObject instance of the given type with the given display name -
does not associated the vended SQLObject with this instance. To associate the
returned SQLObject instance with this instance, the calling method should call
addSQLObject(SQLObject) which will ensure the parent-child relationship is
preserved.
Parameters: objTag - objTag of object to create new SQLObject instance throws: BaseException - if error occurs during creation See Also: SQLContainerObject.addObject(SQLObject) |
createSQLObject | public SQLObject createSQLObject(String className) throws BaseException(Code) | | Creates a new SQLObject instance of the given type with the given display name -
does not associated the vended SQLObject with this instance. To associate the
returned SQLObject instance with this instance, the calling method should call
addSQLObject(SQLObject) which will ensure the parent-child relationship is
preserved.
Parameters: className - className of object to create new SQLObject instance throws: BaseException - if error occurs during creation See Also: SQLContainerObject.addObject(SQLObject) |
getAllObjects | public Collection<SQLObject> getAllObjects()(Code) | | Gets the Collection of active SQLObjects.
Collection of current SQLObjects in this SQLDefinition instance. |
getObject | public SQLObject getObject(String objectId, int type)(Code) | | Gets associated SQLObject instance, if any, with the given object ID.
Parameters: objectId - ID of SQLObject instance to be retrieved Parameters: type - type of object to retrieve associated SQLObject instance, or null if no such instance exists |
getObjectsOfType | public Collection getObjectsOfType(int type)(Code) | | Gets a Collection of SQLObjects, if any, with the given type
Parameters: type - SQLObject type to retrieve Collection (possibly empty) of SQLObjects with the given type |
getParent | public Object getParent()(Code) | | Gets parent object, if any, that owns this SQLDefinition instance.
parent object |
parseXML | public void parseXML(Element xmlElement) throws BaseException(Code) | | Parses the XML content, if any, using the given Element as a source for
reconstituting the member variables and collections of this instance.
Parameters: xmlElement - DOM element containing XML marshalled version of a SQLDefinitioninstance throws: BaseException - thrown while parsing XML, or if xmlElement is null |
removeAllObjects | public void removeAllObjects()(Code) | | Remove all objects from this container
|
removeObject | public void removeObject(SQLObject sqlObj) throws BaseException(Code) | | Removes the given object from SQLDefinition
Parameters: sqlObj - to be removed throws: BaseException - while removing |
removeObjects | public void removeObjects(Collection sqlObjs) throws BaseException(Code) | | Removes SQLObjects passed.
Parameters: sqlObjs - Collection of SQLObjects to be removed throws: BaseException - while removing |
setParent | public void setParent(Object newParent)(Code) | | Sets parent object, if any, that owns this SQLDefinition instance.
Parameters: newParent - new parent object |
toXMLString | public String toXMLString(String prefix) throws BaseException(Code) | | Returns the XML representation of collabSegment.
Parameters: prefix - the xml. Returns the XML representation of colabSegment. throws: com.sun.sql.framework.exception.BaseException - |
|
|