public interface SqlSession
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.
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getName()
The name of the database related to this session.
|
SqlQuery createSqlQuery(String queryString) throws SqlProcessorException
SqlQuery, which is a wrapper around the SQL query command.queryString - the SQL query commandSqlProcessorException - in the case of any problem in ORM or JDBC stackint[] executeBatch(String[] statements) throws SqlProcessorException
statements - SQL statements to be executed in batchSqlProcessorException - in the case of any problem in ORM or JDBC stackString getName()
Copyright © 2014. All Rights Reserved.