Package io.vertx.jdbcclient
Class JDBCConnectOptions
- java.lang.Object
-
- io.vertx.jdbcclient.SqlOptions
-
- io.vertx.jdbcclient.JDBCConnectOptions
-
public class JDBCConnectOptions extends SqlOptions
-
-
Constructor Summary
Constructors Constructor Description JDBCConnectOptions()
JDBCConnectOptions(JsonObject json)
JDBCConnectOptions(JDBCConnectOptions other)
-
Method Summary
-
Methods inherited from class io.vertx.jdbcclient.SqlOptions
getAutoGeneratedKeysIndexes, getCatalog, getFetchDirection, getFetchSize, getMaxRows, getQueryTimeout, getResultSetConcurrency, getResultSetType, getSchema, getTransactionIsolation, isAutoGeneratedKeys, isReadOnly
-
-
-
-
Constructor Detail
-
JDBCConnectOptions
public JDBCConnectOptions()
-
JDBCConnectOptions
public JDBCConnectOptions(JsonObject json)
-
JDBCConnectOptions
public JDBCConnectOptions(JDBCConnectOptions other)
-
-
Method Detail
-
getJdbcUrl
public String getJdbcUrl()
-
setJdbcUrl
public JDBCConnectOptions setJdbcUrl(String jdbcUrl)
-
getUser
public String getUser()
-
setUser
public JDBCConnectOptions setUser(String user)
-
getPassword
public String getPassword()
-
setPassword
public JDBCConnectOptions setPassword(String password)
-
getDatabase
public String getDatabase()
-
setDatabase
public JDBCConnectOptions setDatabase(String database)
-
getConnectTimeout
public int getConnectTimeout()
-
setConnectTimeout
public JDBCConnectOptions setConnectTimeout(int connectTimeout)
-
getIdleTimeout
public int getIdleTimeout()
-
setIdleTimeout
public JDBCConnectOptions setIdleTimeout(int idleTimeout)
-
getMetricsName
public String getMetricsName()
- Returns:
- the metrics name identifying the reported metrics.
-
setMetricsName
public JDBCConnectOptions setMetricsName(String metricsName)
Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name.- Parameters:
metricsName
- the metrics name- Returns:
- a reference to this, so the API can be used fluently
-
getTracingPolicy
public TracingPolicy getTracingPolicy()
- Returns:
- the tracing policy
-
setTracingPolicy
public JDBCConnectOptions setTracingPolicy(TracingPolicy tracingPolicy)
Set the tracing policy for the client behavior when Vert.x has tracing enabled.- Parameters:
tracingPolicy
- the tracing policy- Returns:
- a reference to this, so the API can be used fluently
-
getExtraConfig
public JsonObject getExtraConfig()
-
setExtraConfig
public JDBCConnectOptions setExtraConfig(JsonObject extraConfig)
-
setReadOnly
public JDBCConnectOptions setReadOnly(boolean readOnly)
- Overrides:
setReadOnly
in classSqlOptions
-
setCatalog
public JDBCConnectOptions setCatalog(String catalog)
- Overrides:
setCatalog
in classSqlOptions
-
setTransactionIsolation
public JDBCConnectOptions setTransactionIsolation(TransactionIsolation transactionIsolation)
- Overrides:
setTransactionIsolation
in classSqlOptions
-
setResultSetType
public JDBCConnectOptions setResultSetType(ResultSetType resultSetType)
- Overrides:
setResultSetType
in classSqlOptions
-
setResultSetConcurrency
public JDBCConnectOptions setResultSetConcurrency(ResultSetConcurrency resultSetConcurrency)
- Overrides:
setResultSetConcurrency
in classSqlOptions
-
setAutoGeneratedKeys
public JDBCConnectOptions setAutoGeneratedKeys(boolean autoGeneratedKeys)
- Overrides:
setAutoGeneratedKeys
in classSqlOptions
-
setSchema
public JDBCConnectOptions setSchema(String schema)
- Overrides:
setSchema
in classSqlOptions
-
setQueryTimeout
public JDBCConnectOptions setQueryTimeout(int queryTimeout)
- Overrides:
setQueryTimeout
in classSqlOptions
-
setFetchDirection
public JDBCConnectOptions setFetchDirection(FetchDirection fetchDirection)
- Overrides:
setFetchDirection
in classSqlOptions
-
setFetchSize
public JDBCConnectOptions setFetchSize(int fetchSize)
- Overrides:
setFetchSize
in classSqlOptions
-
setAutoGeneratedKeysIndexes
public JDBCConnectOptions setAutoGeneratedKeysIndexes(JsonArray autoGeneratedKeysIndexes)
- Overrides:
setAutoGeneratedKeysIndexes
in classSqlOptions
-
setMaxRows
public JDBCConnectOptions setMaxRows(int maxRows)
- Overrides:
setMaxRows
in classSqlOptions
-
toJson
public JsonObject toJson()
-
-