|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.api.db.hibernate.HibernateUtil
public class HibernateUtil
This class holds common methods and utilities that are used across the hibernate related classes
Constructor Summary | |
---|---|
HibernateUtil()
|
Method Summary | |
---|---|
static java.lang.String |
escapeSqlWildcards(java.lang.String oldString,
java.sql.Connection connection)
Escapes all sql wildcards in the given string, returns the same string if it doesn't contain any sql wildcards |
static java.lang.String |
escapeSqlWildcards(java.lang.String oldString,
org.hibernate.SessionFactory sessionFactory)
|
static org.hibernate.dialect.Dialect |
getDialect(org.hibernate.SessionFactory sessionFactory)
Fetch the current Dialect of the given SessionFactory |
static boolean |
isHSQLDialect(org.hibernate.SessionFactory sessionFactory)
Check and cache whether the currect dialect is HSQL or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateUtil()
Method Detail |
---|
public static boolean isHSQLDialect(org.hibernate.SessionFactory sessionFactory)
sessionFactory
-
public static org.hibernate.dialect.Dialect getDialect(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- SessionFactory to pull the dialect from
public static java.lang.String escapeSqlWildcards(java.lang.String oldString, org.hibernate.SessionFactory sessionFactory)
escapeSqlWildcards(String, Connection)
public static java.lang.String escapeSqlWildcards(java.lang.String oldString, java.sql.Connection connection)
oldString
- the string in which to escape the sql wildcardsconnection
- The underlying database connection
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |