commonj.connector.metadata.discovery.mutable
Interface OperationType


public interface OperationType

Enumerates the different types of operations that may be performed on mutable MetadataObjects.

The Update, Create and Delete operations occur on a single node and can visibly modify the metadata tree. The NonVisible operation allows modfication to nodes. These modifications must not affect the rendering of the tree in the tool.

Since:
1.0

Field Summary
static OperationType CREATE
          This attribute defines the Create operation.
static OperationType DELETE
          This attribute defines the Delete operation.
static OperationType NON_VISIBLE
          This attribute defines the unknown operation.The Unknown operation is allowed only non-visible modifications to the tree.
static OperationType UPDATE
          This attribute defines the update operation.
 

Field Detail

CREATE

static final OperationType CREATE
This attribute defines the Create operation.

On creating a new node in the metadata tree, the newly created metadata object is returned.The newly created must be the child of the context node. This newly created metadata object must not be returned from any active iterator. The tool may want to display this new node as not coming froming an active iterator.

For example, when a new node is created, it may be displayed in the tool as the last child node for the context node. The iterators at this point do not have this node in them. Refreshing the tree will result in the new iterators having this new node. Upon refreshing the tree, the location of the newly created node may have changed or may not even be visible because of the filter properties.

See Also:
MetadataObject.getChildren(commonj.connector.metadata.discovery.properties.PropertyGroup), MetadataObjectIterator

DELETE

static final OperationType DELETE
This attribute defines the Delete operation.

This operation should only happen via the object wizard and the tool should not call remove on any active iterator. Once the node is deleted, any active iterator below it is invalid. The tool should release references to all active iterators below thw node.

See Also:
MetadataObjectIterator

UPDATE

static final OperationType UPDATE
This attribute defines the update operation. Any visible modifications of nodes should be of this type.


NON_VISIBLE

static final OperationType NON_VISIBLE
This attribute defines the unknown operation.The Unknown operation is allowed only non-visible modifications to the tree. This operation cannot alter description, display name, type, the flag that indicates if it is selectable or not and should not alter any other part of the tree and display properties.