com.googlecode.jpattern.orm.session.jdbctemplate
Class JdbcTemplateSession
java.lang.Object
com.googlecode.jpattern.orm.session.ASession
com.googlecode.jpattern.orm.session.jdbctemplate.JdbcTemplateSession
- All Implemented Interfaces:
- ISession, ISessionSqlPerformer
public class JdbcTemplateSession
- extends ASession
- Author:
- Francesco Cina
15/giu/2011
|
Constructor Summary |
JdbcTemplateSession(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
org.springframework.transaction.PlatformTransactionManager platformTransactionManager,
IOrmClassToolMap ormClassToolMap)
|
| Methods inherited from class com.googlecode.jpattern.orm.session.ASession |
delete, delete, delete, delete, find, find, findQuery, findQuery, findQuery, findQuery, getOrmClassToolMap, save, save, scriptExecutor, sqlExecutor, update, update, update, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbcTemplateSession
public JdbcTemplateSession(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
org.springframework.transaction.PlatformTransactionManager platformTransactionManager,
IOrmClassToolMap ormClassToolMap)
beginTransaction
public ITransaction beginTransaction()
throws OrmException
- Description copied from interface:
ISession
- Open a new Transaction
- Returns:
-
- Throws:
OrmException
close
public void close()
throws OrmException
- Description copied from interface:
ISession
- Close the current session and release the connection to the database.
- Throws:
OrmException
sqlPerformer
public ISqlPerformer sqlPerformer()
throws OrmException
- Description copied from interface:
ISessionSqlPerformer
- Return an executor to perform plain sql queries.
- Returns:
-
- Throws:
OrmException
Copyright © 2011. All Rights Reserved.