public interface StatementExecutor
Modifier and Type | Method and Description |
---|---|
RecordCursor |
executeQuery(java.lang.String sql)
Executes the given SQL statement, which returns a single RecordCursor object.
|
void |
executeTransaction(TransactionExecutor executor)
Execute SQL statements.
|
int |
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.
|
LastInsertId |
insert(java.lang.String sql)
Return the last id after executing SQL statement.
|
boolean |
isLive()
Returns database state whether available.
|
RecordCursor |
prepareExecuteQuery(Prepared prepared)
A SQL statement is precompiled and stored in a Prepared object.
|
int |
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 |
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.
|
boolean isLive()
int executeUpdate(java.lang.String sql) throws RaConnectException, RaSqlException
sql
- SQL statementRaConnectException
RaSqlException
int tryExecuteUpdate(java.lang.String sql) throws RaConnectException, RaSqlException
sql
- SQL statementRaConnectException
RaSqlException
void executeTransaction(TransactionExecutor executor) throws RaConnectException, RaSqlException
executor
- executorRaConnectException
- RaConnectExceptionRaSqlException
- RaSqlExceptionLastInsertId insert(java.lang.String sql) throws RaConnectException, RaSqlException
sql
- SQL statementRaConnectException
RaSqlException
RecordCursor executeQuery(java.lang.String sql) throws RaConnectException, RaSqlException
sql
- SQL statementRaConnectException
RaSqlException
int prepareExecuteUpdate(Prepared prepared) throws RaConnectException, RaSqlException
prepared
- preparedRaConnectException
- RaConnectExceptionRaSqlException
- RaSqlExceptionRecordCursor prepareExecuteQuery(Prepared prepared) throws RaConnectException, RaSqlException
prepared
- preparedRaConnectException
- RaConnectExceptionRaSqlException
- RaSqlException