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.
|
RecordCursor |
JdbcExecutor.executeQuery(java.lang.String sql)
Execute query, ex : SELECT * FROM table.
|
RecordCursor |
JdbcExecutor.Transaction.executeQuery(java.lang.String sql)
Execute a query SQL using a batch.
|
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 |
JdbcExecutor.Transaction.executeUpdate(java.lang.String sql)
Execute a SQL using a batch.
|
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 |
JdbcExecutor.Transaction.insert(java.lang.String sql)
The auto-generated keys generated by this Statement object should be available for use in SQL
statements that are INSERT statements.
|
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 |
---|---|
void |
OriginalConnection.close() |
void |
ConcurrentConnection.close() |
int |
OriginalConnection.getConnection(DatabaseConnection.ConnectionFunction consumer) |
int |
OnceConnection.getConnection(DatabaseConnection.ConnectionFunction consumer) |
int |
ConcurrentConnection.getConnection(DatabaseConnection.ConnectionFunction consumer) |