Class SelectImpl.Selects

  • All Implemented Interfaces:
    Iterable, Collection, List
    Enclosing class:
    SelectImpl

    protected static class SelectImpl.Selects
    extends AbstractList
    Helper class to track selected columns, with fast contains method. Acts as a list of select ids, with additional methods to manipulate the alias of each selected id.
    • Field Detail

      • _ids

        protected List _ids
      • _idents

        protected List _idents
      • _aliases

        protected Map _aliases
      • _selectAs

        protected Map _selectAs
    • Constructor Detail

      • Selects

        protected Selects()
    • Method Detail

      • addAll

        public void addAll​(SelectImpl.Selects sels)
        Add all aliases from another instance.
      • getAlias

        public Object getAlias​(Object id)
        Returns the alias of a given id.
      • setAlias

        public int setAlias​(Object id,
                            Object alias,
                            boolean ident)
        Set an alias for a given id.
      • setAlias

        public void setAlias​(int idx,
                             Object alias)
        Set an alias for a given index.
      • insertAlias

        public void insertAlias​(int idx,
                                Object id,
                                Object alias)
        Insert an alias before the given index, using negative indexes to count backwards.
      • indexOfAlias

        public int indexOfAlias​(Object alias)
        Return the index of the given alias.
      • getAliases

        public List getAliases​(boolean ident,
                               boolean inner)
        A list representation of the aliases, in select order, with AS aliases present.
      • setSelectAs

        public void setSelectAs​(Object id,
                                String as)
        Set that a given id's alias has an AS value.
      • clearPlaceholders

        public void clearPlaceholders()
        Clear all placeholders and select AS clauses.