Class CleanupDatabaseJob

All Implemented Interfaces:
HasTransactionAttribute, IConfigurable, IConfigurationAware, INamedObject, IScopeProvider, IJob, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class CleanupDatabaseJob extends JobDef
  • Constructor Details

    • CleanupDatabaseJob

      public CleanupDatabaseJob()
  • Method Details

    • beforeExecuteJob

      public boolean beforeExecuteJob()
      Description copied from class: JobDef
      Called before executeJob to prepare resources for executeJob method. Returns false if job does not need to run
      beforeExecuteJob in class JobDef
    • execute

      public void execute()
      Description copied from interface: IJob
      Actual implementation of the IJob. Is wrapped around a Locker and exceptions will be managed automatically.
    • getAllLockerDatasourceNames

      protected Set<String> getAllLockerDatasourceNames()
      Locate all Lockers, and find out which datasources are used.
      distinct list of all datasourceNames used by lockers
    • getAllMessageLogs

      protected List<org.frankframework.scheduler.job.CleanupDatabaseJob.MessageLogObject> getAllMessageLogs()
    • 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
    • getCleanUpIbisstoreQuery

      public String getCleanUpIbisstoreQuery(String tableName, String keyField, String typeField, String expiryDateField, int maxRows, Dbms dbmsName)
    • getQueryTimeout

      public int getQueryTimeout()