com.d3x.core.util.Option<java.lang.Integer> |
DatabaseExecute.apply() |
Applies this database execute operation
|
com.d3x.core.util.Option<java.lang.Integer> |
DatabaseExecute.apply(DatabaseExecute.Multiple handler) |
Applies this database execute operation
|
com.d3x.core.util.Option<java.lang.Integer> |
DatabaseExecute.apply(DatabaseExecute.Single handler) |
Applies this database execute operation
|
static java.sql.PreparedStatement |
DatabaseMapping.bindArgs(java.sql.PreparedStatement stmt,
java.util.List<java.lang.Object> args) |
Binds an array of arguments to the prepared statement
|
static java.sql.PreparedStatement |
DatabaseMapping.bindArgs(java.sql.PreparedStatement stmt,
java.util.TimeZone timeZone,
java.util.List<java.lang.Object> args) |
Binds an array of arguments to the prepared statement
|
javax.sql.DataSource |
DataSourceAdapter.Apache.create(DatabaseConfig config) |
|
javax.sql.DataSource |
DataSourceAdapter.create(DatabaseConfig config) |
Returns a newly created DataSource based on the config provided
|
com.d3x.core.util.Option<java.lang.Integer> |
Database.execute(java.lang.String sql) |
Executes the sql definition using java.sql.Statement.execute()
|
com.d3x.core.util.Option<java.lang.Integer> |
Database.execute(java.lang.String sql,
com.d3x.core.util.Option<java.util.function.Consumer<java.sql.ResultSet>> handler) |
Executes the sql definition using java.sql.Statement.execute()
|
static DatabaseConfig |
DatabaseConfig.fromJson(java.lang.String resource) |
Returns the config loaded from a json file on classpath
|
<R> R |
Database.withConnection(Database.ConnectionHandler<R> handler) |
Freestyle function to execute some logic against a database using the connection directly
|
<R> R |
Database.withTransaction(Database.ConnectionHandler<R> handler) |
Freestyle function to execute some logic against a database within a transaction
|