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(org.hibernate.Session session,
String indexName,
String tableName,
String columns,
org.slf4j.Logger log)
Deprecated.
|
static void |
dropIndex(org.hibernate.Session session,
String indexName,
String tableName,
org.slf4j.Logger log)
Deprecated.
|
static void |
executeDdl(org.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 org.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 |
isPostgres()
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(org.hibernate.Session session, String indexName, String tableName, String columns, org.slf4j.Logger log) throws SQLException
SQLException
public static void executeDdl(org.hibernate.Session session, String sql, org.slf4j.Logger log)
public static org.hibernate.Session getSession()
public static void dropIndex(org.hibernate.Session session, String indexName, String tableName, org.slf4j.Logger log)
public static boolean isMySQL()
@Deprecated public static boolean isMSSQL()
isSqlServer()
insteadpublic static boolean isSqlServer()
@Deprecated public static boolean isSybase()
public static boolean isOracle()
public static boolean isPostgres()
@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–2017 Atlassian. All rights reserved.