com.kenshoo.jooq.IdsList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of persistence-layer Show documentation
Show all versions of persistence-layer Show documentation
A Java persistence layer based on JOOQ for high performance and business flow support.
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();
, FT> S imposeOnQuery(S query, Field idField);
, FT> UpdateConditionStep imposeOnUpdate(S update, Field idField);
}