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| 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() |
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) |
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) |
customInvalidateExpressions, customSyncComponent, getBlockExpressionReferencedAttributes, getBlockExpressionReferencedAttributesWithPath, getExecuteOnHintString, getIntegrationType, getNextAvailableInput, getNextAvailableInput, getNextAvailableOutput, isAddInputConnectorPointAllowed, isAddOutputConnectorPointAllowed, isPassive, setExecuteOnHintByStringpublic 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(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.MapComponentExceptionAdapterExceptionMappingExceptionpublic 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 scaleMappingExceptionAdapterExceptionpublic void setHavingText(java.lang.String pHaving)
throws MappingException,
AdapterException
pHaving - HAVING clause expression.MappingExceptionAdapterExceptionpublic MapExpression getHaving() throws PropertyException
PropertyExceptionpublic java.lang.String getHavingText()
throws PropertyException
PropertyExceptionpublic java.lang.String getGroupByAuto(ITechnology pTechnology) throws MappingException, AdapterException
pTechnology - The technology, used to determine whether aggregation functions are used in the expression.MappingExceptionAdapterExceptionpublic void setAutoComputeGroupBy(java.lang.Boolean pAutoComputeGroupBy)
throws PropertyException
pAutoComputeGroupBy - true to enable automatic group-by column computation, otherwise false.PropertyExceptionpublic MapExpression getManualGroupBy() throws PropertyException
PropertyExceptionpublic void setManualGroupBy(java.lang.String text)
throws MappingException,
AdapterException
text - manual group-by expression text.MappingExceptionAdapterExceptionpublic MapExpression.ExecuteOnLocation getExecuteOnHint() throws PropertyException
getExecuteOnHint in class DefaultDelegatePropertyExceptionpublic void setExecuteOnHint(MapExpression.ExecuteOnLocation hint) throws PropertyException
setExecuteOnHint in class DefaultDelegatePropertyExceptionpublic void setPropertyValue(java.lang.String key,
java.lang.Object value)
throws PropertyException
PropertyException