com.atlassian.confluence.upgrade
Class UpgradeUtils

java.lang.Object
  extended bycom.atlassian.confluence.upgrade.UpgradeUtils

public class UpgradeUtils
extends Object

Created by IntelliJ IDEA. User: Tomd Date: 31/01/2006 Time: 16:33:56 To change this template use File | Settings | File Templates.


Constructor Summary
UpgradeUtils()
           
 
Method Summary
static void createIndex(net.sf.hibernate.Session session, String indexName, String tableName, String columns, org.apache.log4j.Category log)
           
static void dropIndex(net.sf.hibernate.Session session, String indexName, String tableName, org.apache.log4j.Category log)
           
static void executeDdl(net.sf.hibernate.Session session, String sql, org.apache.log4j.Category log)
           
static boolean getExistingBooleanValue(String key)
           
static int getExistingIntegerValue(String key)
           
static String getExistingStringValue(String key)
           
static net.sf.hibernate.Session getSession()
           
static boolean isMSSQL()
           
static boolean isMySQL()
           
static boolean isSybase()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeUtils

public UpgradeUtils()
Method Detail

createIndex

public static void createIndex(net.sf.hibernate.Session session,
                               String indexName,
                               String tableName,
                               String columns,
                               org.apache.log4j.Category log)
                        throws net.sf.hibernate.HibernateException,
                               SQLException
Throws:
net.sf.hibernate.HibernateException
SQLException

executeDdl

public static void executeDdl(net.sf.hibernate.Session session,
                              String sql,
                              org.apache.log4j.Category log)
                       throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

getSession

public static net.sf.hibernate.Session getSession()

dropIndex

public static void dropIndex(net.sf.hibernate.Session session,
                             String indexName,
                             String tableName,
                             org.apache.log4j.Category log)
                      throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

isMySQL

public static boolean isMySQL()

isMSSQL

public static boolean isMSSQL()

isSybase

public static boolean isSybase()

getExistingStringValue

public static String getExistingStringValue(String key)

getExistingBooleanValue

public static boolean getExistingBooleanValue(String key)

getExistingIntegerValue

public static int getExistingIntegerValue(String key)


Confluence is developed by Atlassian.