com.kenshoo.jooq.IdsList Maven / Gradle / Ivy
package com.kenshoo.jooq;
import org.jooq.Field;
import org.jooq.Record;
import org.jooq.SelectConnectByStep;
import org.jooq.UpdateConditionStep;
import org.jooq.UpdateWhereStep;
import java.util.Collection;
import java.util.Iterator;
/**
* 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.
*/
public interface IdsList extends AutoCloseable, Iterable {
void add(T id);
void addAll(Collection ids);
boolean isEmpty();
@Override
Iterator iterator();
@Override
void close();
> S imposeOnQuery(S query, Field idField);
> UpdateConditionStep imposeOnUpdate(S update, Field idField);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy