public class UnpivotComponent extends DefaultDelegate
 SALES
  ID YEAR(NUMERIC) Q1_SALES(NUMERIC) Q2_SALES(NUMERIC) Q3_SALES(NUMERIC) Q4_SALES(NUMERIC)
  11 2010          1000              1000              1000              1000
  12 2011          2000              2000              2000              2000 
  12 2012          2000              3000              4000              5000 
  
 UNPIVOT_COMPONENT
  Key Locator: QUARTER
  Value Locator: SALES
  
  Attributes:
    ID 
    YEAR(NUMERIC) 
    QUARTER(VARCHAR2) 
    SALES(NUMERIC)
    
  Unpivot Transforms
    QUARTER  SALES
    'Q1'     SALES.Q1_SALES
    'Q2'     SALES.Q2_SALES
    'Q3'     SALES.Q3_SALES
    'Q4'     SALES.Q4_SALES
  The unpivot transform rules will be organized as properties pairs and persisted as following into key/value locator's properties
    UNPIVOT_TRANSFORM_K_0 : 'Q1'            QUARTER.PROPERTIES
    UNPIVOT_TRANSFORM_V_0 : SALES.Q1_SALES  SALES.PROPERTIES
    
    UNPIVOT_TRANSFORM_K_1 : 'Q2'            QUARTER.PROPERTIES
    UNPIVOT_TRANSFORM_V_1 : SALES.Q2_SALES  SALES.PROPERTIES
    
    UNPIVOT_TRANSFORM_K_2 : 'Q3'            QUARTER.PROPERTIES
    UNPIVOT_TRANSFORM_V_2 : SALES.Q3_SALES  SALES.PROPERTIES
    
    UNPIVOT_TRANSFORM_K_3 : 'Q4'            QUARTER.PROPERTIES
    UNPIVOT_TRANSFORM_V_3 : SALES.Q4_SALES  SALES.PROPERTIES  
 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 for this component. 
 | 
static java.lang.String | 
UNPIVOT_ROW_LOCATOR_PROPKEY  | 
static java.lang.String | 
UNPIVOT_TRANSFORM_K_PROPKEY_PREFIX  | 
static java.lang.String | 
UNPIVOT_TRANSFORM_V_PROPKEY_PREFIX  | 
VARIABLE_COMPONENT_TYPE_NAME| Constructor and Description | 
|---|
UnpivotComponent(oracle.odi.domain.mapping.MapComponent component)
For internal use only. 
 | 
UnpivotComponent(oracle.odi.domain.mapping.MapComponentOwner owner,
                java.lang.String name)
Construct a new persistent distinct component. 
 | 
UnpivotComponent(MapComponentType componentType)
For internal use only. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
MapAttribute | 
addAttribute(java.lang.String name,
            java.lang.String pExpressionText,
            IDataType pDataType,
            java.lang.Integer pSize,
            java.lang.Integer pScale)  | 
void | 
addTransform(java.lang.String keyExpr,
            java.lang.String valExpr)  | 
Property | 
addTransformKey(java.lang.String keyExpr)  | 
void | 
addTransforms(java.lang.String keyExpr,
             java.util.Map locatorExprs)  | 
MapExpression.ExecuteOnLocation | 
getCompositeExecuteOnHint()  | 
MapAttribute | 
getRowLocator()  | 
java.util.List | 
getRowLocatorCandidates()  | 
java.util.Map | 
getTransformExpressions(Property keyProp)  | 
java.util.Collection | 
getTransformKeys()  | 
MapAttribute | 
getValueLocator()  | 
java.util.List | 
getValueLocators()  | 
boolean | 
isIncludeNulls()  | 
boolean | 
isValidForTechnology(ITechnology techno,
                    java.util.List issues)
Check whether component is valid for a technology. 
 | 
void | 
removeTransform(Property transformKey)  | 
void | 
setCompositeExecuteOnHint(MapExpression.ExecuteOnLocation hint)
Set all execute on hints for all expression attributes to the specified
 value. 
 | 
void | 
setIncludeNulls(boolean includeNulls)  | 
void | 
setRowLocator(MapAttribute rowLocator)  | 
void | 
setTransformExpressions(Property keyProp,
                       java.util.Map vLocatorExprs)  | 
