Package com.kenshoo.jooq
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 voidadd(T id)voidaddAll(java.util.Collection<T> ids)voidclose()<R extends org.jooq.Record,S extends org.jooq.SelectConnectByStep<R>,FT>
SimposeOnQuery(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)booleanisEmpty()java.util.Iterator<T>iterator()
-
-
-
Method Detail
-
add
void add(T id)
-
addAll
void addAll(java.util.Collection<T> ids)
-
isEmpty
boolean isEmpty()
-
close
void close()
- Specified by:
closein interfacejava.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)
-
-