public interface IMapComponentOwner extends IPropertyOwner
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(IMapComponent comp)
Adds a component to the mapping.
|
boolean |
containsComponent(IMapComponent comp)
Return true if this component owner (may be a composite component) contains the specified component
as an sub-component.
|
IMapComponent |
createComponent(java.lang.String type,
IModelObject boundObject)
Creates a component with the specified type and name, bound to the specified object.
|
IMapComponent |
createComponent(java.lang.String type,
IModelObject boundObject,
boolean enableAutoJoin)
Creates a component with the specified type and name, bound to the specified object.
|
IMapComponent |
createComponent(java.lang.String type,
java.lang.String name)
Creates a component with the specified type and name.
|
java.util.List |
findAllComponents(java.lang.String name)
Finds all component owned by this component owner and any sub-component owners,
with the specified name.
|
IMapComponent |
findComponent(java.lang.String name)
Finds a component owned by this component owner, with the specified name.
|
IMapComponent |
findComponentBoundTo(IModelObject modelObj)
Find a component that is bound to the specified model object, and directly owned
by this component owner.
|
IMapComponent |
findComponentOfType(java.lang.String name,
java.lang.String type)
Find the named component of the specified type, within the component owner.
|
java.util.List |
findComponentsBoundTo(IModelObject modelObj)
Find all components that are bound to the specified model object, and directly
owned by this component owner.
|
MapConnector |
findConnector(java.lang.String name)
Find a named connector with the specified name.
|
IMapComponentOwner |
findSubComponentOwner(java.lang.String name)
Find the sub-component owner with the specified name.
|
java.util.List |
getAllComponents()
Return a list containing all the components owned by this object, including subcomponents
of the directly owned components.
|
java.util.List |
getAllComponentsOfType(java.lang.String typeName)
Get a list of all the components of the specified type that are owned by this
object and it's sub-objects.
|
java.util.List |
getAllSignatureOwnerHolders()
Return a list of components that are signature owner holder type components, for example
reusable mapping or expandable mapping.
|
java.util.List |
getAllSubComponentOwners()
Return a list containing all composite components that are also component owners.
|
int |
getComponentCount()
Get the number of components that are directly owned by this component owner.
|
java.util.List |
getComponents()
Return a list containing just the top level components, that are directly owned
by this object.
|
java.util.List |
getLeafLevelComponents()
Return a list of the leaf-level (lowest-level) components owned by this component
owner.
|
java.util.List |
getLeafLevelEndpoints()
Get a list of leaf-level components that are end points in the graph.
|
java.util.List |
getLeafLevelTargets()
Get a list of leaf-level components that are targets.
|
IMapRootContainer |
getMapRootContainer()
Get the parent mapping for this component owner.
|
java.util.List |
getSources()
Get a list of all components that have output connections but no input connections,
not including passive components.
|
java.util.List |
getTargets()
Get a list of all components that have input connections but no output connections.
|
java.util.List |
getTopLevelComponentsOfType(java.lang.String typeName)
Get a list of all the components of the specified type, that are directly owned
by this object
|
java.util.List |
getTopLevelSources()
Get a list of top level components that have output connections but no input connections,
not including passive components.
|
java.util.List |
getTopLevelTargets()
Get a list of top level components that have input connections but no output connections.
|
java.util.List |
getUpstreamLeafAttributes(IMapComponent component)
Get all upstream attributes for the specified target component.
|
java.util.List |
getUpstreamLeafAttributes(MapConnectorPoint point)
Get all upstream leaf attributes for the specified target connector point.
|
java.util.List |
getUpstreamLeafConnectorPoints(MapConnectorPoint point)
Get all upstream leaf connector points for the specified target connector point.
|
java.util.List |
getUpstreamLeafSources(IMapComponent comp)
Get the upstream leaf component sources for the specified component.
|
boolean |
isComponent()
Return true if this component owner is also a
mappingComponent instance. |
boolean |
isExpandableComponent()
Return true if this component owner is an expandable mapping component.
|
boolean |
isSignatureOwner()
Return true if this component owner supports owning signature components.
|
void |
removeComponent(IMapComponent comp)
Removes a component from the mapping.
|
void |
removeComponent(IMapComponent comp,
boolean removeReferencingExpressions)
Removes a component from the mapping.
|
addProperty, createProperty, getAllProperties, getBooleanPropertyValue, getDisplayableProperties, getDisplayableTypeName, getExpressionPropertyValue, getIntPropertyValue, getProperties, getProperty, getPropertyValue, getStringPropertyValue, isPropertyDefined, setBooleanPropertyValue, setIntPropertyValue, setPropertyValuegetBusinessName, getDescription, getName, setBusinessName, setDescription, setNamedump, dump, getDisplayableObjectName, getGUID, getOwner, getStrongTypeClassName, validate, validate, validategetRootContainergetGlobalId, getInternalId, getParentjava.util.List getAllComponents()
throws MapComponentException
MapComponentExceptionjava.util.List getComponents()
throws MappingException
MapComponentExceptionMappingExceptionjava.util.List getAllSubComponentOwners()
throws MapComponentException
MapComponentExceptionjava.util.List getAllSignatureOwnerHolders()
throws MappingException
MappingExceptionint getComponentCount()
java.util.List getAllComponentsOfType(java.lang.String typeName)
throws MappingException
typeName - The name of the component type to return.MapComponentExceptionMappingExceptionjava.util.List getTopLevelComponentsOfType(java.lang.String typeName)
throws MappingException
typeName - The name of the component type to return.MapComponentExceptionMappingExceptionIMapComponent createComponent(java.lang.String type, java.lang.String name) throws MappingException, AdapterException
LookupComponent lookup = (LookupComponent) mapping.createComponent(LookupComponent.COMPONENT_TYPE_NAME, "dept_lookup");
type - The type name of the component. The type name is not a full class name, it
is a short component type name string recognized by the component type registry. The component
name for each component is part of its definition. The component type
names are normally defined as a static variable in the component delegate class. For
example the component type name for the join component is found in
JoinComponent.COMPONENT_TYPE_NAME. The standard built-in component delegate classes
are found in package oracle.odi.domain.mapping.component. The built-in types are:
AggregateComponent.COMPONENT_TYPE_NAMEDataset.COMPONENT_TYPE_NAMEDatastoreComponent.COMPONENT_TYPE_NAMEDistinctComponent.COMPONENT_TYPE_NAMEExpressionComponent.COMPONENT_TYPE_NAMEFileComponent.COMPONENT_TYPE_NAMEFilterComponent.COMPONENT_TYPE_NAMEInputSignature.COMPONENT_TYPE_NAMEJoinComponent.COMPONENT_TYPE_NAMELookupComponent.COMPONENT_TYPE_NAMEOutputSignature.COMPONENT_TYPE_NAMEPivotComponent.COMPONENT_TYPE_NAMEReusableMappingComponent.COMPONENT_TYPE_NAMESetComponent.COMPONENT_TYPE_NAMESorterComponent.COMPONENT_TYPE_NAMESplitterComponent.COMPONENT_TYPE_NAMESubqueryFilterComponent.COMPONENT_TYPE_NAMETableFunctionComponent.COMPONENT_TYPE_NAMEUnpivotComponent.COMPONENT_TYPE_NAMEname - The name of the new component.MapComponentExceptionPropertyExceptionAdapterExceptionMappingExceptionIMapComponent createComponent(java.lang.String type, IModelObject boundObject, boolean enableAutoJoin) throws AdapterException, MappingException
DatastoreComponent inventorySource = (DatastoreComponent)mapping.createComponent(DatastoreComponent.COMPONENT_TYPE_NAME, inventory_datastore, true);
type - The type name of the component. The type name is not a full class name, it
is a short component type name string recognized by the component type registry. The component
name for each component is part of its definition. The component type
names are normally defined as a static variable in the component delegate class. For
example the component type name for the join component is found in
JoinComponent.COMPONENT_TYPE_NAME. The standard built-in component delegate classes
are found in package oracle.odi.domain.mapping.component. The built-in types are:
AggregateComponent.COMPONENT_TYPE_NAMEDataset.COMPONENT_TYPE_NAMEDatastoreComponent.COMPONENT_TYPE_NAMEDistinctComponent.COMPONENT_TYPE_NAMEExpressionComponent.COMPONENT_TYPE_NAMEFileComponent.COMPONENT_TYPE_NAMEFilterComponent.COMPONENT_TYPE_NAMEInputSignature.COMPONENT_TYPE_NAMEJoinComponent.COMPONENT_TYPE_NAMELookupComponent.COMPONENT_TYPE_NAMEOutputSignature.COMPONENT_TYPE_NAMEPivotComponent.COMPONENT_TYPE_NAMEReusableMappingComponent.COMPONENT_TYPE_NAMESetComponent.COMPONENT_TYPE_NAMESorterComponent.COMPONENT_TYPE_NAMESplitterComponent.COMPONENT_TYPE_NAMESubqueryFilterComponent.COMPONENT_TYPE_NAMETableFunctionComponent.COMPONENT_TYPE_NAMEUnpivotComponent.COMPONENT_TYPE_NAMEboundObject - An object to which the component is bound. The bound object will typically
be a repository object that is associated with this component and from
which this component will derive attribute information. The bound object
must implement the IModelObject mapping. It can be a native ODI object,
a native non-ODI repository object, or an adapter that wraps a native repository
object and implements IModelObject. Objects of type IDataStore are the most common bound
objects used with a component. If a raw native object that does not
implement IModelObject is passed in, the appropriate adapter will be invoked
to attempt to create an adapter wrapper object for it. If this cannot be done,
an exception will be thrown.enableAutoJoin - If true, enables the auto-creation of join components that
that join new source components based on relationships between the bound objects.MapComponentExceptionPropertyExceptionExpressionParseExceptionAdapterExceptionMapPhysicalExceptionMappingExceptionIMapComponent createComponent(java.lang.String type, IModelObject boundObject) throws AdapterException, MappingException
ReusableMappingComponent rmc = (ReusableMappingComponent) mapping.createComponent(ReusableMappingComponent.COMPONENT_TYPE_NAME, myReusableMapping);
type - The type name of the component. The type name is not a full class name, it
is a short component type name string recognized by the component type registry. The component
name for each component is part of its definition. The component type
names are normally defined as a static variable in the component delegate class. For
example the component type name for the join component is found in
JoinComponent.COMPONENT_TYPE_NAME. The standard built-in component delegate classes
are found in package oracle.odi.domain.mapping.component. The built-in types are:
AggregateComponent.COMPONENT_TYPE_NAMEDataset.COMPONENT_TYPE_NAMEDatastoreComponent.COMPONENT_TYPE_NAMEDistinctComponent.COMPONENT_TYPE_NAMEExpressionComponent.COMPONENT_TYPE_NAMEFileComponent.COMPONENT_TYPE_NAMEFilterComponent.COMPONENT_TYPE_NAMEInputSignature.COMPONENT_TYPE_NAMEJoinComponent.COMPONENT_TYPE_NAMELookupComponent.COMPONENT_TYPE_NAMEOutputSignature.COMPONENT_TYPE_NAMEPivotComponent.COMPONENT_TYPE_NAMEReusableMappingComponent.COMPONENT_TYPE_NAMESetComponent.COMPONENT_TYPE_NAMESorterComponent.COMPONENT_TYPE_NAMESplitterComponent.COMPONENT_TYPE_NAMESubqueryFilterComponent.COMPONENT_TYPE_NAMETableFunctionComponent.COMPONENT_TYPE_NAMEUnpivotComponent.COMPONENT_TYPE_NAMEboundObject - An object to which the component is bound. The bound object will typically
be a repository object that is associated with this component and from
which this component will derive attribute information. The bound object
must implement the IModelObject mapping. It can be a native ODI object,
a native non-ODI repository object, or an adapter that wraps a native repository
object and implements IModelObject. Objects of type IDataStore are the most common bound
objects used with a component. If a raw native object that does not
implement IModelObject is passed in, the appropriate adapter will be invoked
to attempt to create an adapter wrapper object for it. If this cannot be done,
an exception will be thrown.MapComponentExceptionPropertyExceptionExpressionParseExceptionAdapterExceptionMapPhysicalExceptionMappingExceptionvoid addComponent(IMapComponent comp) throws MappingException, MapComponentException
comp - The component to be added.MapComponentExceptionMappingExceptionvoid removeComponent(IMapComponent comp) throws MappingException, AdapterException
comp - The component to be removed.MappingExceptionAdapterExceptionvoid removeComponent(IMapComponent comp, boolean removeReferencingExpressions) throws MappingException, AdapterException
comp - The component to be removed.removeReferencingExpressions - If true, all downstream expressions that reference the
removed component will have their expression text set to blank.MappingExceptionAdapterExceptionIMapComponent findComponent(java.lang.String name) throws MapComponentException
name - MapComponentExceptionIMapComponent findComponentBoundTo(IModelObject modelObj) throws MapComponentException, AdapterException
modelObj - The bound object to search for.MapComponentExceptionAdapterExceptionjava.util.List findComponentsBoundTo(IModelObject modelObj) throws MapComponentException, AdapterException
modelObj - The bound object to search for.MapComponentExceptionAdapterExceptionIMapComponentOwner findSubComponentOwner(java.lang.String name) throws MapComponentException
name - The name of the sub-component owner.MapComponentExceptionIMapComponent findComponentOfType(java.lang.String name, java.lang.String type) throws MappingException
name - The name of the component to find.type - The type of the component to find, e.g. FilterComponent.COMPONENT_TYPE_NAME.MappingExceptionjava.util.List findAllComponents(java.lang.String name)
throws MapComponentException
name - MapComponentExceptionMapConnector findConnector(java.lang.String name) throws MapComponentException
name - MapComponentExceptionjava.util.List getUpstreamLeafAttributes(IMapComponent component) throws MappingException, AdapterException
component - The target component.MappingExceptionAdapterExceptionjava.util.List getUpstreamLeafAttributes(MapConnectorPoint point) throws MappingException, AdapterException
point - The target connector point.MappingExceptionAdapterExceptionjava.util.List getUpstreamLeafConnectorPoints(MapConnectorPoint point) throws MappingException, AdapterException
point - The target connector point.MappingExceptionAdapterExceptionjava.util.List getTargets()
throws MappingException
MapComponentExceptionMappingExceptionjava.util.List getTopLevelTargets()
throws MapComponentException,
MappingException
MapComponentExceptionMappingExceptionjava.util.List getSources()
throws MapComponentException
MapComponentExceptionjava.util.List getTopLevelSources()
throws MapComponentException
MapComponentExceptionboolean containsComponent(IMapComponent comp) throws MapComponentException
comp - The subcomponent for which to check.MapComponentExceptionboolean isComponent()
mappingComponent instance.IMapRootContainer getMapRootContainer() throws MapComponentException
MapComponentExceptionjava.util.List getLeafLevelComponents()
throws MapComponentException
MapComponentExceptionjava.util.List getLeafLevelTargets()
throws MappingException
MapComponentExceptionMappingExceptionjava.util.List getLeafLevelEndpoints()
throws MappingException
MapComponentExceptionMappingExceptionjava.util.List getUpstreamLeafSources(IMapComponent comp) throws MapComponentException
comp - The component for which to get the upstream leaf components.MapComponentExceptionboolean isSignatureOwner()
boolean isExpandableComponent()