Class BindingItemWithMetaData

    • Constructor Detail

      • BindingItemWithMetaData

        public BindingItemWithMetaData​(BindingItem bindingItem,
                                       java.lang.String aggregationFunction,
                                       java.lang.String alias)
      • BindingItemWithMetaData

        public BindingItemWithMetaData​(BindingItem bindingItem,
                                       java.lang.String aggregationFunction,
                                       java.lang.String alias,
                                       java.util.Map<java.lang.String,​java.lang.String> userAttributes)
    • Method Detail

      • isOrderByDescending

        public boolean isOrderByDescending()
      • setOrderByDescending

        public void setOrderByDescending​(boolean isOrderByDescending)
      • setAlias

        public void setAlias​(java.lang.String alias)
      • getAggregationFunction

        public java.lang.String getAggregationFunction()
      • setWrsAAttributes

        public void setWrsAAttributes​(java.util.Collection<BindingItemAttribute> wrsAAttributes)
        Parameters:
        wrsAAttributes - Collection of new binding item's attributes.
      • hasWrsAAttributes

        public boolean hasWrsAAttributes()
        Specified by:
        hasWrsAAttributes in interface WrsBindingItem
        Returns:
        Has binding item attributes?
      • addWrsAAttribute

        public void addWrsAAttribute​(BindingItemAttribute wrsAAttribute)
        Adds an wrs:A attributes
      • getColumnNumber

        public int getColumnNumber()
        Specified by:
        getColumnNumber in interface WrsBindingItem
        Returns:
        The binding item's column number in SQL select statement.
      • setColumnNumber

        public void setColumnNumber​(int columnNumber)
        Parameters:
        columnNumber - The new binding item's column number in SQL select statement.
      • getQColumnExpression

        public java.lang.String getQColumnExpression​(java.lang.String aliasWithTableAlias)
        Description copied from class: SimpleBindingItem
        Helper to merge a table alias into a column expression, which can contain SQL functions etc Method calcQColumnExpression
        Overrides:
        getQColumnExpression in class SimpleBindingItem
      • getQColumnExpressionWithAggr

        public java.lang.String getQColumnExpressionWithAggr​(java.lang.String aliasWithTableAlias)
      • getQColumnExpressionWithAggr

        public java.lang.String getQColumnExpressionWithAggr​(java.lang.String aliasWithTableAlias,
                                                             java.lang.String overwriteAggr)
      • getAttributes

        public java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
        Additional attributes at (plain attributes, not wrs:A) are returned here Note that they can overwrite default attributes of the BindingItem, which were derived from the BindingSet and the database
        Overrides:
        getAttributes in class BindingItem
      • addAttribute

        public void addAttribute​(java.lang.String name,
                                 java.lang.String value)
        Adds regular @ attribute