|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.upgrade.UpgradeUtils
HibernateDdlExecutor
and associated
DdlCommand
s, or HibernateConfig
if your code still needs to know which DB type its using.
@Deprecated public class UpgradeUtils
Constructor Summary | |
---|---|
UpgradeUtils()
Deprecated. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpgradeUtils()
Method Detail |
---|
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()
instead
public static boolean isSqlServer()
public static boolean isSybase()
public static boolean isOracle()
public static boolean isDB2()
public static boolean isHSQLDB()
public static String getExistingStringValue(String key)
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 string
substituteBoolean(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |