public class ScriptIf
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.sql.Connection |
_dbConnection
The _db connection.
|
protected org.apache.log4j.Logger |
_logger
The _logger.
|
private static java.lang.String |
PROP_FILE
The Constant PROP_FILE.
|
Constructor and Description |
---|
ScriptIf()
Instantiates a new script if.
|
Modifier and Type | Method and Description |
---|---|
private java.sql.Connection |
getDBConnection()
Gets the DB connection.
|
private void |
initDBConnection()
Inits the db connection.
|
static void |
main(java.lang.String[] args)
The main method.
|
java.lang.Boolean |
runPythonScript(java.lang.String scriptName)
run python script store in visibility_scripting database.
|
protected org.apache.log4j.Logger _logger
private static final java.lang.String PROP_FILE
private java.sql.Connection _dbConnection
private void initDBConnection() throws java.sql.SQLException
java.sql.SQLException
- the SQL exceptionprivate java.sql.Connection getDBConnection() throws java.sql.SQLException
java.sql.SQLException
- the SQL exceptionpublic java.lang.Boolean runPythonScript(java.lang.String scriptName)
scriptName
- the script namepublic static void main(java.lang.String[] args)
args
- the arguments