edu.internet2.middleware.grouper.app.gsh
Class sqlRun
java.lang.Object
edu.internet2.middleware.grouper.app.gsh.sqlRun
public class sqlRun
- extends java.lang.Object
Run a sql script against DB (like ant does it)
- Since:
- 0.0.1
- Version:
- $Id: sqlRun.java,v 1.3 2008-11-13 20:26:10 mchyzer Exp $
- Author:
- Chris Hyzer
Method Summary |
static void |
invoke(bsh.Interpreter interpreter,
bsh.CallStack stack,
java.io.File scriptFile)
Create tables and init schema (depending on configuration in grouper.properties)
|
static int |
invoke(bsh.Interpreter interpreter,
bsh.CallStack stack,
java.lang.String sql)
Executes an SQL statement. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sqlRun
public sqlRun()
invoke
public static void invoke(bsh.Interpreter interpreter,
bsh.CallStack stack,
java.io.File scriptFile)
- Create tables and init schema (depending on configuration in grouper.properties)
- Parameters:
interpreter
- BeanShell interpreter.stack
- BeanShell call stack.scriptFile
- - Since:
- 0.0.1
invoke
public static int invoke(bsh.Interpreter interpreter,
bsh.CallStack stack,
java.lang.String sql)
throws GrouperShellException
- Executes an SQL statement.
- Parameters:
interpreter
- BeanShell interpreter.stack
- BeanShell call stack.sql
-
- Returns:
- int The number of updates made.
- Throws:
GrouperShellException
- Since:
- 0.0.1