public class JdbcDataSource extends NamedDataSource
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTENSION_NAME |
CACHE_STAT_EVICTION_COUNT, CACHE_STAT_EVICTION_WEIGHT, CACHE_STAT_HIT_COUNT, CACHE_STAT_LOAD_FAILURE_COUNT, CACHE_STAT_LOAD_SUCCESS_COUNT, CACHE_STAT_MISS_COUNT, CACHE_STAT_TOTAL_LOAD_TIME, COLUMN_PREFIX, CONF_CACHE, CONF_CLASS, CONF_COLUMNS, CONF_CONVERTER, CONF_DEFAULTS, CONF_DRIVER_URLS, CONF_EXPIRATION, CONF_JDBC_TYPE, CONF_JDBC_URL, CONF_MAPPINGS, CONF_NATIVE_TYPE, CONF_PARAMETERS, CONF_QUERY_TIMEOUT, CONF_SCHEMA, CONF_SEALED, CONF_SIZE, CONF_TIMEZONE, CONF_TO_TYPE, CONF_TYPE, CONF_WRITE_TIMEOUT, converter, DEFAULT_QUOTE_IDENTIFIER, EMPTY_USAGE, USE_CUSTOM_DRIVER_LOADERaliases, CONF_ALIASES, CONF_ID, createDateTime, digest, id, type| Modifier | Constructor and Description |
|---|---|
protected |
JdbcDataSource(String id,
Repository<NamedDataSource> resolver,
io.vertx.core.json.JsonObject config) |
executeQuery, executeQuery, generateColumnName, getCacheUsage, getCreateDateTime, getCustomColumns, getCustomColumnsAsJsonString, getDefaultValues, getDefaultValuesAsJsonString, getDriverClassLoader, getDriverUrls, getParametersAsJsonString, getQueryTimeout, getQueryTimeout, getResultColumns, getTimeZone, getUsage, getWriteTimeout, getWriteTimeout, isSealed, loadSavedQueryAsNeeded, newQueryParameters, validate, writeMutationResultgetAliases, getCreationDateTime, getId, isDifferentFrompublic static final String EXTENSION_NAME
protected JdbcDataSource(String id, Repository<NamedDataSource> resolver, io.vertx.core.json.JsonObject config)
protected static void deregisterJdbcDriver(String driverClassName)
public static void initialize(ExtensionManager manager)
public static JdbcDataSource newInstance(Object... args)
protected final Connection getConnection() throws SQLException
SQLExceptionprotected final Statement createStatement(Connection conn) throws SQLException
SQLExceptionprotected final Statement createStatement(Connection conn, QueryParameters parameters) throws SQLException
SQLExceptionprotected final PreparedStatement createPreparedStatement(Connection conn, String sql, QueryParameters parameters) throws SQLException
SQLExceptionprotected final void setTimeout(Statement stmt, int expectedTimeout)
protected long getFirstMutationResult(Statement stmt) throws SQLException
SQLExceptionprotected ResultSet getFirstQueryResult(Statement stmt, boolean hasResultSet) throws SQLException
SQLExceptionprotected String getColumnName(ResultSetMetaData meta, int columnIndex) throws SQLException
SQLExceptionprotected ColumnDefinition[] getColumnsFromResultSet(ResultSet rs, QueryParameters params) throws SQLException
SQLExceptionprotected TableDefinition inferTypes(String schema, String originalQuery, String loadedQuery, QueryParameters params)
inferTypes in class NamedDataSourceprotected boolean isSavedQuery(String file)
isSavedQuery in class NamedDataSourceprotected void writeMutationResult(String schema, String originalQuery, String loadedQuery, QueryParameters params, ColumnDefinition[] requestColumns, ColumnDefinition[] customColumns, DefaultValues defaultValues, ResponseWriter writer)
writeMutationResult in class NamedDataSourceprotected void writeQueryResult(String schema, String originalQuery, String loadedQuery, QueryParameters params, ColumnDefinition[] requestColumns, ColumnDefinition[] customColumns, DefaultValues defaultValues, ResponseWriter writer)
writeQueryResult in class NamedDataSourceprotected final void write(PreparedStatement stmt, ColumnDefinition[] cols, QueryParameters params, ByteBuffer buffer) throws SQLException
SQLExceptionprotected final void initQuoteIdentifier(Connection conn)
public final String getType()
ManagedEntitygetType in class NamedDataSourcepublic final String getQuoteIdentifier()
getQuoteIdentifier in class NamedDataSourcepublic String getPoolUsage()
getPoolUsage in class NamedDataSourcepublic void executeMutation(String schema, String table, TableDefinition columns, QueryParameters params, ByteBuffer buffer, ResponseWriter writer)
executeMutation in class NamedDataSourcepublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class NamedDataSourceCopyright © 2019–2021. All rights reserved.