@com.google.inject.ImplementedBy(DatabaseImpl.class) public interface Database extends DAO, java.io.Closeable
A class you can use to work with the database directly instead of creating a service. Useful for scheduled jobs and anything that happens outside the request/response lifecycle.
Type Params | Return Type | Name and description |
---|---|---|
|
public org.hibernate.Session |
getSession() Get the current Session from the SessionManager. |
Methods inherited from class | Name |
---|---|
interface DAO |
collection, createQuery, createQuery, createQuery |
interface java.io.Closeable |
java.io.Closeable#close() |
Get the current Session from the SessionManager. One will be created if it does not exist.