public class JdbcExecutor.Transaction
extends java.lang.Object
Constructor and Description |
---|
Transaction(StatementFactory factory) |
Modifier and Type | Method and Description |
---|---|
RecordCursor |
executeQuery(java.lang.String sql)
Execute a query SQL using a batch.
|
int |
executeUpdate(java.lang.String sql)
Execute a SQL using a batch.
|
LastInsertId |
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.
|
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.
|
public Transaction(StatementFactory factory) throws java.sql.SQLException
java.sql.SQLException
public int executeUpdate(java.lang.String sql) throws RaSqlException
sql
- sqlRaSqlException
- RaSqlExceptionpublic LastInsertId insert(java.lang.String sql) throws RaSqlException
sql
- sqlRaSqlException
- RaSqlExceptionpublic RecordCursor executeQuery(java.lang.String sql) throws RaSqlException
sql
- sqlRaSqlException
- RaSqlExceptionpublic int prepareExecuteUpdate(Prepared prepared) throws RaConnectException, RaSqlException
prepared
- preparedRaConnectException
- RaConnectExceptionRaSqlException
- RaSqlExceptionpublic RecordCursor prepareExecuteQuery(Prepared prepared) throws RaConnectException, RaSqlException
prepared
- preparedRaConnectException
- RaConnectExceptionRaSqlException
- RaSqlException