} // clone()

        public override void decorateIdentity(NList <Object> identifiers)
        {
            identifiers.add(_table);
            identifiers.add(_alias);
            identifiers.add(_subQuery);
            identifiers.add(_join);
            identifiers.add(_leftSide);
            identifiers.add(_rightSide);
            identifiers.add(_leftOn);
            identifiers.add(_rightOn);
            identifiers.add(_expression);
        } // decorateIdentity()
Пример #2
0
 // @Override
 public override GroupedQueryBuilder applyFilter(FilterItem filter)
 {
     if (_parentOrFilter == null)
     {
         _query.where (filter);
     }
     else
     {
         if (_parentOrFilter.getChildItemCount() == 1)
         {
             _query.getWhereClause().removeItem(_orFilters[0]);
             _query.getWhereClause().addItem(_parentOrFilter);
         }
     }
     _orFilters.add(filter);
     return(this);
 }
Пример #3
0
        } // constructor

        /**
         * Subclasses should implement this method and add all fields to the list
         * that are to be included in equals(...) and hashCode() evaluation
         *
         * @param identifiers
         */
        public override void decorateIdentity(NList <Object> identifiers)
        {
            identifiers.add(_expression);
            identifiers.add(_alias);
            identifiers.add(_column);
            identifiers.add(_function);
            identifiers.add(_functionApproximationAllowed);
            if (_fromItem == null && _column != null && _column.getTable() != null)
            {
                // add a FromItem representing the column's table - this makes equal
                // comparison work when the only difference is whether or not
                // FromItem is specified
                identifiers.add(new FromItem(_column.getTable()));
            }
            else
            {
                identifiers.add(_fromItem);
            }
            identifiers.add(_subQuerySelectItem);
        } // decorateIdentity()