|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.spring.SpringSimpleSession
public class SpringSimpleSession
The Spring stack implementation of the SQL Engine session contract. In fact it's a simple wrapper for the
JdbcTemplate.
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) org.springframework.jdbc.core.JdbcTemplate |
jdbcTemplate
The Spring JdbcTemplate, the central class for all Spring database operations. |
private String |
name
The name of the database related to this session. |
| Constructor Summary | |
|---|---|
SpringSimpleSession(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Creates a new instance. |
|
SpringSimpleSession(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
String name)
Creates a new instance. |
|
| Method Summary | |
|---|---|
SqlQuery |
createSqlQuery(String queryString)
|
int[] |
executeBatch(String[] statements)
|
org.springframework.jdbc.core.JdbcTemplate |
getJdbcTemplate()
Returns the internal Spring JdbcTemplate instance. |
String |
getName()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
private String name
| Constructor Detail |
|---|
public SpringSimpleSession(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
jdbcTemplate - the Spring JdbcTemplate instance
public SpringSimpleSession(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
String name)
jdbcTemplate - the Spring JdbcTemplate instancename - the name of the database| Method Detail |
|---|
public org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
public SqlQuery createSqlQuery(String queryString)
throws SqlProcessorException
createSqlQuery in interface SqlSessionSqlProcessorException
public int[] executeBatch(String[] statements)
throws SqlProcessorException
executeBatch in interface SqlSessionSqlProcessorExceptionpublic String getName()
getName in interface SqlSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||