org.gcube.contentmanagement.lexicalmatcher.utils
Class DatabaseFactory
java.lang.Object
org.gcube.contentmanagement.lexicalmatcher.utils.DatabaseFactory
public class DatabaseFactory
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseFactory
public DatabaseFactory()
initDBConnection
public static org.hibernate.SessionFactory initDBConnection(String configurationFile)
throws Exception
- Throws:
Exception
initDBConnection
public static org.hibernate.SessionFactory initDBConnection(String configurationFile,
LexicalEngineConfiguration config)
throws Exception
- Throws:
Exception
executeHQLQuery
public static List<Object> executeHQLQuery(String query,
org.hibernate.SessionFactory DBSessionFactory,
boolean useSQL)
executeHQLUpdate
public static void executeHQLUpdate(String query,
org.hibernate.SessionFactory DBSessionFactory,
boolean useSQL)
executeSQLUpdate
public static void executeSQLUpdate(String query,
org.hibernate.SessionFactory DBSessionFactory)
executeSQLQuery
public static List<Object> executeSQLQuery(String query,
org.hibernate.SessionFactory DBSessionFactory)
rollback
public static void rollback(org.hibernate.Session ss)
saveObject
public static void saveObject(Object obj,
org.hibernate.SessionFactory DBSessionFactory)
throws Exception
- Throws:
Exception
Copyright © 2012. All Rights Reserved.