com.atlassian.user.generic
Class DatabaseHelper

java.lang.Object
  extended by com.atlassian.user.generic.DatabaseHelper

public class DatabaseHelper
extends Object


Constructor Summary
DatabaseHelper()
           
 
Method Summary
 void deleteAllTables(DataSource dataSource)
           
 List<HashMap<Object,Object>> executeQuery(DataSource dataSource, String sql)
           
 void executeSQL(DataSource dataSource, String sql)
           
 List<String> getNonEmtpyTables(DataSource dataSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseHelper

public DatabaseHelper()
Method Detail

deleteAllTables

public void deleteAllTables(DataSource dataSource)
                     throws Exception
Throws:
Exception

executeSQL

public void executeSQL(DataSource dataSource,
                       String sql)
                throws Exception
Throws:
Exception

getNonEmtpyTables

public List<String> getNonEmtpyTables(DataSource dataSource)
                               throws Exception
Throws:
Exception

executeQuery

public List<HashMap<Object,Object>> executeQuery(DataSource dataSource,
                                                 String sql)
                                          throws Exception
Throws:
Exception


Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.