org.postgresql.adba.PgSubmission Maven / Gradle / Ivy
package org.postgresql.adba;
import jdk.incubator.sql2.Submission;
import org.postgresql.adba.communication.packets.DataRow;
import org.postgresql.adba.operations.helpers.ParameterHolder;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.function.Consumer;
import java.util.stream.Collector;
public interface PgSubmission extends Submission {
enum Types {
COUNT,
ROW,
CLOSE,
CONNECT,
TRANSACTION,
ARRAY_COUNT,
VOID,
PROCESSOR,
OUT_PARAMETER,
LOCAL,
GROUP,
CATCH;
}
String getSql();
AtomicBoolean getSendConsumed();
ParameterHolder getHolder();
Types getCompletionType();
void setCollector(Collector collector);
Object finish(Object finishObject);
void addRow(DataRow row);
List getParamTypes() throws ExecutionException, InterruptedException;
int numberOfQueryRepetitions() throws ExecutionException, InterruptedException;
Consumer getErrorHandler();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy