com.dbdeploy.database.changelog
Class QueryExecuter

java.lang.Object
  extended by com.dbdeploy.database.changelog.QueryExecuter

public class QueryExecuter
extends Object


Constructor Summary
QueryExecuter(String connectionString, String username, String password)
           
 
Method Summary
 void close()
           
 void commit()
           
 void execute(String sql)
           
 void execute(String sql, Object... params)
           
 ResultSet executeQuery(String sql)
           
 String getDatabaseUsername()
           
 void setAutoCommit(boolean autoCommitMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryExecuter

public QueryExecuter(String connectionString,
                     String username,
                     String password)
              throws SQLException
Throws:
SQLException
Method Detail

executeQuery

public ResultSet executeQuery(String sql)
                       throws SQLException
Throws:
SQLException

execute

public void execute(String sql)
             throws SQLException
Throws:
SQLException

execute

public void execute(String sql,
                    Object... params)
             throws SQLException
Throws:
SQLException

close

public void close()
           throws SQLException
Throws:
SQLException

setAutoCommit

public void setAutoCommit(boolean autoCommitMode)
                   throws SQLException
Throws:
SQLException

commit

public void commit()
            throws SQLException
Throws:
SQLException

getDatabaseUsername

public String getDatabaseUsername()


Copyright © 2011. All Rights Reserved.