
io.zero88.jooqx.reactivex.ReactiveJooqx Maven / Gradle / Ivy
/*
* Copyright 2014 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package io.zero88.jooqx.reactivex;
import io.vertx.reactivex.RxHelper;
import io.vertx.reactivex.ObservableHelper;
import io.vertx.reactivex.FlowableHelper;
import io.vertx.reactivex.impl.AsyncResultMaybe;
import io.vertx.reactivex.impl.AsyncResultSingle;
import io.vertx.reactivex.impl.AsyncResultCompletable;
import io.vertx.reactivex.WriteStreamObserver;
import io.vertx.reactivex.WriteStreamSubscriber;
import java.util.Map;
import java.util.Set;
import java.util.List;
import java.util.Iterator;
import java.util.function.Function;
import java.util.stream.Collectors;
import io.vertx.core.Handler;
import io.vertx.core.AsyncResult;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import io.vertx.lang.rx.RxGen;
import io.vertx.lang.rx.TypeArg;
import io.vertx.lang.rx.MappingIterator;
/**
* Represents for an executor that executes jOOQ query
on Vertx reactive SQL pool
*
*
* NOTE: This class has been automatically generated from the {@link io.zero88.jooqx.ReactiveJooqx original} non RX-ified interface using Vert.x codegen.
*/
@RxGen(io.zero88.jooqx.ReactiveJooqx.class)
public class ReactiveJooqx {
@Override
public String toString() {
return delegate.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ReactiveJooqx that = (ReactiveJooqx) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public static final TypeArg __TYPE_ARG = new TypeArg<>( obj -> new ReactiveJooqx((io.zero88.jooqx.ReactiveJooqx) obj),
ReactiveJooqx::getDelegate
);
private final io.zero88.jooqx.ReactiveJooqx delegate;
public ReactiveJooqx(io.zero88.jooqx.ReactiveJooqx delegate) {
this.delegate = delegate;
}
public ReactiveJooqx(Object delegate) {
this.delegate = (io.zero88.jooqx.ReactiveJooqx)delegate;
}
public io.zero88.jooqx.ReactiveJooqx getDelegate() {
return delegate;
}
public io.vertx.reactivex.core.Vertx vertx() {
io.vertx.reactivex.core.Vertx ret = io.vertx.reactivex.core.Vertx.newInstance((io.vertx.core.Vertx)delegate.vertx());
return ret;
}
public io.vertx.reactivex.sqlclient.Pool sqlClient() {
io.vertx.reactivex.sqlclient.Pool ret = io.vertx.reactivex.sqlclient.Pool.newInstance((io.vertx.sqlclient.Pool)delegate.sqlClient());
return ret;
}
public io.zero88.jooqx.reactivex.ReactiveSQLResultCollector resultCollector() {
io.zero88.jooqx.reactivex.ReactiveSQLResultCollector ret = io.zero88.jooqx.reactivex.ReactiveSQLResultCollector.newInstance((io.zero88.jooqx.ReactiveSQLResultCollector)delegate.resultCollector());
return ret;
}
public io.zero88.jooqx.reactivex.ReactiveJooqxTx transaction() {
io.zero88.jooqx.reactivex.ReactiveJooqxTx ret = io.zero88.jooqx.reactivex.ReactiveJooqxTx.newInstance((io.zero88.jooqx.ReactiveJooqxTx)delegate.transaction());
return ret;
}
public org.jooq.DSLContext dsl() {
org.jooq.DSLContext ret = delegate.dsl();
return ret;
}
public io.zero88.jooqx.reactivex.ReactiveSQLPreparedQuery preparedQuery() {
io.zero88.jooqx.reactivex.ReactiveSQLPreparedQuery ret = io.zero88.jooqx.reactivex.ReactiveSQLPreparedQuery.newInstance((io.zero88.jooqx.ReactiveSQLPreparedQuery)delegate.preparedQuery());
return ret;
}
public io.zero88.jooqx.SQLErrorConverter errorConverter() {
io.zero88.jooqx.SQLErrorConverter ret = delegate.errorConverter();
return ret;
}
public io.zero88.jooqx.datatype.DataTypeMapperRegistry typeMapperRegistry() {
io.zero88.jooqx.datatype.DataTypeMapperRegistry ret = delegate.typeMapperRegistry();
return ret;
}
public void execute(org.jooq.Query query, io.zero88.jooqx.adapter.SQLResultAdapter adapter, Handler> handler) {
delegate.execute(query, adapter, handler);
}
public void execute(org.jooq.Query query, io.zero88.jooqx.adapter.SQLResultAdapter adapter) {
execute(query, adapter, ar -> { });
}
public io.reactivex.Maybe rxExecute(org.jooq.Query query, io.zero88.jooqx.adapter.SQLResultAdapter adapter) {
return AsyncResultMaybe.toMaybe($handler -> {
execute(query, adapter, $handler);
});
}
public void batch(org.jooq.Query query, io.zero88.jooqx.BindBatchValues bindBatchValues, Handler> handler) {
delegate.batch(query, bindBatchValues, handler);
}
public void batch(org.jooq.Query query, io.zero88.jooqx.BindBatchValues bindBatchValues) {
batch(query, bindBatchValues, ar -> { });
}
public io.reactivex.Single rxBatch(org.jooq.Query query, io.zero88.jooqx.BindBatchValues bindBatchValues) {
return AsyncResultSingle.toSingle($handler -> {
batch(query, bindBatchValues, $handler);
});
}
public void batch(org.jooq.Query query, io.zero88.jooqx.BindBatchValues bindBatchValues, io.zero88.jooqx.adapter.SQLResultAdapter.SQLResultListAdapter adapter, Handler>> handler) {
delegate.batch(query, bindBatchValues, adapter, handler);
}
public void batch(org.jooq.Query query, io.zero88.jooqx.BindBatchValues bindBatchValues, io.zero88.jooqx.adapter.SQLResultAdapter.SQLResultListAdapter adapter) {
batch(query, bindBatchValues, adapter, ar -> { });
}
public io.reactivex.Single> rxBatch(org.jooq.Query query, io.zero88.jooqx.BindBatchValues bindBatchValues, io.zero88.jooqx.adapter.SQLResultAdapter.SQLResultListAdapter adapter) {
return AsyncResultSingle.toSingle($handler -> {
batch(query, bindBatchValues, adapter, $handler);
});
}
public static ReactiveJooqx newInstance(io.zero88.jooqx.ReactiveJooqx arg) {
return arg != null ? new ReactiveJooqx(arg) : null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy