Interface IdsList<T>

  • All Superinterfaces:
    java.lang.AutoCloseable, java.lang.Iterable<T>
    All Known Implementing Classes:
    IntIdsList, LongIdsList, StringIdsList

    public interface IdsList<T>
    extends java.lang.AutoCloseable, java.lang.Iterable<T>
    An abstraction of a list of IDs designed to hide the decision whether IN clause or in-memory temporary table should be used. Because of that it is very important to use this class as a resource, in a try-with-resources statement.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void add​(T id)  
      void addAll​(java.util.Collection<T> ids)  
      void close()  
      <R extends org.jooq.Record,​S extends org.jooq.SelectConnectByStep<R>,​FT>
      S
      imposeOnQuery​(S query, org.jooq.Field<FT> idField)  
      <R extends org.jooq.Record,​S extends org.jooq.UpdateWhereStep<R>,​FT>
      org.jooq.UpdateConditionStep<R>
      imposeOnUpdate​(S update, org.jooq.Field<FT> idField)  
      boolean isEmpty()  
      java.util.Iterator<T> iterator()  
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • add

        void add​(T id)
      • addAll

        void addAll​(java.util.Collection<T> ids)
      • isEmpty

        boolean isEmpty()
      • iterator

        java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>
      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • imposeOnQuery

        <R extends org.jooq.Record,​S extends org.jooq.SelectConnectByStep<R>,​FT> S imposeOnQuery​(S query,
                                                                                                             org.jooq.Field<FT> idField)
      • imposeOnUpdate

        <R extends org.jooq.Record,​S extends org.jooq.UpdateWhereStep<R>,​FT> org.jooq.UpdateConditionStep<R> imposeOnUpdate​(S update,
                                                                                                                                        org.jooq.Field<FT> idField)