public class HibernateUtil extends Object
Constructor and Description |
---|
HibernateUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
escapeSqlWildcards(String oldString,
Connection connection)
Escapes all sql wildcards in the given string, returns the same string if it doesn't contain
any sql wildcards
|
static String |
escapeSqlWildcards(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.
|
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 frompublic static String escapeSqlWildcards(String oldString, org.hibernate.SessionFactory sessionFactory)
escapeSqlWildcards(String, Connection)
public static String escapeSqlWildcards(String oldString, Connection connection)
oldString
- the string in which to escape the sql wildcardsconnection
- The underlying database connectionCopyright © 2018 OpenMRS LLC.. All Rights Reserved.