com.googlecode.jpattern.orm.session
Class NullSession
java.lang.Object
com.googlecode.jpattern.orm.session.ASession
com.googlecode.jpattern.orm.session.NullSession
- All Implemented Interfaces:
- ISession, ISessionSqlPerformer
public class NullSession
- extends ASession
- Author:
- Francesco Cina
24/giu/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 |
NullSession
public NullSession()
NullSession
public NullSession(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.