Class MSSQLDelegate

    • Constructor Detail

      • MSSQLDelegate

        public MSSQLDelegate()
    • Method Detail

      • getObjectFromBlob

        protected java.lang.Object getObjectFromBlob​(java.sql.ResultSet rs,
                                                     java.lang.String colName)
                                              throws java.lang.ClassNotFoundException,
                                                     java.io.IOException,
                                                     java.sql.SQLException

        This method should be overridden by any delegate subclasses that need special handling for BLOBs. The default implementation uses standard JDBC java.sql.Blob operations.

        Overrides:
        getObjectFromBlob in class StdJDBCDelegate
        Parameters:
        rs - the result set, already queued to the correct row
        colName - the column name for the BLOB
        Returns:
        the deserialized Object from the ResultSet BLOB
        Throws:
        java.lang.ClassNotFoundException - if a class found during deserialization cannot be found
        java.io.IOException - if deserialization causes an error
        java.sql.SQLException
      • getJobDataFromBlob

        protected java.lang.Object getJobDataFromBlob​(java.sql.ResultSet rs,
                                                      java.lang.String colName)
                                               throws java.lang.ClassNotFoundException,
                                                      java.io.IOException,
                                                      java.sql.SQLException
        Description copied from class: StdJDBCDelegate

        This method should be overridden by any delegate subclasses that need special handling for BLOBs for job details. The default implementation uses standard JDBC java.sql.Blob operations.

        Overrides:
        getJobDataFromBlob in class StdJDBCDelegate
        Parameters:
        rs - the result set, already queued to the correct row
        colName - the column name for the BLOB
        Returns:
        the deserialized Object from the ResultSet BLOB
        Throws:
        java.lang.ClassNotFoundException - if a class found during deserialization cannot be found
        java.io.IOException - if deserialization causes an error
        java.sql.SQLException
      • selectTriggerToAcquire

        public java.util.List<TriggerKey> selectTriggerToAcquire​(java.sql.Connection conn,
                                                                 long noLaterThan,
                                                                 long noEarlierThan,
                                                                 int maxCount)
                                                          throws java.sql.SQLException
        Description copied from class: StdJDBCDelegate

        Select the next trigger which will fire to fire between the two given timestamps in ascending order of fire time, and then descending by priority.

        Specified by:
        selectTriggerToAcquire in interface DriverDelegate
        Overrides:
        selectTriggerToAcquire in class StdJDBCDelegate
        Parameters:
        conn - the DB Connection
        noLaterThan - highest value of getNextFireTime() of the triggers (exclusive)
        noEarlierThan - highest value of getNextFireTime() of the triggers (inclusive)
        maxCount - maximum number of trigger keys allow to acquired in the returning list.
        Returns:
        A (never null, possibly empty) list of the identifiers (Key objects) of the next triggers to be fired.
        Throws:
        java.sql.SQLException