public class PgPoolImpl extends PoolBase<PgPoolImpl> implements PgPool
metrics, tracer| Modifier and Type | Method and Description |
|---|---|
int |
appendQueryPlaceholder(StringBuilder queryBuilder,
int index,
int current)
Append a parameter placeholder in the
query. |
static PgPoolImpl |
create(ContextInternal context,
boolean closeVertx,
PgConnectOptions connectOptions,
PoolOptions poolOptions) |
protected SqlConnectionImpl |
wrap(ContextInternal context,
Connection conn) |
close, close, close, closeFuture, getConnection, getConnection, promise, promise, schedulepreparedQuery, queryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpool, pool, pool, pool, pool, pool, pool, pool, poolclose, getConnection, getConnection, pool, pool, pool, preparedQuery, query, withConnection, withConnection, withTransaction, withTransactionpublic static PgPoolImpl create(ContextInternal context, boolean closeVertx, PgConnectOptions connectOptions, PoolOptions poolOptions)
public int appendQueryPlaceholder(StringBuilder queryBuilder, int index, int current)
SqlClientInternalquery.
The index starts at 0.
index == current indicates it is a new parameter and therefore the same
* value should be returned.index < current indicates the builder wants to reuse a parameter.
The implementation can either return the same value to indicate the parameter can be reused or
return the next index to use (which is shall be the current valueappendQueryPlaceholder in interface SqlClientInternalappendQueryPlaceholder in class SqlClientBase<PgPoolImpl>queryBuilder - the builder to append toindex - the parameter placeholder indexprotected SqlConnectionImpl wrap(ContextInternal context, Connection conn)
wrap in class PoolBase<PgPoolImpl>Copyright © 2021. All rights reserved.