All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kenshoo.jooq.IdsList Maven / Gradle / Ivy

Go to download

A Java persistence layer based on JOOQ for high performance and business flow support.

There is a newer version: 0.1.121-jooq-3.16.3
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy