public class LookupComponent extends JoinComponent
| Modifier and Type | Class and Description |
|---|---|
static class |
LookupComponent.LookupType
ATTENTIION:
1, To support OWB lookup migration, the concept Multiple Match Rows and No Match Rows introduced
2, To back support ODI 12.1.2, the LookupType property was reused as new meaning
|
static class |
LookupComponent.NO_MATCH_ROWS
The NO_MATCH_ROWS enumeration specifies the behavior when no matching rows are found in the lookup table.
|
DefaultDelegate.DefaultAttributeDelegate, DefaultDelegate.DefaultConnectorPointDelegateoracle.odi.domain.mapping.MapComponentDelegate.AttributeDelegate, oracle.odi.domain.mapping.MapComponentDelegate.MapConnectorPointDelegateIMapComponent.ComponentCategory| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_TYPE_NAME
The component type name.
|
static java.lang.String |
DRIVER_ROLE |
static java.lang.String |
JOIN_TYPE_ALL_ROWS
Join type property value for all rows.
|
static java.lang.String |
JOIN_TYPE_ERROR_WHEN_MULTIPLE_ROW
Join type property value for all rows.
|
static java.lang.String |
JOIN_TYPE_EXPRESSION_IN_SELECT
Join type property value for expression in select.
|
static java.lang.String |
LOOKUP_ROLE |
static java.lang.String |
PROPKEY_LOOKUP_INPUT_ROLE |
static java.lang.String |
PROPKEY_LOOKUP_IS_JOIN |
static java.lang.String |
PROPKEY_LOOKUP_TABLE |
JOIN_TYPE_CROSS, JOIN_TYPE_FULL_OUTER, JOIN_TYPE_INNER, JOIN_TYPE_LEFT_OUTER, JOIN_TYPE_NATURAL, JOIN_TYPE_RIGHT_OUTER, PROPKEY_ACTIVE_INDICATOR, PROPKEY_DEFAULT_JOIN, PROPKEY_DERIVED_FROM, PROPKEY_DERIVED_JOINS, PROPKEY_GENERATE_ANSI, PROPKEY_JOIN_CONDITION, PROPKEY_JOIN_INPUT_ROLE, PROPKEY_JOIN_ORDER, PROPKEY_JOIN_SOURCE_ORDER, PROPKEY_JOIN_TYPE, PROPKEY_TECHNICAL_DESCRIPTIONVARIABLE_COMPONENT_TYPE_NAME| Constructor and Description |
|---|
LookupComponent(oracle.odi.domain.mapping.MapComponentOwner owner,
java.lang.String name)
Construct a new persistent lookup component.
|
| Modifier and Type | Method and Description |
|---|---|
static LookupComponent |
createLookup(IMapComponent driverSource,
IMapComponent lookupSource,
java.lang.String joinConditionText)
Creates a new lookup component with the specified driver and lookup sources,
using the specified join condition.
|
static LookupComponent |
createLookup(java.lang.String lookupName,
IMapComponent driverSource,
IMapComponent lookupSource,
java.lang.String joinConditionText)
Creates a new lookup component with the specified driver and lookup source components,
using the specified join condition.
|
IMapComponent |
getComponentForRole(java.lang.String inputRole)
Gets the source component for the specified role, "DRIVER" or "LOOKUP".
|
MapConnectorPoint |
getDriverConnectorPoint()
Gets the input connector point associated with the driver source.
|
IMapComponent |
getDriverSource()
Gets the driver (left side of join) source map component.
|
MapExpression.ExecuteOnLocation |
getExecuteOnHint()
Return an execute location hint if the component supports it, otherwise "NO_HINT".
|
java.util.Map |
getInScopeAttributeXMap(MapConnectorPoint inputPoint) |
java.util.List |
getInScopeLookupAttributes()
Gets a list of map attributes which are in-scope through the lookup connector point
|
oracle.odi.mapping.generation.JoinTable.JoinType |
getJoinTypeAsEnum()
Gets the enum value of the join condition type property.
|
java.lang.String |
getLookupAttributeDefaultValue(java.lang.String attrName)
Get the default value of a lookup attribute
|
java.lang.String |
getLookupAttributeOrderBy(java.lang.String attrName)
Gets the "order by" modifier (ASC/DESC) for the specified attribute
|
java.util.Map |
getLookupAttributesDefaultValue()
Get all lookup attributes default values
|
MapConnectorPoint |
getLookupConnectorPoint()
Gets the input connector point associated with the lookup source.
|
IMapComponent |
getLookupSource()
Gets the lookup (right side of join) source component.
|
LookupComponent.NO_MATCH_ROWS |
getNoMatchRows()
Gets the lookup option to be applied if no rows are matched in the lookup table.
|
int |
getNthRowNumber()
Gets the row number to return if multiple matching rows are found in the lookup table.
|
MapAttribute[] |
getOrderedLookupAttributes()
Gets an array of all lookup attributes, ordering specified by the attribute order by property.
|
void |
initializeConnectorPoint(MapConnectorPoint point)
Initializes the connector points.
|
boolean |
isDerived()
Checks if this join component is a derived join.
|
boolean |
isGenerateANSISyntax()
Determines whether ANSI syntax will be generated.
|
void |
setDriverComponent(IMapComponent driverComp)
Sets the driver component for this component and connects them.
|
void |
setDriverComponent(OutputConnectorPoint driverCompOCP)
Sets the driver component connection for this component.
|
void |
setDriverTable(IDataStore driverTable)
Sets the driver component connection for this component, using a source data store (table or file).
|
void |
setDriverTable(ReusableMapping driverRM)
Sets the driver component connection for this component, using a source reusable mapping.
|
void |
setExecuteOnHint(MapExpression.ExecuteOnLocation hint)
Set the execute-on hint for this component, if applicable, otherwise throw exception.
|
void |
setJoinType(oracle.odi.mapping.generation.JoinTable.JoinType type)
Sets the join type as enum.
|
void |
setJoinType(java.lang.String type)
Sets the join condition type as a string.
|
void |
setLookupAttributeDefaultValue(java.util.Map attributeDefaultValueMap)
Set the attributes' default values
|
void |
setLookupAttributeDefaultValue(java.lang.String attrName,
java.lang.String defaultValue)
Set a certain attribute's default value
|
void |
setLookupAttributeOrderBy(java.util.Map attributeOrderByMap)
Set attributes' order fashion according to a Map containing the order info
|
void |
setLookupAttributeOrderBy(java.lang.String attrName,
java.lang.String pOrderBy)
Sets the order by modifier (ASC/DESC) for the given attribute.
|
void |
setLookupComponent(IMapComponent lookupComp)
Sets the lookup component connection for this component and connects them.
|
void |
setLookupComponent(OutputConnectorPoint lookupCompOCP)
Sets the lookup component connection for this component.
|
void |
setLookupTable(IDataStore lookupTable)
Sets the lookup component connection for this component, using a source data store (table or file).
|
void |
setLookupTable(ReusableMapping lookupRM)
Sets the lookup component connection for this component, using a source reusable mapping.
|
void |
setLookupType(LookupComponent.LookupType type)
Sets the lookup type, either left outer join or sub select
|
void |
setLookupType(java.lang.String type)
Sets the lookup type, either left outer join or sub select
|
void |
setNoMatchRows(LookupComponent.NO_MATCH_ROWS noMatchRows)
Specifies the lookup behavior if no rows are matched in the lookup table.
|
void |
setNthRowNumber(int nthRowNumber)
Sets the row number to return if multiple matching rows are found in the lookup table.
|
addJoinSource, connectReferencedSourcesToJoin, createInputConnectorPoint, findConnectorPointWithRole, getDerivedFromText, getDerivedJoins, getDerivedJoinsText, getJoinCondition, getJoinConditionText, getJoinOrder, getJoinSourceOrderText, getJoinType, getLeftSourceName, getOrderedJoinSources, getReferencedSources, getRightSourceName, getSourceNameForRole, getTechnicalDescription, handleMapChangeEvent, hasUserDefinedJoinOrder, isCrossJoin, isDefaultJoin, isFullOuterJoin, isInnerJoin, isJoinInsideDataset, isLeftOrRightOuterJoin, isLeftOuterJoin, isNaturalJoin, isRightOuterJoin, isValidForTechnology, joinSources, joinSources, setDerivedFromText, setDerivedJoinsText, setGenerateANSISyntax, setJoinConditionText, setJoinOrder, setJoinSourceOrderText, setPropertyValuecustomInvalidateExpressions, customSyncComponent, getBlockExpressionReferencedAttributes, getBlockExpressionReferencedAttributesWithPath, getExecuteOnHintString, getIntegrationType, getNextAvailableInput, getNextAvailableInput, getNextAvailableOutput, isAddInputConnectorPointAllowed, isAddOutputConnectorPointAllowed, isPassive, setExecuteOnHintByStringafterAddComponent, afterConnect, afterRemoveComponent, connectFrom, createInputConnectorPoint, createOutputConnectorPoint, createOutputConnectorPoint, customValidateProposedChildConnection, customValidateProposedChildScoping, equals, getBoundObjectFullName, getBoundObjectName, getBoundShortcutFullName, getComponentContext, getComponentCustomLocation, getComponentType, getSQLAccessName, getSQLAliasName, getTypeName, handleChildMapChangeEvent, hashCode, initPhysicalNode, isAttributeExecuteOnLocationHidden, isBoundObjectDeleted, isCardinalitySource, isCompositeComponentType, isExpressionHidden, isTargetLoadingSupported, setComponentType, supportComponentOfType, toStringaddComponent, addProperty, bindTo, bindTo, connectTo, connectTo, connectTo, connectTo, containsComponent, createComponent, createComponent, createComponent, createOutputConnectorPoint, createProperty, disableMapChangeEventHandling, dump, dump, enableMapChangeEventHandling, findAllComponents, findComponent, findComponentBoundTo, findComponentOfType, findComponentsBoundTo, findConnector, findConnectorPoint, findInputAttribute, findOutputAttribute, findSubComponentOwner, generateUniqueComponentName, generateUniqueComponentName, generateUniqueConnectorName, generateUniqueName, generateUniqueName, getAdapter, getAlias, getAllComponents, getAllComponentsOfType, getAllExpressions, getAllProperties, getAllSignatureOwnerHolders, getAllSubComponentOwners, getAttributeExpressions, getAttributes, getBigNumericId, getBooleanPropertyValue, getBoundObject, getBoundShortcut, getBoundTechnology, getBusinessName, getCachedIssues, getComponentAttributeMap, getComponentCategory, getComponentCount, getComponentLocation, getComponentLocation, getComponentOwner, getComponents, getComponentTypeName, getConcreteObject, getConnectorPointCount, getConnectorPointCount, getConnectorPoints, getConnectorPoints, getConnectorPointToLeaf, getConnectorTo, getDelegate, getDescription, getDisplayableObjectName, getDisplayableProperties, getDisplayableTypeName, getDomainInterfaceType, getDownstreamConnectedLeafComponents, getDownstreamConnectedPoints, getExpressionPropertyValue, getExpressionReferences, getFlowConstraints, getFullName, getGlobalId, getGUID, getInputConnectorPoint, getInputConnectorPoint, getInputConnectorPointCount, getInputConnectorPoints, getInputPoint, getInScopeAttributes, getInternalId, getIntPropertyValue, getLeafLevelComponents, getLeafLevelEndpoints, getLeafLevelTargets, getMapRootContainer, getName, getNumericId, getOutputAttributeExpressions, getOutputAttributes, getOutputConnectorPoint, getOutputConnectorPoint, getOutputConnectorPointCount, getOutputConnectorPoints, getOutputPoint, getOwner, getOwningComponent, getParent, getPersistentClassName, getPrefix, getProjectedAttributes, getProperties, getProperty, getPropertyDefinitionOwner, getPropertyValue, getPropertyValueReference, getProposedConnectionIssues, getQualifiedName, getRootComponentOwner, getRootContainer, getSecurityContainer, getSources, getStringPropertyValue, getStrongTypeClassName, getSyncState, getTargetLoadOrder, getTargetLoadOrderText, getTargets, getTopLevelComponentsOfType, getTopLevelSignatureOwnerHolders, getTopLevelSources, getTopLevelTargets, getTopmostComponent, getUpstreamAttributeXMap, getUpstreamConnectedLeafComponents, getUpstreamConnectedLeafPoints, getUpstreamConnectedPoints, getUpstreamInScopeLeafAttributes, getUpstreamInScopeLeafComponentsFor, getUpstreamInScopeLeafPoints, getUpstreamLeafAttributes, getUpstreamLeafAttributes, getUpstreamLeafConnectorPoints, getUpstreamLeafConnectorPoints, getUpstreamLeafSources, getUpstreamSources, hasCustomizedPersistenceMethodFor, invokeCustomizedPersistenceMethodFor, invokeMethod, is11gMapping, isBound, isComponent, isComponentLevelConnectAllowed, isCompositeComponent, isCreatePersistentComponents, isDecorator, isEndpoint, isExpandableComponent, isHidden, isInScope, isInScope, isMapChangeEventHandlingEnabled, isMultiInputSelector, isOfType, isProjector, isPropertyDefined, isProposedConnectionValid, isSelector, isSignatureOwner, isSignatureOwnerHolder, isSource, isSubComponent, isTarget, isUniqueComponentName, isUniqueComponentName, referencesObject, removeAllConnections, removeAllConnections, removeAllInputConnections, removeComponent, removeComponent, removeInputConnectorPoint, removeInputConnectorPoint, removeInputConnectorPoint, removeOutputConnectorPoint, removeOutputConnectorPoint, removeProperty, reorderInputConnectorPoint, reorderOutputConnectorPoint, setAlias, setAttributeExpressionText, setAttributeExpressionText, setBooleanPropertyValue, setBusinessName, setDescription, setIntPropertyValue, setIsHidden, setName, syncComponent, validate, validate, validate, validatePropertiespublic static final java.lang.String COMPONENT_TYPE_NAME
public static final java.lang.String PROPKEY_LOOKUP_TABLE
public static final java.lang.String PROPKEY_LOOKUP_INPUT_ROLE
public static final java.lang.String PROPKEY_LOOKUP_IS_JOIN
public static final java.lang.String DRIVER_ROLE
public static final java.lang.String LOOKUP_ROLE
public static final java.lang.String JOIN_TYPE_ALL_ROWS
public static final java.lang.String JOIN_TYPE_ERROR_WHEN_MULTIPLE_ROW
public static final java.lang.String JOIN_TYPE_EXPRESSION_IN_SELECT
public LookupComponent(oracle.odi.domain.mapping.MapComponentOwner owner,
java.lang.String name)
throws MappingException,
AdapterException
owner - The component owner that will own the new component.name - The name for the new component.PropertyExceptionoracle.odi.domain.mapping.exception.MapComponentExceptionAdapterExceptionMappingExceptionpublic java.util.Map getInScopeAttributeXMap(MapConnectorPoint inputPoint) throws MappingException, AdapterException
getInScopeAttributeXMap in interface IMapComponentOwnergetInScopeAttributeXMap in class oracle.odi.domain.mapping.MapComponentDelegateinputPoint - The connector point where the upstream attribute search will begin.oracle.odi.domain.mapping.exception.MapComponentExceptionPropertyExceptionAdapterExceptionMappingExceptionpublic void initializeConnectorPoint(MapConnectorPoint point) throws oracle.odi.domain.mapping.exception.MapComponentException, PropertyException
DefaultDelegateinitializeConnectorPoint in class JoinComponentpoint - the group to be initializedoracle.odi.domain.mapping.exception.MapComponentExceptionPropertyExceptionpublic boolean isDerived()
JoinComponentisDerived in class JoinComponentJoinComponent.getDerivedFrom(Dataset)public java.util.List getInScopeLookupAttributes()
throws AdapterException,
MappingException
MappingExceptionAdapterExceptionpublic IMapComponent getLookupSource() throws MappingException, AdapterException
MappingExceptionAdapterExceptionpublic IMapComponent getDriverSource() throws MappingException, AdapterException
MappingExceptionAdapterExceptionpublic boolean isGenerateANSISyntax()
throws PropertyException
isGenerateANSISyntax in class JoinComponentPropertyExceptionpublic IMapComponent getComponentForRole(java.lang.String inputRole) throws PropertyException, oracle.odi.domain.mapping.exception.MapComponentException, MappingException, AdapterException
getComponentForRole in class JoinComponentinputRole - input role property, values are DRIVER, LOOKUP, LEFT, or RIGHTPropertyExceptionoracle.odi.domain.mapping.exception.MapComponentExceptionMappingExceptionAdapterExceptionpublic MapConnectorPoint getLookupConnectorPoint() throws PropertyException
PropertyExceptionpublic MapConnectorPoint getDriverConnectorPoint() throws PropertyException
PropertyExceptionpublic void setLookupTable(IDataStore lookupTable) throws MappingException, AdapterException
lookupTable - source model object to be used as the lookup.MappingExceptionAdapterExceptionsetLookupTablepublic void setLookupTable(ReusableMapping lookupRM) throws MappingException, AdapterException
lookupRM - source model object to be used as the lookup.MappingExceptionAdapterExceptionsetLookupTablepublic void setDriverTable(IDataStore driverTable) throws MappingException, AdapterException
driverTable - source model object (datastore or file) to be connected (through a DataStore or File source component) to
this component as the driver.MappingExceptionAdapterExceptionsetLookupTablepublic void setDriverTable(ReusableMapping driverRM) throws MappingException, AdapterException
driverRM - source reusable mapping to be connected to this component as the driver.MappingExceptionAdapterExceptionsetLookupTablepublic void setDriverComponent(OutputConnectorPoint driverCompOCP) throws MappingException, AdapterException
driverCompOCP - output connector point of the driver component.MappingExceptionAdapterExceptionsetLookupTablepublic void setLookupComponent(OutputConnectorPoint lookupCompOCP) throws MappingException, AdapterException
lookupCompOCP - output connector point of the lookup component.MappingExceptionAdapterExceptionsetLookupTablepublic void setDriverComponent(IMapComponent driverComp) throws MappingException, AdapterException
driverCompOCP - output connector point of the driver component.MappingExceptionAdapterExceptionsetLookupTablepublic void setLookupComponent(IMapComponent lookupComp) throws MappingException, AdapterException
lookupCompOCP - output connector point of the lookup component.MappingExceptionAdapterExceptionsetLookupTablepublic void setLookupType(LookupComponent.LookupType type) throws PropertyException
type - LookupType.LEFT_OUTER, LookupType.EXPRESSION_IN_SELECTPropertyExceptionpublic void setLookupType(java.lang.String type)
throws PropertyException
type - LEFT_OUTER, EXPRESSION_IN_SELECTPropertyExceptionpublic void setJoinType(oracle.odi.mapping.generation.JoinTable.JoinType type)
throws PropertyException
JoinComponentsetJoinType in class JoinComponenttype - the enum value for the join typePropertyExceptionpublic void setJoinType(java.lang.String type)
throws PropertyException
JoinComponentsetJoinType in class JoinComponenttype - the join condition type.PropertyExceptionpublic static LookupComponent createLookup(java.lang.String lookupName, IMapComponent driverSource, IMapComponent lookupSource, java.lang.String joinConditionText) throws MappingException, AdapterException
lookupName - The name of the new lookup component.driverSource - The first source to connect to the lookup input.lookupSource - The second source to connect to the lookup input.oracle.odi.domain.mapping.exception.MapComponentExceptionPropertyExceptionAdapterExceptionMappingExceptionpublic static LookupComponent createLookup(IMapComponent driverSource, IMapComponent lookupSource, java.lang.String joinConditionText) throws MappingException, AdapterException
driverSource - The first source to connect to the lookup input.lookupSource - The second source to connect to the lookup input.oracle.odi.domain.mapping.exception.MapComponentExceptionPropertyExceptionAdapterExceptionMappingExceptionpublic MapExpression.ExecuteOnLocation getExecuteOnHint() throws PropertyException
IMapComponentgetExecuteOnHint in class JoinComponentPropertyExceptionpublic void setExecuteOnHint(MapExpression.ExecuteOnLocation hint) throws PropertyException
IMapComponentsetExecuteOnHint in class JoinComponentPropertyExceptionpublic java.lang.String getLookupAttributeDefaultValue(java.lang.String attrName)
throws MappingException
attrName - Attribute nameMappingExceptionpublic java.util.Map getLookupAttributesDefaultValue()
throws MappingException,
AdapterException
MappingExceptionAdapterExceptionpublic void setLookupAttributeDefaultValue(java.util.Map attributeDefaultValueMap)
throws MappingException
attributeDefaultValueMap - Pairs of attribute name and default valuesMappingExceptionpublic void setLookupAttributeOrderBy(java.util.Map attributeOrderByMap)
throws MappingException
attributeOrderByMap - MappingExceptionpublic void setLookupAttributeDefaultValue(java.lang.String attrName,
java.lang.String defaultValue)
throws MappingException
attrName - Attribute namedefaultValue - The default valueMappingExceptionpublic java.lang.String getLookupAttributeOrderBy(java.lang.String attrName)
throws MappingException,
AdapterException
attrName - unqualified name of attribute to get the modifier for.MappingExceptionAdapterExceptionpublic void setLookupAttributeOrderBy(java.lang.String attrName,
java.lang.String pOrderBy)
throws MappingException,
AdapterException
attrName - unqualified name of the attribute, e.g. MapAttribute.getName()orderBy - order by modifier, either ASC or DESCMappingExceptionAdapterExceptionpublic MapAttribute[] getOrderedLookupAttributes() throws MappingException, AdapterException
MappingExceptionAdapterExceptionpublic LookupComponent.NO_MATCH_ROWS getNoMatchRows() throws PropertyException
PropertyExceptionpublic void setNoMatchRows(LookupComponent.NO_MATCH_ROWS noMatchRows) throws PropertyException
noMatchRows - option for lookup behavior if no rows are matched in the lookup table.PropertyExceptionpublic int getNthRowNumber()
throws PropertyException
PropertyExceptionpublic void setNthRowNumber(int nthRowNumber)
throws PropertyException
nthRowNumber - row number to return if multiple matching rows are foundPropertyExceptionpublic oracle.odi.mapping.generation.JoinTable.JoinType getJoinTypeAsEnum()
throws PropertyException
getJoinTypeAsEnum in class JoinComponentPropertyException