Package org.frankframework.scheduler.job
Class ExecuteQueryJob
java.lang.Object
org.frankframework.core.TransactionAttributes
org.frankframework.scheduler.AbstractJobDef
org.frankframework.scheduler.job.ExecuteQueryJob
- All Implemented Interfaces:
FrankElement,HasApplicationContext,HasName,HasTransactionAttribute,IConfigurable,IScopeProvider,NameAware,ConfigurableLifecycle,IJob,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
Scheduled job to execute JDBC Queries using a
FixedQuerySender.
-
Field Summary
Fields inherited from class org.frankframework.core.TransactionAttributes
logFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure this component.voidexecute()Is wrapped around aLockerandexceptionswill be managed automatically.voidsetDatasourceName(String datasourceName) JNDI name of datasource to be used.voidThe SQL query text to be executed.voidsetQueryTimeout(int i) The number of seconds the database driver will wait for a statement to execute.Methods inherited from class org.frankframework.scheduler.AbstractJobDef
beforeExecuteJob, decrementCountThreads, executeJob, getIbisManager, getJobDetail, getMessageKeeper, incrementCountThreads, isRunning, setCronExpression, setDescription, setInterval, setJobGroup, setLocker, setMessageKeeperSize, setName, setNumThreads, start, stop, toStringMethods inherited from class org.frankframework.core.TransactionAttributes
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.lifecycle.ConfigurableLifecycle
getPhase, isAutoStartupMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface org.frankframework.core.HasTransactionAttribute
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttributeMethods inherited from interface org.frankframework.scheduler.job.IJob
getCronExpression, getInterval, getJobGroup, getLocker, getName, isConfiguredMethods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Constructor Details
-
ExecuteQueryJob
public ExecuteQueryJob()
-
-
Method Details
-
configure
Description copied from interface:IConfigurableConfigure this component.configure()is called once at startup of the framework in the configure method of the owner of thisIConfigurable. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in theconfigure(), to improve performance.In the case of a container, this will propagate the configure signal to all components that apply.
- Specified by:
configurein interfaceIConfigurable- Overrides:
configurein classAbstractJobDef- Throws:
ConfigurationException- in case it was not able to configure the component.
-
execute
Description copied from class:AbstractJobDefIs wrapped around aLockerandexceptionswill be managed automatically.- Specified by:
executein classAbstractJobDef- Throws:
JobExecutionException- when the implementation fails to executeTimeoutException- when the TransactionTimeout has been reached
-
setQuery
The SQL query text to be executed. -
setDatasourceName
JNDI name of datasource to be used.- Default value
- "jdbc.datasource.default"
-
setQueryTimeout
public void setQueryTimeout(int i) The number of seconds the database driver will wait for a statement to execute. If the limit is exceeded, a TimeoutException is thrown. 0 means no timeout- Default value
- 0
-