public class JdbcExecutor extends java.lang.Object implements StatementExecutor
| Modifier and Type | Class and Description | 
|---|---|
| class  | JdbcExecutor.TransactionTransaction. | 
| Constructor and Description | 
|---|
| JdbcExecutor(DatabaseConnection db)Initialize. | 
| Modifier and Type | Method and Description | 
|---|---|
| Record | buildRecord()Returns instance of inheriting Record. | 
| RecordCursor | executeQuery(java.lang.String sql)Execute query, ex : SELECT * FROM table. | 
| void | executeTransaction(TransactionExecutor executor)Transaction. | 
| 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 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 | 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. | 
public JdbcExecutor(DatabaseConnection db)
db - database connection.public boolean isLive()
StatementExecutorisLive in interface StatementExecutorpublic int executeUpdate(java.lang.String sql)
                  throws RaConnectException,
                         RaSqlException
executeUpdate in interface StatementExecutorsql - SQL statementRaConnectExceptionRaSqlExceptionpublic int tryExecuteUpdate(java.lang.String sql)
                     throws RaConnectException,
                            RaSqlException
tryExecuteUpdate in interface StatementExecutorsql - SQL statementRaConnectExceptionRaSqlExceptionpublic int prepareExecuteUpdate(Prepared prepared) throws RaConnectException, RaSqlException
prepareExecuteUpdate in interface StatementExecutorprepared - preparedRaConnectException - RaConnectExceptionRaSqlException - RaSqlExceptionpublic RecordCursor prepareExecuteQuery(Prepared prepared) throws RaConnectException, RaSqlException
prepareExecuteQuery in interface StatementExecutorprepared - preparedRaConnectException - RaConnectExceptionRaSqlException - RaSqlExceptionpublic void executeTransaction(TransactionExecutor executor) throws RaConnectException, RaSqlException
executeTransaction in interface StatementExecutorexecutor - executorRaSqlException - RaSqlExceptionRaConnectException - RaConnectExceptionpublic LastInsertId insert(java.lang.String sql)
insert in interface StatementExecutorsql - SQL statementpublic RecordCursor executeQuery(java.lang.String sql) throws RaConnectException, RaSqlException
executeQuery in interface StatementExecutorsql - SQL statementRaConnectExceptionRaSqlExceptionpublic Record buildRecord()