public class HibernateEngine
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DB_DELETE |
static int |
DB_INSERT |
static int |
DB_UPDATE |
Modifier and Type | Method and Description |
---|---|
void |
configureSession(java.util.Properties props,
java.util.List<java.lang.Class> classes) |
void |
configureSession(java.lang.String dialect,
java.lang.String driver,
java.lang.String url,
java.lang.String username,
java.lang.String password,
java.util.List<java.lang.Class> classes) |
java.util.List |
execNamedQuery(java.lang.String namedQuery,
java.lang.String key) |
java.util.List |
execQuery(java.lang.String queryString) |
java.util.List |
execSQLQuery(java.lang.String queryString)
executes a Query object based on the sql string passed
|
int |
execUpdate(java.lang.String queryString) |
static HibernateEngine |
getInstance()
returns the current HibernateEngine instance
|
void |
initialise()
initialises hibernate and the required tables
|
public static final int DB_UPDATE
public static final int DB_DELETE
public static final int DB_INSERT
public static HibernateEngine getInstance()
public void initialise() throws org.hibernate.HibernateException
org.hibernate.HibernateException
public void configureSession(java.lang.String dialect, java.lang.String driver, java.lang.String url, java.lang.String username, java.lang.String password, java.util.List<java.lang.Class> classes) throws org.hibernate.HibernateException
org.hibernate.HibernateException
public void configureSession(java.util.Properties props, java.util.List<java.lang.Class> classes)
public java.util.List execSQLQuery(java.lang.String queryString) throws org.hibernate.HibernateException
queryString
- - the sql query to executeorg.hibernate.HibernateException
public java.util.List execQuery(java.lang.String queryString)
public java.util.List execNamedQuery(java.lang.String namedQuery, java.lang.String key) throws org.hibernate.HibernateException
org.hibernate.HibernateException
public int execUpdate(java.lang.String queryString) throws org.hibernate.HibernateException
org.hibernate.HibernateException
Copyright © 2004-2014 The YAWL Foundation.