Package org.frankframework.scheduler.job
Class ExecuteQueryJob
java.lang.Object
org.frankframework.core.TransactionAttributes
org.frankframework.scheduler.JobDef
org.frankframework.scheduler.job.ExecuteQueryJob
- All Implemented Interfaces:
HasTransactionAttribute
,IConfigurable
,IConfigurationAware
,INamedObject
,IScopeProvider
,IJob
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
-
Field Summary
Fields inherited from class org.frankframework.core.TransactionAttributes
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
execute()
Actual implementation of theIJob
.getQuery()
int
void
setDatasourceName
(String datasourceName) JNDI name of datasource to be usedvoid
The SQL query text to be executedvoid
setQueryTimeout
(int i) The number of seconds the database driver will wait for a statement to execute.Methods inherited from class org.frankframework.scheduler.JobDef
beforeExecuteJob, decrementCountThreads, executeJob, getApplicationContext, getConfigurationClassLoader, getCronExpression, getDescription, getIbisManager, getInterval, getJobDetail, getJobGroup, getLocker, getLogPrefix, getMessageKeeper, getName, getNumThreads, incrementCountThreads, isConfigured, setApplicationContext, setConfigurationMetrics, setCronExpression, setDescription, setInterval, setJobGroup, setLocker, setMessageKeeperSize, setName, setNumThreads, toString
Methods inherited from class org.frankframework.core.TransactionAttributes
configureTransactionAttributes, getTransactionAttribute, getTransactionTimeout, getTxDef, isTransacted, isTransacted, setTransacted, setTransactionAttribute, setTransactionTimeout
-
Constructor Details
-
ExecuteQueryJob
public ExecuteQueryJob()
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceIConfigurable
- Overrides:
configure
in classJobDef
- Throws:
ConfigurationException
-
execute
Description copied from interface:IJob
Actual implementation of theIJob
. Is wrapped around aLocker
andexceptions
will be managed automatically.- 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
-
getQuery
-
getJmsRealm
-
getDatasourceName
-
getQueryTimeout
public int getQueryTimeout()
-