Class JdbcCallJob

java.lang.Object
net.solarnetwork.central.scheduler.JobSupport
net.solarnetwork.central.common.job.JdbcCallJob
All Implemented Interfaces:
Runnable, ManagedJob
Direct Known Subclasses:
StaleRecordProcessor

public class JdbcCallJob extends JobSupport
Job to execute a stored procedure that returns a BIGINT result.
Since:
1.10
  • Constructor Details

    • JdbcCallJob

      public JdbcCallJob(org.springframework.jdbc.core.JdbcOperations jdbcOps)
      Construct with properties.
      Parameters:
      jdbcOps - the JdbcOperations to use
      Throws:
      IllegalArgumentException - if any argument is null
  • Method Details

    • run

      public void run()
    • getJdbcOps

      public org.springframework.jdbc.core.JdbcOperations getJdbcOps()
      Get the JDBC operations.
      Returns:
      the operations
    • getJdbcCall

      public String getJdbcCall()
      Get the JDBC call.
      Returns:
      the call
    • setJdbcCall

      public void setJdbcCall(String jdbcCall)
      Set the JDBC call.
      Parameters:
      jdbcCall - the call