Class SimpleBindingItem

  • Direct Known Subclasses:
    BindingItem

    public class SimpleBindingItem
    extends java.lang.Object
    Base class for BindingItems read from a BindingSet definition or calc:Calc of a Wrs It becomes member of a (Wrs|Standard)BindingSet See also WrqBindingItem for the analogy used during actual statement representing the output
    • Field Detail

      • BCD_NO_TABLE_ALIAS

        public static final java.lang.String BCD_NO_TABLE_ALIAS
        See Also:
        Constant Field Values
      • wordPattern

        public static final java.util.regex.Pattern wordPattern
      • pureColumnNamePattern

        public static final java.util.regex.Pattern pureColumnNamePattern
      • columnExpression

        protected java.lang.String columnExpression
      • qColumnExpr

        protected java.lang.String qColumnExpr
    • Constructor Detail

      • SimpleBindingItem

        public SimpleBindingItem​(SimpleBindingItem src)
        Copy constructor.
      • SimpleBindingItem

        public SimpleBindingItem​(BindingSet pBindingSet,
                                 java.lang.String id,
                                 java.lang.String pColumnExpression,
                                 boolean columnQuoting)
        Constructor
        Parameters:
        pBindingSet -
        id -
        pColumnExpression - - true - if item is SQL expression
        columnQuoting -
    • Method Detail

      • toXML

        public void toXML​(javax.xml.stream.XMLStreamWriter writer,
                          boolean withColumnExpression)
                   throws javax.xml.stream.XMLStreamException
        Prints an XML representation of the BindingItem.
        Parameters:
        writer - The writer instance to print the data to.
        Throws:
        javax.xml.stream.XMLStreamException
      • getBindingSet

        public BindingSet getBindingSet()
        getBindingSet
        Returns:
      • setBindingSet

        public void setBindingSet​(BindingSet bindingSet)
        setBindingSet
      • getQColumnExpression

        public java.lang.String getQColumnExpression​(java.lang.String tableAlias)
        Helper to merge a table alias into a column expression, which can contain SQL functions etc Method calcQColumnExpression
      • getColumnExpression

        public java.lang.String getColumnExpression()
        gets column expression
      • setColumnExpression

        public void setColumnExpression​(java.lang.String columnExpressionPar)
        setColumnExpression
        Parameters:
        columnExpressionPar -
      • setId

        public void setId​(java.lang.String id)
        sets id of item
      • getId

        public java.lang.String getId()
        gets id of item
      • isColumnQuoting

        public boolean isColumnQuoting()