package io.vertx.reactivex.db2client;
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.db2client.DB2Pool.class)
public class DB2Pool 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;
DB2Pool that = (DB2Pool) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public static final TypeArg<DB2Pool> __TYPE_ARG = new TypeArg<>( obj -> new DB2Pool((io.vertx.db2client.DB2Pool) obj),
DB2Pool::getDelegate
);
private final io.vertx.db2client.DB2Pool delegate;
public DB2Pool(io.vertx.db2client.DB2Pool delegate) {
super(delegate);
this.delegate = delegate;
}
public DB2Pool(Object delegate) {
super((io.vertx.db2client.DB2Pool)delegate);
this.delegate = (io.vertx.db2client.DB2Pool)delegate;
}
public io.vertx.db2client.DB2Pool getDelegate() {
return delegate;
}
public static io.vertx.reactivex.db2client.DB2Pool pool(String connectionUri) {
io.vertx.reactivex.db2client.DB2Pool ret = io.vertx.reactivex.db2client.DB2Pool.newInstance((io.vertx.db2client.DB2Pool)io.vertx.db2client.DB2Pool.pool(connectionUri));
return ret;
}
public static io.vertx.reactivex.db2client.DB2Pool pool(String connectionUri, io.vertx.sqlclient.PoolOptions poolOptions) {
io.vertx.reactivex.db2client.DB2Pool ret = io.vertx.reactivex.db2client.DB2Pool.newInstance((io.vertx.db2client.DB2Pool)io.vertx.db2client.DB2Pool.pool(connectionUri, poolOptions));
return ret;
}
public static io.vertx.reactivex.db2client.DB2Pool pool(io.vertx.reactivex.core.Vertx vertx, String connectionUri) {
io.vertx.reactivex.db2client.DB2Pool ret = io.vertx.reactivex.db2client.DB2Pool.newInstance((io.vertx.db2client.DB2Pool)io.vertx.db2client.DB2Pool.pool(vertx.getDelegate(), connectionUri));
return ret;
}
public static io.vertx.reactivex.db2client.DB2Pool pool(io.vertx.reactivex.core.Vertx vertx, String connectionUri, io.vertx.sqlclient.PoolOptions poolOptions) {
io.vertx.reactivex.db2client.DB2Pool ret = io.vertx.reactivex.db2client.DB2Pool.newInstance((io.vertx.db2client.DB2Pool)io.vertx.db2client.DB2Pool.pool(vertx.getDelegate(), connectionUri, poolOptions));
return ret;
}
public static io.vertx.reactivex.db2client.DB2Pool pool(io.vertx.db2client.DB2ConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions) {
io.vertx.reactivex.db2client.DB2Pool ret = io.vertx.reactivex.db2client.DB2Pool.newInstance((io.vertx.db2client.DB2Pool)io.vertx.db2client.DB2Pool.pool(connectOptions, poolOptions));
return ret;
}
public static io.vertx.reactivex.db2client.DB2Pool pool(io.vertx.reactivex.core.Vertx vertx, io.vertx.db2client.DB2ConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions) {
io.vertx.reactivex.db2client.DB2Pool ret = io.vertx.reactivex.db2client.DB2Pool.newInstance((io.vertx.db2client.DB2Pool)io.vertx.db2client.DB2Pool.pool(vertx.getDelegate(), connectOptions, poolOptions));
return ret;
}
public static DB2Pool newInstance(io.vertx.db2client.DB2Pool arg) {
return arg != null ? new DB2Pool(arg) : null;
}
}