| Package | Description |
|---|---|
| ra.db |
| Modifier and Type | Class and Description |
|---|---|
class |
JdbcExecutor
SQL statement (CRUD) executor.
|
| Modifier and Type | Method and Description |
|---|---|
default StatementExecutor |
DatabaseConnection.createStatementExecutor()
Create StatementExecutor.
|
StatementExecutor |
DatabaseConnections.getStatementExecutor(int index)
Returns SQL statement executer.
|
StatementExecutor |
DatabaseConnections.next()
Take StatementExecutor by round-robin, It's practical when had multi connections.
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
DatabaseConnection.connectIf(java.util.function.Consumer<StatementExecutor> executor)
If database connection connected return
StatementExecutor. |
void |
OnceDatabaseFactory.getAndClose(java.util.function.Consumer<StatementExecutor> comsumer)
Get once database connection, It will be close after use.
|