public class ExecuteQueryJob extends JobDef
log
Constructor and Description |
---|
ExecuteQueryJob() |
Modifier and Type | Method and Description |
---|---|
void |
configure() |
void |
execute()
Actual implementation of the
IJob . |
void |
setDatasourceName(String datasourceName)
JNDI name of datasource to be used
|
void |
setJmsRealm(String jmsRealm)
Deprecated.
|
void |
setQuery(String query)
The SQL query text to be executed
|
void |
setQueryTimeout(int i)
The number of seconds the database driver will wait for a statement to execute.
|
beforeExecuteJob, decrementCountThreads, executeJob, getIbisManager, getJobDetail, getLogPrefix, getMessageKeeper, getStatisticsKeeper, incrementCountThreads, setCronExpression, setDescription, setInterval, setJobGroup, setLocker, setMessageKeeperSize, setName, setNumThreads, toString
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCronExpression, getInterval, getJobGroup, getLocker, getName, isConfigured
getApplicationContext
getConfigurationClassLoader
setApplicationContext
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttribute
public void configure() throws ConfigurationException
configure
in interface IConfigurable
configure
in class JobDef
ConfigurationException
public void execute() throws JobExecutionException, TimeoutException
IJob
IJob
. Is wrapped around a Locker
, exceptions
and statistics
will be managed automatically.JobExecutionException
- when the implementation fails to executeTimeoutException
- when the TransactionTimeout has been reachedpublic void setQuery(String query)
@Deprecated @ConfigurationWarning(value="Please configure a datasourceName instead") public void setJmsRealm(String jmsRealm)
public void setDatasourceName(String datasourceName)
public void setQueryTimeout(int i)
Copyright © 2023 Frank!Framework. All rights reserved.