customInvalidateExpressions, customSyncComponent, getBlockExpressionReferencedAttributes, getBlockExpressionReferencedAttributesWithPath, getExecuteOnHint, getExecuteOnHintString, getIntegrationType, getNextAvailableInput, getNextAvailableInput, getNextAvailableOutput, isAddInputConnectorPointAllowed, isAddOutputConnectorPointAllowed, isPassive, setExecuteOnHint, setExecuteOnHintByStringafterAddComponent, afterConnect, afterPropertyChange, afterRemoveComponent, beforePropertyChange, connectFrom, createInputConnectorPoint, createInputConnectorPoint, createOutputConnectorPoint, createOutputConnectorPoint, customValidateProposedChildConnection, customValidateProposedChildScoping, equals, getBoundObjectFullName, getBoundObjectName, getBoundShortcutFullName, getComponentContext, getComponentCustomLocation, getComponentType, getInScopeAttributeXMap, getSQLAccessName, getSQLAliasName, getTechnicalDescription, getTypeName, handleChildMapChangeEvent, handleMapChangeEvent, hashCode, initPhysicalNode, isAttributeExecuteOnLocationHidden, isBoundObjectDeleted, isCardinalitySource, isCompositeComponentType, isExpressionHidden, isTargetLoadingSupported, propertyValueGetterHook, setComponentType, supportComponentOfType, toString, validateReorderComponentaddComponent, 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, setPropertyValue, syncComponent, validate, validate, validate, validatePropertiespublic static final java.lang.String UNPIVOT_TRANSFORM_K_PROPKEY_PREFIX
public static final java.lang.String UNPIVOT_TRANSFORM_V_PROPKEY_PREFIX
public static final java.lang.String UNPIVOT_ROW_LOCATOR_PROPKEY
public static final java.lang.String COMPONENT_TYPE_NAME
public UnpivotComponent(oracle.odi.domain.mapping.MapComponent component)
                 throws MappingException
component - oracle.odi.domain.mapping.exception.MapComponentExceptionMappingExceptionpublic UnpivotComponent(MapComponentType componentType) throws oracle.odi.domain.mapping.exception.MapComponentException
component - oracle.odi.domain.mapping.exception.MapComponentExceptionpublic UnpivotComponent(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 MapAttribute addAttribute(java.lang.String name, java.lang.String pExpressionText, IDataType pDataType, java.lang.Integer pSize, java.lang.Integer pScale) throws MappingException, AdapterException
MappingExceptionAdapterExceptionpublic MapExpression.ExecuteOnLocation getCompositeExecuteOnHint() throws PropertyException, MappingException
PropertyExceptionMappingExceptionpublic void setCompositeExecuteOnHint(MapExpression.ExecuteOnLocation hint) throws PropertyException, MappingException
hint - PropertyExceptionMappingExceptionpublic java.util.List getRowLocatorCandidates()
                                       throws MappingException,
                                              AdapterException
MappingExceptionAdapterExceptionpublic MapAttribute getRowLocator() throws MappingException, AdapterException
MappingExceptionAdapterExceptionpublic void setRowLocator(MapAttribute rowLocator) throws MappingException, AdapterException
MappingExceptionAdapterExceptionpublic boolean isIncludeNulls()
                       throws PropertyException
PropertyExceptionpublic void setIncludeNulls(boolean includeNulls)
                     throws PropertyException
PropertyExceptionpublic java.util.List getValueLocators()
                                throws MappingException,
                                       AdapterException
MappingExceptionAdapterExceptionpublic MapAttribute getValueLocator() throws MappingException, AdapterException
MappingExceptionAdapterExceptionpublic java.util.Collection getTransformKeys()
                                      throws MappingException,
                                             AdapterException
MappingExceptionAdapterExceptionpublic void addTransform(java.lang.String keyExpr,
                         java.lang.String valExpr)
                  throws MappingException,
                         AdapterException
MappingExceptionAdapterExceptionpublic void addTransforms(java.lang.String keyExpr,
                          java.util.Map locatorExprs)
                   throws MappingException,
                          AdapterException
MappingExceptionAdapterExceptionpublic Property addTransformKey(java.lang.String keyExpr) throws MappingException, AdapterException
MappingExceptionAdapterExceptionpublic java.util.Map getTransformExpressions(Property keyProp) throws MappingException, AdapterException
MappingExceptionAdapterExceptionpublic void setTransformExpressions(Property keyProp, java.util.Map vLocatorExprs) throws MappingException, AdapterException
MappingExceptionAdapterExceptionpublic void removeTransform(Property transformKey) throws MappingException, AdapterException
MappingExceptionAdapterExceptionpublic boolean isValidForTechnology(ITechnology techno, java.util.List issues) throws MappingException
IMapComponentisValidForTechnology in class DefaultDelegatetechno - The technology to validate againstMappingException