|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.HibernateUtil
public class HibernateUtil
This class collects most of the functionality we need for using Hibernate.
| Constructor Summary | |
|---|---|
HibernateUtil()
|
|
| Method Summary | |
|---|---|
static org.hibernate.dialect.Dialect |
getDialect()
Get the database dialect. |
static String |
quote(String value)
Quote a string with the default quote type for the current database engine. |
static boolean |
useThetaJoin(QueryType queryType)
Check if theta joins or ANSI joins are used by the database. |
| 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 org.hibernate.dialect.Dialect getDialect()
public static boolean useThetaJoin(QueryType queryType)
public static String quote(String value)
value --> `value`, and with
any ANSI-compatible database: value --> "value". This
method uses the Dialect.openQuote and
Dialect.closeQuote methods of the currently installed
Hibernate dialect.
value - The value to quote
getDialect()
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||