Uses of Interface
io.ebean.datasource.DataSourceBuilder
-
Uses of DataSourceBuilder in io.ebean.datasource
Subinterfaces of DataSourceBuilder in io.ebean.datasourceModifier and TypeInterfaceDescriptionstatic interfaceThe settings of the DataSourceBuilder.Classes in io.ebean.datasource that implement DataSourceBuilderModifier and TypeClassDescriptionclassConfiguration information for a DataSource.Methods in io.ebean.datasource that return DataSourceBuilderModifier and TypeMethodDescriptionDataSourceBuilder.addProperty(String key, boolean value) Add a driver property.DataSourceBuilder.addProperty(String key, int value) Add a driver property.DataSourceBuilder.addProperty(String key, String value) Add a driver property.default DataSourceBuilderDataSourceBuilder.alert(DataSourceAlert alert) Set the alert implementation to use.default DataSourceBuilderDataSourceBuilder.alsoIf(BooleanSupplier predicate, Consumer<DataSourceBuilder.Settings> apply) Conditionally apply configuration to the builder via a lambda.default DataSourceBuilderDataSourceBuilder.applicationName(String applicationName) Set the ClientInfo ApplicationName property.DataSourceBuilder.apply(Consumer<DataSourceBuilder.Settings> apply) Apply configuration to the builder via a lambda.DataSourceConfig.apply(Consumer<DataSourceBuilder.Settings> apply) default DataSourceBuilderDataSourceBuilder.autoCommit(boolean autoCommit) Set to true to turn on autoCommit.static DataSourceBuilderDataSourcePool.builder()Return a builder for the DataSourcePool.default DataSourceBuilderDataSourceBuilder.captureStackTrace(boolean captureStackTrace) Set to true if a stack trace should be captured when obtaining a connection from the pool.Set the default database catalog to use.default DataSourceBuilderDataSourceBuilder.clientInfo(Properties clientInfo) Set the ClientInfo as properties.DataSourceBuilder.copy()Return a copy of the DataSourceBuilder.static DataSourceBuilderDataSourceBuilder.create()Return a new builder of DataSourcePool.default DataSourceBuilderDataSourceBuilder.cstmtCacheSize(int cstmtCacheSize) Set the size of the CallableStatement cache (per connection).default DataSourceBuilderDataSourceBuilder.customProperties(Map<String, String> customProperties) Set custom properties for the jdbc driver connection.DataSourceBuilder.dataSource(DataSource dataSource) Set a DataSource that will be used to provide new connections.Set the driver class to use.default DataSourceBuilderSet the database driver className.Set the driver to use.DataSourceBuilder.enforceCleanClose(boolean enforceCleanClose) When enabled, the datasource enforces a clean close.DataSourceConfig.enforceCleanClose(boolean enforceCleanClose) default DataSourceBuilderDataSourceBuilder.failOnStart(boolean failOnStart) Set to false, if DataSource should not fail on start.static DataSourceBuilderDataSourceBuilder.from(Properties properties) Return a new builder loading from the given properties.static DataSourceBuilderDataSourceBuilder.from(Properties properties, String prefix) Return a new builder loading from the given properties using a given prefix.default DataSourceBuilderDataSourceBuilder.heartbeatFreqSecs(int heartbeatFreqSecs) Set the expected heartbeat frequency in seconds.DataSourceBuilder.heartbeatMaxPoolExhaustedCount(int count) Sets the coun how often the heartbeat has to detect pool exhaustion in succession.DataSourceConfig.heartbeatMaxPoolExhaustedCount(int count) default DataSourceBuilderDataSourceBuilder.heartbeatSql(String heartbeatSql) Set a SQL statement used to test the database is accessible.default DataSourceBuilderDataSourceBuilder.heartbeatTimeoutSeconds(int heartbeatTimeoutSeconds) Set the heart beat timeout in seconds.default DataSourceBuilderDataSourceBuilder.initDatabase(InitDatabase initDatabase) Set the InitDatabase to use with ownerUsername.default DataSourceBuilderDataSourceBuilder.initDatabaseForPlatform(String platform) Set InitDatabase based on the database platform.DataSourceBuilder.initialConnections(int initialConnections) Set the number of initial connections to create when starting.default DataSourceBuilderSet custom init queries for each query.default DataSourceBuilderDataSourceBuilder.isolationLevel(int isolationLevel) Set the transaction isolation level.default DataSourceBuilderDataSourceBuilder.leakTimeMinutes(int leakTimeMinutes) Set the time in minutes after which a connection could be considered to have leaked.default DataSourceBuilderDataSourceBuilder.listener(DataSourcePoolListener listener) Set the listener to use.DataSourceBuilder.load(Properties properties) Load the settings from the properties with no prefix on the property names.DataSourceBuilder.load(Properties properties, String prefix) Load the settings from the properties with the given prefix on the property names.DataSourceBuilder.loadSettings(Properties properties, String poolName) Load the settings from the properties with "datasource" prefix on the property names.default DataSourceBuilderDataSourceBuilder.maxAgeMinutes(int maxAgeMinutes) Set the maximum age a connection can be in minutes.default DataSourceBuilderDataSourceBuilder.maxConnections(int maxConnections) Set the maximum number of connections the pool can reach.default DataSourceBuilderDataSourceBuilder.maxInactiveTimeSecs(int maxInactiveTimeSecs) Set the time in seconds a connection can be idle after which it can be trimmed from the pool.default DataSourceBuilderDataSourceBuilder.maxStackTraceSize(int maxStackTraceSize) Set the max size for reporting stack traces on busy connections.default DataSourceBuilderDataSourceBuilder.minConnections(int minConnections) Set the minimum number of connections the pool should maintain.default DataSourceBuilderSet the data source pool name.default DataSourceBuilderDataSourceBuilder.offline(boolean offline) Set to true if the DataSource should be started offline (without any connections).default DataSourceBuilderDataSourceBuilder.ownerPassword(String ownerPassword) Set the database owner password (used to create connection for use with InitDatabase).default DataSourceBuilderDataSourceBuilder.ownerUsername(String ownerUsername) Set the database owner username (used to create connection for use with InitDatabase).default DataSourceBuilderSet the database password.default DataSourceBuilderSet the database alternate password2.default DataSourceBuilderSet the database platform (for use with ownerUsername and InitDatabase.default DataSourceBuilderDataSourceBuilder.poolListener(String poolListener) Set a pool listener.default DataSourceBuilderDataSourceBuilder.pstmtCacheSize(int pstmtCacheSize) Set the size of the PreparedStatement cache (per connection).default DataSourceBuilderDataSourceBuilder.readOnly(boolean readOnly) Set to true to for read only.default DataSourceBuilderDataSourceBuilder.readOnlyUrl(String readOnlyUrl) Set the connection URL to use for a matching read-only connection pool.default DataSourceBuilderSet the default database schema to use.DataSourceBuilder.setAlert(DataSourceAlert alert) Deprecated, for removal: This API element is subject to removal in a future version.DataSourceBuilder.setApplicationName(String applicationName) Deprecated, for removal: This API element is subject to removal in a future version.- migrate toapplicationName(String)DataSourceBuilder.setAutoCommit(boolean autoCommit) Deprecated, for removal: This API element is subject to removal in a future version.- migrate toautoCommit(boolean).DataSourceBuilder.setCaptureStackTrace(boolean captureStackTrace) Deprecated, for removal: This API element is subject to removal in a future version.- migrate tocaptureStackTrace(boolean).DataSourceBuilder.setClientInfo(Properties clientInfo) Deprecated, for removal: This API element is subject to removal in a future version.- migrate toclientInfo(Properties).DataSourceBuilder.setCstmtCacheSize(int cstmtCacheSize) Deprecated.- migrate tocstmtCacheSize(int).DataSourceBuilder.setCustomProperties(Map<String, String> customProperties) Deprecated.- migrate tocustomProperties(Map).DataSourceBuilder.setDefaults(DataSourceBuilder other) Default the values for driver, url, username, password and minConnections from another builder if these properties not already been set.Deprecated, for removal: This API element is subject to removal in a future version.- migrate todriver(String).DataSourceBuilder.setFailOnStart(boolean failOnStart) Deprecated.- migrate tofailOnStart(boolean).DataSourceBuilder.setHeartbeatFreqSecs(int heartbeatFreqSecs) Deprecated, for removal: This API element is subject to removal in a future version.- migrate toheartbeatFreqSecs(int).DataSourceBuilder.setHeartbeatSql(String heartbeatSql) Deprecated, for removal: This API element is subject to removal in a future version.- migrate toheartbeatSql(String).DataSourceBuilder.setHeartbeatTimeoutSeconds(int heartbeatTimeoutSeconds) Deprecated, for removal: This API element is subject to removal in a future version.- migrate toheartbeatTimeoutSeconds(int).DataSourceBuilder.setInitDatabase(InitDatabase initDatabase) Deprecated.- migrate toinitDatabase(InitDatabase).DataSourceBuilder.setInitDatabaseForPlatform(String platform) Deprecated.- migrate toinitDatabaseForPlatform(String).DataSourceBuilder.setInitSql(List<String> initSql) Deprecated.- migrate toinitSql(List).DataSourceBuilder.setIsolationLevel(int isolationLevel) Deprecated, for removal: This API element is subject to removal in a future version.- migrate toisolationLevel(int).DataSourceBuilder.setLeakTimeMinutes(int leakTimeMinutes) Deprecated, for removal: This API element is subject to removal in a future version.- migrate toleakTimeMinutes(int).DataSourceBuilder.setListener(DataSourcePoolListener listener) Deprecated, for removal: This API element is subject to removal in a future version.- migrate tolistener(DataSourcePoolListener).DataSourceBuilder.setMaxAgeMinutes(int maxAgeMinutes) Deprecated.- migrate tomaxAgeMinutes(int).DataSourceBuilder.setMaxConnections(int maxConnections) Deprecated, for removal: This API element is subject to removal in a future version.- migrate tomaxConnections(int).DataSourceBuilder.setMaxInactiveTimeSecs(int maxInactiveTimeSecs) Deprecated.- migrate tomaxInactiveTimeSecs(int).DataSourceBuilder.setMaxStackTraceSize(int maxStackTraceSize) Deprecated, for removal: This API element is subject to removal in a future version.- migrate tomaxStackTraceSize(int).DataSourceBuilder.setMinConnections(int minConnections) Deprecated, for removal: This API element is subject to removal in a future version.- migrate tominConnections(int).Deprecated, for removal: This API element is subject to removal in a future version.- migrate toname(String)DataSourceBuilder.setOffline(boolean offline) Deprecated.- migrate tooffline(boolean).DataSourceBuilder.setOwnerPassword(String ownerPassword) Deprecated.- migrate toownerPassword(String).DataSourceBuilder.setOwnerUsername(String ownerUsername) Deprecated.- migrate toownerUsername(String).DataSourceBuilder.setPassword(String password) Deprecated.- migrate topassword(String).DataSourceBuilder.setPassword2(String password2) Deprecated.- migrate topassword2(String).DataSourceBuilder.setPlatform(String platform) Deprecated.- migrate toplatform(String).DataSourceBuilder.setPoolListener(String poolListener) Deprecated.- migrate topoolListener(String).DataSourceBuilder.setPstmtCacheSize(int pstmtCacheSize) Deprecated.- migrate topstmtCacheSize(int).DataSourceBuilder.setReadOnly(boolean readOnly) Deprecated, for removal: This API element is subject to removal in a future version.- migrate toreadOnly(boolean).DataSourceBuilder.setReadOnlyUrl(String readOnlyUrl) Deprecated, for removal: This API element is subject to removal in a future version.- migrate toreadOnlyUrl(String).Deprecated, for removal: This API element is subject to removal in a future version.- migrate toschema(String).DataSourceBuilder.setTrimPoolFreqSecs(int trimPoolFreqSecs) Deprecated.- migrate totrimPoolFreqSecs(int).Deprecated, for removal: This API element is subject to removal in a future version.- migrate tourl(String).DataSourceBuilder.setUsername(String username) Deprecated, for removal: This API element is subject to removal in a future version.- migrate tousername(String).DataSourceBuilder.setWaitTimeoutMillis(int waitTimeoutMillis) Deprecated.- migrate towaitTimeoutMillis(int).DataSourceBuilder.shutdownOnJvmExit(boolean shutdownOnJvmExit) When set true a JVM shutdown hook is registered that will shutdown the connection pool on JVM exit if it has not already been shutdown.default DataSourceBuilderDataSourceBuilder.trimPoolFreqSecs(int trimPoolFreqSecs) Set the minimum trim gap between pool trim checks.default DataSourceBuilderSet the connection URL.default DataSourceBuilderSet the database username.DataSourceBuilder.validateOnHeartbeat(boolean validateOnHeartbeat) Set whether the connection pool should be validated periodically.default DataSourceBuilderDataSourceBuilder.waitTimeoutMillis(int waitTimeoutMillis) Set the time in millis to wait for a connection before timing out once the pool has reached its maximum size.Methods in io.ebean.datasource with parameters of type DataSourceBuilderModifier and TypeMethodDescriptionDataSourceBuilder.setDefaults(DataSourceBuilder other) Default the values for driver, url, username, password and minConnections from another builder if these properties not already been set.DataSourceConfig.setDefaults(DataSourceBuilder builder)
alert(DataSourceAlert).