com.googlecode.jpattern.orm.session.datasource
Class DataSourceSession
java.lang.Object
com.googlecode.jpattern.orm.session.ASession
com.googlecode.jpattern.orm.session.datasource.DataSourceSession
- All Implemented Interfaces:
- ISession, ISessionSqlPerformer
public class DataSourceSession
- extends ASession
- Author:
- Francesco Cina
21/mag/2011
| 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 |
DataSourceSession
public DataSourceSession(DataSource dataSource,
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.