package io.vertx.reactivex.jdbcclient;
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;
@RxGen(io.vertx.jdbcclient.JDBCPool.class)
public class JDBCPool extends io.vertx.reactivex.sqlclient.Pool {
@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;
JDBCPool that = (JDBCPool) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public static final TypeArg<JDBCPool> __TYPE_ARG = new TypeArg<>( obj -> new JDBCPool((io.vertx.jdbcclient.JDBCPool) obj),
JDBCPool::getDelegate
);
private final io.vertx.jdbcclient.JDBCPool delegate;
public JDBCPool(io.vertx.jdbcclient.JDBCPool delegate) {
super(delegate);
this.delegate = delegate;
}
public JDBCPool(Object delegate) {
super((io.vertx.jdbcclient.JDBCPool)delegate);
this.delegate = (io.vertx.jdbcclient.JDBCPool)delegate;
}
public io.vertx.jdbcclient.JDBCPool getDelegate() {
return delegate;
}
public static io.vertx.reactivex.jdbcclient.JDBCPool pool(io.vertx.reactivex.core.Vertx vertx, io.vertx.jdbcclient.JDBCConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions) {
io.vertx.reactivex.jdbcclient.JDBCPool ret = io.vertx.reactivex.jdbcclient.JDBCPool.newInstance((io.vertx.jdbcclient.JDBCPool)io.vertx.jdbcclient.JDBCPool.pool(vertx.getDelegate(), connectOptions, poolOptions));
return ret;
}
public static io.vertx.reactivex.jdbcclient.JDBCPool pool(io.vertx.reactivex.core.Vertx vertx, JsonObject config) {
io.vertx.reactivex.jdbcclient.JDBCPool ret = io.vertx.reactivex.jdbcclient.JDBCPool.newInstance((io.vertx.jdbcclient.JDBCPool)io.vertx.jdbcclient.JDBCPool.pool(vertx.getDelegate(), config));
return ret;
}
public static final io.vertx.reactivex.sqlclient.PropertyKind<io.vertx.reactivex.sqlclient.Row> GENERATED_KEYS = io.vertx.reactivex.sqlclient.PropertyKind.newInstance((io.vertx.sqlclient.PropertyKind)io.vertx.jdbcclient.JDBCPool.GENERATED_KEYS, new TypeArg<io.vertx.reactivex.sqlclient.Row>(o0 -> io.vertx.reactivex.sqlclient.Row.newInstance((io.vertx.sqlclient.Row)o0), o0 -> o0.getDelegate()));
public static final io.vertx.reactivex.sqlclient.PropertyKind<Boolean> OUTPUT = io.vertx.reactivex.sqlclient.PropertyKind.newInstance((io.vertx.sqlclient.PropertyKind)io.vertx.jdbcclient.JDBCPool.OUTPUT, TypeArg.unknown());
public static JDBCPool newInstance(io.vertx.jdbcclient.JDBCPool arg) {
return arg != null ? new JDBCPool(arg) : null;
}
}