com.raritantechnologies.searchApp.database
Class ExecuteStatementsProcess
java.lang.Object
com.raritantechnologies.searchApp.database.ExecuteStatementsProcess
- All Implemented Interfaces:
- IConfigurable, IJobProcess
- public class ExecuteStatementsProcess
- extends java.lang.Object
- implements IJobProcess
Executes a set of SQL statements. Can be used to prepare a database for another process
such as creating or clearing tables etc.
XML Configuration Template:
<JobProcess processClass="com.raritantechnologies.searchApp.database.ExecuteStatementsProcess"
connectionManager="[ name of ConnectionManager instance ]"
dateFormat="[ date format for DATE values ]" >
<!-- One or more Statement elements containing a SQL template: If the template -->
<!-- contains {ARG NAME} Sections, replace the value with the value from the args list -->
<Statement>
<!-- The SQL statement here... -->
</Statement>
</JobProcess>
Developed by
Raritan Technologies .
- Author:
- Ted Sullivan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExecuteStatementsProcess
public ExecuteStatementsProcess()
ExecuteStatementsProcess
public ExecuteStatementsProcess(IDatabaseConnectionManager connMan)
executeJob
public void executeJob(java.lang.String[] args)
- Specified by:
executeJob in interface IJobProcess
executeJob
public void executeJob(RaritanPageContext rpc)
- Specified by:
executeJob in interface IJobProcess
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IConfigurable
- Initializes the object from an XML tag or element.
This method is called by the Framework as part of the application initializtion.
see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory.
Configurable objects that are owned or contained by other configurable objects will be initialized
in by the parent object.
- Specified by:
initialize in interface IJobProcess
setConnectionManagerName
public void setConnectionManagerName(java.lang.String connectionManagerName)
setConnectionManager
public void setConnectionManager(IDatabaseConnectionManager connMan)
addSQLStatement
public void addSQLStatement(java.lang.String sqlStatement)
getConfigurationXML
public java.lang.String getConfigurationXML()
- Specified by:
getConfigurationXML in interface IJobProcess