
org.postgresql.adba.operations.PgCatchOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pgadba Show documentation
Show all versions of pgadba Show documentation
ADBA implementation for PostgreSQL
The newest version!
package org.postgresql.adba.operations;
import jdk.incubator.sql2.PrimitiveOperation;
import jdk.incubator.sql2.Submission;
import org.postgresql.adba.PgSession;
import org.postgresql.adba.PgSubmission;
import org.postgresql.adba.submissions.BaseSubmission;
public class PgCatchOperation implements PrimitiveOperation {
private PgSession connection;
public PgCatchOperation(PgSession connection) {
this.connection = connection;
}
@Override
public Submission submit() {
BaseSubmission submission = new BaseSubmission<>(this::cancel, PgSubmission.Types.CATCH, null, null, null, null);
connection.submit(submission);
return submission;
}
boolean cancel() {
// todo set life cycle to canceled
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy