HibernateDdlExecutor
and associated
DdlCommand
s, or HibernateConfig
if your code still needs to know which DB type its using.@Deprecated public class UpgradeUtils extends Object
Constructor and Description |
---|
UpgradeUtils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
createIndex(net.sf.hibernate.Session session,
String indexName,
String tableName,
String columns,
org.slf4j.Logger log)
Deprecated.
|
static void |
dropIndex(net.sf.hibernate.Session session,
String indexName,
String tableName,
org.slf4j.Logger log)
Deprecated.
|
static void |
executeDdl(net.sf.hibernate.Session session,
String sql,
org.slf4j.Logger log)
Deprecated.
|
static boolean |
getExistingBooleanValue(String key)
Deprecated.
|
static int |
getExistingIntegerValue(String key)
Deprecated.
|
static String |
getExistingStringValue(String key)
Deprecated.
|
static net.sf.hibernate.Session |
getSession()
Deprecated.
|
static boolean |
isDB2()
Deprecated.
|
static boolean |
isHSQLDB()
Deprecated.
|
static boolean |
isMSSQL()
Deprecated.
since 3.5.8 because it is too close to isMySQL. Use
isSqlServer() instead |
static boolean |
isMySQL()
Deprecated.
|
static boolean |
isOracle()
Deprecated.
|
static boolean |
isSqlServer()
Deprecated.
|
static boolean |
isSybase()
Deprecated.
|
static String |
substituteBoolean(String sqlString)
Deprecated.
Returns the converted SQL string with booleans converted from True or false
to 1 or 0 respectively based on the isSubstituteBoolean() method that looks for databases which
require the boolean values as 1 or 0.
|
public static void createIndex(net.sf.hibernate.Session session, String indexName, String tableName, String columns, org.slf4j.Logger log) throws net.sf.hibernate.HibernateException, SQLException
net.sf.hibernate.HibernateException
SQLException
public static void executeDdl(net.sf.hibernate.Session session, String sql, org.slf4j.Logger log) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public static net.sf.hibernate.Session getSession()
public static void dropIndex(net.sf.hibernate.Session session, String indexName, String tableName, org.slf4j.Logger log) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public static boolean isMySQL()
@Deprecated public static boolean isMSSQL()
isSqlServer()
insteadpublic static boolean isSqlServer()
@Deprecated public static boolean isSybase()
public static boolean isOracle()
@Deprecated public static boolean isDB2()
public static boolean isHSQLDB()
public static boolean getExistingBooleanValue(String key)
public static int getExistingIntegerValue(String key)
public static String substituteBoolean(String sqlString)
If the database requires does not require boolean substitution, then the original sql string will be returned unmodified.
sqlString
- the raw sql query stringsubstituteBoolean(String)
Copyright © 2003–2016 Atlassian. All rights reserved.