Package | Description |
---|---|
ra.db | |
ra.db.connection |
Modifier and Type | Method and Description |
---|---|
int |
DatabaseConnection.ConnectionFunction.applay(java.sql.Connection connection)
Get current database connection.
|
R |
DatabaseOperable.apply(T input)
Applies this function to the given argument.
|
<T extends java.sql.Statement> |
StatementFactory.create(java.lang.String sql) |
RecordCursor |
JdbcExecutor.executeQuery(java.lang.String sql)
Execute query, ex : SELECT * FROM table.
|
RecordCursor |
StatementExecutor.executeQuery(java.lang.String sql)
Executes the given SQL statement, which returns a single RecordCursor object.
|
void |
JdbcExecutor.executeTransaction(TransactionExecutor executor)
Transaction.
|
void |
StatementExecutor.executeTransaction(TransactionExecutor executor)
Execute SQL statements.
|
int |
JdbcExecutor.executeUpdate(java.lang.String sql)
Executes the given SQL statement, which may be an INSERT, UPDATE, or DELETE statement or an SQL
statement that returns nothing, such as an SQL DDL statement.
|
int |
StatementExecutor.executeUpdate(java.lang.String sql)
Executes the given SQL statement, which may be an INSERT, UPDATE, or DELETE statement or an SQL
statement that returns nothing, such as an SQL DDL statement.
|
int |
DatabaseConnection.getConnection(DatabaseConnection.ConnectionFunction consumer)
Get current database connection.
|
LastInsertId |
StatementExecutor.insert(java.lang.String sql)
Return the last id after executing SQL statement.
|
RecordCursor |
JdbcExecutor.prepareExecuteQuery(Prepared prepared)
A SQL statement is precompiled and stored in a Prepared object.
|
RecordCursor |
JdbcExecutor.Transaction.prepareExecuteQuery(Prepared prepared)
A SQL statement is precompiled and stored in a Prepared object.
|
RecordCursor |
StatementExecutor.prepareExecuteQuery(Prepared prepared)
A SQL statement is precompiled and stored in a Prepared object.
|
int |
JdbcExecutor.prepareExecuteUpdate(Prepared prepared)
Executes the SQL statement in this PreparedStatement object, which must be an SQL Data
Manipulation Language (DML) statement, such as INSERT, UPDATE or DELETE; or an SQL statement
that returns nothing, such as a DDL statement.
|
int |
JdbcExecutor.Transaction.prepareExecuteUpdate(Prepared prepared)
Executes the given SQL statement, which may be an INSERT, UPDATE, or DELETE statement or an
SQL statement that returns nothing, such as an SQL DDL statement.
|
int |
StatementExecutor.prepareExecuteUpdate(Prepared prepared)
Executes the given SQL statement, which may be an INSERT, UPDATE, or DELETE statement or an SQL
statement that returns nothing, such as an SQL DDL statement.
|
int |
JdbcExecutor.tryExecuteUpdate(java.lang.String sql)
Attempts to execute the given SQL statement, which may be an INSERT, UPDATE, or DELETE
statement or an SQL statement that returns nothing, such as an SQL DDL statement.
|
int |
StatementExecutor.tryExecuteUpdate(java.lang.String sql)
Attempts to execute the given SQL statement, which may be an INSERT, UPDATE, or DELETE
statement or an SQL statement that returns nothing, such as an SQL DDL statement.
|
default java.sql.Connection |
DatabaseConnection.tryGetConnection(DatabaseParameters param)
Try to get a database connection from database pool.
|
Modifier and Type | Method and Description |
---|---|
int |
OriginalConnection.getConnection(DatabaseConnection.ConnectionFunction consumer) |
int |
OnceConnection.getConnection(DatabaseConnection.ConnectionFunction consumer) |
int |
ConcurrentConnection.getConnection(DatabaseConnection.ConnectionFunction consumer) |