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 |
isHSQLDB()
Deprecated.
|
static boolean |
isMySQL()
Deprecated.
|
static boolean |
isOracle()
Deprecated.
|
static boolean |
isPostgres()
Deprecated.
|
static boolean |
isSqlServer()
Deprecated.
|
static String |
substituteBoolean(String sqlString)
Deprecated.
|
@Deprecated 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
@Deprecated public static void executeDdl(net.sf.hibernate.Session session, String sql, org.slf4j.Logger log) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
@Deprecated public static net.sf.hibernate.Session getSession()
@Deprecated 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
@Deprecated public static boolean isMySQL()
@Deprecated public static boolean isSqlServer()
@Deprecated public static boolean isOracle()
@Deprecated public static boolean isPostgres()
@Deprecated public static boolean isHSQLDB()
@Deprecated public static String getExistingStringValue(String key)
@Deprecated public static boolean getExistingBooleanValue(String key)
@Deprecated public static int getExistingIntegerValue(String key)
@Deprecated 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.