|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.jdbc.JdbcSimpleSession
public class JdbcSimpleSession
The JDBC stack implementation of the SQL Engine session contract. In fact it's a simple wrapper for the
Connection.
It's the first parameter to all primary methods in the SqlQueryEngine and SqlCrudEngine.
The primary contract is the method for the SqlQuery instance creation.
For more info please see the Tutorials.
| Field Summary | |
|---|---|
(package private) Connection |
connection
The connection to the database. |
| Constructor Summary | |
|---|---|
JdbcSimpleSession(Connection connection)
Creates a new instance. |
|
| 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. |
Connection |
getConnection()
Returns the internal connection to the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Connection connection
| Constructor Detail |
|---|
public JdbcSimpleSession(Connection connection)
connection - the connection to the database| Method Detail |
|---|
public Connection getConnection()
public SqlQuery createSqlQuery(String queryString)
throws SqlProcessorException
SqlQuery, which is a wrapper around the SQL query command.
createSqlQuery in interface SqlSessionqueryString - the SQL query command
SqlProcessorException - in the case of any problem in ORM or JDBC stack
public int[] executeBatch(String[] statements)
throws SqlProcessorException
executeBatch in interface SqlSessionstatements - 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 | |||||||||