public class AggregateComponent extends DefaultDelegate
Modifier and Type | Class and Description |
---|---|
static class |
AggregateComponent.IsGroupByColumn
The IsGroupByColumn enumeration specifies whether a column is included in the GROUP BY clause.
|
DefaultDelegate.DefaultAttributeDelegate, DefaultDelegate.DefaultConnectorPointDelegate
oracle.odi.domain.mapping.MapComponentDelegate.AttributeDelegate, oracle.odi.domain.mapping.MapComponentDelegate.MapConnectorPointDelegate
IMapComponent.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 |
PROPKEY_AUTOCOMPUTE_GROUPBY |
static java.lang.String |
PROPKEY_GROUPBY |
static java.lang.String |
PROPKEY_HAVING |
static java.lang.String |
PROPKEY_MANUAL_GROUPBY_CLAUSE |
VARIABLE_COMPONENT_TYPE_NAME
Constructor and Description |
---|
AggregateComponent(MapComponentOwner owner,
java.lang.String name)
Construct a new persistent set component.
|
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)
Adds a new attribute to this component
|
MapExpression.ExecuteOnLocation |
getExecuteOnHint()
Return an execute location hint if the component supports it, otherwise "NO_HINT".
|
java.lang.String |
getGroupByAuto(ITechnology pTechnology)
Gets the SQL GROUP BY string as a comma separated list of attributes, based on calculation of all
attributes not containing an aggregation function in the expression.
|
MapExpression |
getHaving()
Gets the map expression for the HAVING clause.
|
java.lang.String |
getHavingText()
Gets the HAVING clause expression text.
|
MapExpression |
getManualGroupBy()
Gets the manual group-by clause expression for this component.
|
void |
setAutoComputeGroupBy(java.lang.Boolean pAutoComputeGroupBy)
Sets the automatic group-by clause computation for this component.
|
void |
setExecuteOnHint(MapExpression.ExecuteOnLocation hint)
Set the execute-on hint for this component, if applicable, otherwise throw exception.
|
void |
setHavingText(java.lang.String pHaving)
Sets the expression for the SQL HAVING clause.
|
void |
setManualGroupBy(java.lang.String text)
Sets the expression text for the manual group-by expression.
|
void |
setPropertyValue(java.lang.String key,
java.lang.Object value)
Set a property value for the property with the specified key name.
|
customSyncComponent, fixExpressions, getBlockExpressionReferencedAttributes, getExecuteOnHintString, getIntegrationType, getNextAvailableInput, getNextAvailableInput, getNextAvailableOutput, invalidateExpressions, isAddInputConnectorPointAllowed, isAddOutputConnectorPointAllowed, isPassive, setExecuteOnHintByString
afterAddComponent, afterPropertyChange, afterRemoveComponent, allowInputAttribute, connectFrom, createInputConnectorPoint, createInputConnectorPoint, createOutputConnectorPoint, createOutputConnectorPoint, customValidateProposedChildConnection, customValidateProposedChildScoping, equals, getBoundObjectFullName, getBoundObjectName, getBoundShortcutFullName, getComponentContext, getComponentCustomLocation, getComponentType, getInScopeAttributeXMap, getSQLAccessName, getTechnicalDescription, getTypeName, handleChildMapChangeEvent, handleMapChangeEvent, hashCode, initPhysicalNode, isBoundObjectDeleted, isCompositeComponentType, notifyPropertyChange, setComponentType, supportComponentOfType, toString, validateReorderComponent
addComponent, addProperty, afterConnect, bindTo, bindTo, connectTo, connectTo, connectTo, connectTo, containsComponent, createComponent, createComponent, createComponent, createExpressionAttribute, createExpressionAttribute, createOutputConnectorPoint, createProperty, dump, dump, findAllComponents, findAllSplitPaths, findComponent, findComponentBoundTo, findComponentOfType, findConnector, findConnectorPoint, findInputAttribute, findOutputAttribute, findSubComponentOwner, generateUniqueComponentName, generateUniqueComponentName, generateUniqueConnectorName, generateUniqueName, generateUniqueName, getAdapter, getAlias, getAllComponents, getAllComponentsOfType, getAllExpressions, getAllPathsFrom, getAllPathsFrom, getAllProperties, getAllSubComponentOwners, getAttributeExpressions, getAttributes, getBooleanPropertyValue, getBoundObject, getBoundShortcut, getBoundTechnology, getBusinessName, getCachedIssues, getComponentAttributeMap, getComponentCategory, getComponentCount, getComponentLocation, getComponentOwner, getComponents, getComponentTypeName, getCompositeQualifier, getConnectorPointCount, getConnectorPointCount, getConnectorPoints, getConnectorPoints, getConnectorPointToLeaf, getConnectorTo, getDelegate, getDescription, getDisplayableObjectName, getDisplayableProperties, getDisplayableTypeName, getDomainInterfaceType, getDownstreamConnectedLeafComponents, getDownstreamConnectedPoints, getExpressionPropertyValue, getExpressionReferences, getExpressionValidationCode, getExtraCreatedObjects, getFlowConstraints, getFullName, getGlobalId, getGUID, getInputConnectorPoint, getInputConnectorPoint, getInputConnectorPointCount, getInputConnectorPoints, getInputPoint, getInScopeAttributes, getInScopeAttributeXMap, getInternalId, getIntPropertyValue, getLeafLevelComponents, getLeafLevelTargets, getMapRootContainer, getName, getNumericId, getOutputAttributeExpressions, getOutputAttributes, getOutputConnectorPoint, getOutputConnectorPoint, getOutputConnectorPointCount, getOutputConnectorPoints, getOutputPoint, getOwner, getOwningComponent, getPersistentClassName, getPersistentComponent, getPrefix, getProjectedAttributes, getProjectorOrMultiInputSource, getProperties, getProperty, getPropertyDefinitionOwner, getPropertyValue, getPropertyValueReference, getProposedConnectionIssues, getProposedConnectionIssues, getProposedScopingIssues, getQualifiedName, getRootComponentOwner, getRootContainer, getScopingInputPointForSource, getSecurityContainer, getSources, getStringPropertyValue, getStrongTypeClassName, getSyncState, getTargets, getTopLevelComponentsOfType, getTopLevelSources, getTopLevelTargets, getTopmostComponent, getUpstreamAttributeXMap, getUpstreamComponentOwner, getUpstreamConnectedLeafComponents, getUpstreamConnectedLeafPoints, getUpstreamConnectedPoints, getUpstreamInScopeLeafAttributes, getUpstreamInScopeLeafComponentsFor, getUpstreamInScopeLeafPoints, getUpstreamLeafAttributes, getUpstreamLeafAttributes, getUpstreamLeafConnectorPoints, getUpstreamLeafSources, getUpstreamSources, getUpstreamSplitPaths, hasCustomizedPersistenceMethodFor, invalidateDownstreamExpressions, invokeCustomizedPersistenceMethodFor, invokeMethod, isBound, isComponent, isComponentLevelConnectAllowed, isCompositeComponent, isDecorator, isEndpoint, isHidden, isInScope, isInScope, isMultiInputSelector, isOfType, isProjector, isPropertyDefined, isProposedConnectionValid, isProposedConnectionValid, isProposedScopingValid, isSelector, isSource, isSubComponent, isTarget, isUniqueComponentName, isUniqueComponentName, referencesObject, removeAllConnections, removeAllConnections, removeAllConnectionsAndReroute, removeAllConnectionsAndReroute, removeAllInputConnections, removeComponent, removeComponent, removeInputConnectorPoint, removeInputConnectorPoint, removeInputConnectorPoint, removeOutputConnectorPoint, removeOutputConnectorPoint, removeProperty, reorderInputConnectorPoint, reorderOutputConnectorPoint, rerouteConnections, setAlias, setAttributeExpressionText, setAttributeExpressionText, setBooleanPropertyValue, setBusinessName, setDescription, setIntPropertyValue, setIsHidden, setName, syncComponent, validate, validate, validateProperties
public static final java.lang.String COMPONENT_TYPE_NAME
public static final java.lang.String PROPKEY_HAVING
public static final java.lang.String PROPKEY_GROUPBY
public static final java.lang.String PROPKEY_AUTOCOMPUTE_GROUPBY
public static final java.lang.String PROPKEY_MANUAL_GROUPBY_CLAUSE
public AggregateComponent(MapComponent component) throws MappingException
component
- oracle.odi.domain.mapping.exception.MapComponentException
MappingException
public AggregateComponent(MapComponentType componentType) throws oracle.odi.domain.mapping.exception.MapComponentException
componentType
- oracle.odi.domain.mapping.exception.MapComponentException
public AggregateComponent(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.oracle.odi.domain.mapping.exception.MapComponentException
AdapterException
MappingException
public MapAttribute addAttribute(java.lang.String name, java.lang.String pExpressionText, IDataType pDataType, java.lang.Integer pSize, java.lang.Integer pScale) throws MappingException, AdapterException
name
- attribute namepExpressionText
- Expression textpDataType
- attribute data typepSize
- attribute numeric precision or character lengthpScale
- attribute numeric scaleMappingException
AdapterException
public void setHavingText(java.lang.String pHaving) throws MappingException, AdapterException
pHaving
- HAVING clause expression.MappingException
AdapterException
public MapExpression getHaving() throws PropertyException
PropertyException
public java.lang.String getHavingText() throws PropertyException
PropertyException
public java.lang.String getGroupByAuto(ITechnology pTechnology) throws MappingException, AdapterException
pTechnology
- The technology, used to determine whether aggregation functions are used in the expression.MappingException
AdapterException
public void setAutoComputeGroupBy(java.lang.Boolean pAutoComputeGroupBy) throws PropertyException
pAutoComputeGroupBy
- true to enable automatic group-by column computation, otherwise false.PropertyException
public MapExpression getManualGroupBy() throws PropertyException
PropertyException
public void setManualGroupBy(java.lang.String text) throws MappingException, AdapterException
text
- manual group-by expression text.MappingException
AdapterException
public MapExpression.ExecuteOnLocation getExecuteOnHint() throws PropertyException
IMapComponent
getExecuteOnHint
in class DefaultDelegate
PropertyException
public void setExecuteOnHint(MapExpression.ExecuteOnLocation hint) throws PropertyException
IMapComponent
setExecuteOnHint
in class DefaultDelegate
PropertyException
public void setPropertyValue(java.lang.String key, java.lang.Object value) throws PropertyException
IPropertyOwner
setPropertyValue
in interface IPropertyOwner
setPropertyValue
in class oracle.odi.domain.mapping.MapComponentDelegator
key
- The name of the property whose value will be set.value
- The object value of the property. The interpretation of the object
type will be determined by the type of the property.PropertyException