|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SqlSession
The SQL Engine session contract definition. In fact it's an adapter or a proxy to an internal stuff in one of the
stacks on top of which the SQL Processor works.
It's the first parameter to all primary methods in the SqlQueryEngine and SqlCrudEngine.
The implementation depends on the stack, on top of which the SQL Processor works. In this SQL Processor version the
next stacks can be used:
Connection instance.
The primary contract is the method for the SqlQuery instance creation.
For the concrete implementation please see for example JdbcSession or
JdbcSimpleSession.
For more info please see the Tutorials.
| Method Summary | |
|---|---|
SqlQuery |
createSqlQuery(String queryString)
Creates a new instance of SqlQuery, which is a wrapper around the SQL query command. |
int[] |
executeBatch(String[] statements)
Submits a batch of commands to the database for execution and if all commands execute successfully, returns an array of update counts. |
| Method Detail |
|---|
SqlQuery createSqlQuery(String queryString)
throws SqlProcessorException
SqlQuery, which is a wrapper around the SQL query command.
queryString - the SQL query command
SqlProcessorException - in the case of any problem in ORM or JDBC stack
int[] executeBatch(String[] statements)
throws SqlProcessorException
statements - SQL statements to be executed in batch
SqlProcessorException - in the case of any problem in ORM or JDBC stack
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||