Class OracleDelegate

    • Field Detail

      • INSERT_ORACLE_JOB_DETAIL

        public static final java.lang.String INSERT_ORACLE_JOB_DETAIL
        See Also:
        Constant Field Values
      • UPDATE_ORACLE_JOB_DETAIL

        public static final java.lang.String UPDATE_ORACLE_JOB_DETAIL
        See Also:
        Constant Field Values
      • UPDATE_ORACLE_JOB_DETAIL_BLOB

        public static final java.lang.String UPDATE_ORACLE_JOB_DETAIL_BLOB
        See Also:
        Constant Field Values
      • SELECT_ORACLE_JOB_DETAIL_BLOB

        public static final java.lang.String SELECT_ORACLE_JOB_DETAIL_BLOB
        See Also:
        Constant Field Values
      • UPDATE_ORACLE_TRIGGER

        public static final java.lang.String UPDATE_ORACLE_TRIGGER
        See Also:
        Constant Field Values
      • SELECT_ORACLE_TRIGGER_JOB_DETAIL_BLOB

        public static final java.lang.String SELECT_ORACLE_TRIGGER_JOB_DETAIL_BLOB
        See Also:
        Constant Field Values
      • UPDATE_ORACLE_TRIGGER_JOB_DETAIL_BLOB

        public static final java.lang.String UPDATE_ORACLE_TRIGGER_JOB_DETAIL_BLOB
        See Also:
        Constant Field Values
      • UPDATE_ORACLE_TRIGGER_JOB_DETAIL_EMPTY_BLOB

        public static final java.lang.String UPDATE_ORACLE_TRIGGER_JOB_DETAIL_EMPTY_BLOB
        See Also:
        Constant Field Values
      • INSERT_ORACLE_CALENDAR

        public static final java.lang.String INSERT_ORACLE_CALENDAR
        See Also:
        Constant Field Values
      • SELECT_ORACLE_CALENDAR_BLOB

        public static final java.lang.String SELECT_ORACLE_CALENDAR_BLOB
        See Also:
        Constant Field Values
      • UPDATE_ORACLE_CALENDAR_BLOB

        public static final java.lang.String UPDATE_ORACLE_CALENDAR_BLOB
        See Also:
        Constant Field Values
    • Constructor Detail

      • OracleDelegate

        public OracleDelegate()
    • 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
        Description copied from class: StdJDBCDelegate

        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
      • insertJobDetail

        public int insertJobDetail​(java.sql.Connection conn,
                                   JobDetail job)
                            throws java.io.IOException,
                                   java.sql.SQLException
        Description copied from class: StdJDBCDelegate

        Insert the job detail record.

        Specified by:
        insertJobDetail in interface DriverDelegate
        Overrides:
        insertJobDetail in class StdJDBCDelegate
        Parameters:
        conn - the DB Connection
        job - the job to insert
        Returns:
        number of rows inserted
        Throws:
        java.io.IOException - if there were problems serializing the JobDataMap
        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
      • updateJobDetail

        public int updateJobDetail​(java.sql.Connection conn,
                                   JobDetail job)
                            throws java.io.IOException,
                                   java.sql.SQLException
        Description copied from class: StdJDBCDelegate

        Update the job detail record.

        Specified by:
        updateJobDetail in interface DriverDelegate
        Overrides:
        updateJobDetail in class StdJDBCDelegate
        Parameters:
        conn - the DB Connection
        job - the job to update
        Returns:
        number of rows updated
        Throws:
        java.io.IOException - if there were problems serializing the JobDataMap
        java.sql.SQLException
      • insertTrigger

        public int insertTrigger​(java.sql.Connection conn,
                                 OperableTrigger trigger,
                                 java.lang.String state,
                                 JobDetail jobDetail)
                          throws java.sql.SQLException,
                                 java.io.IOException
        Description copied from class: StdJDBCDelegate

        Insert the base trigger data.

        Specified by:
        insertTrigger in interface DriverDelegate
        Overrides:
        insertTrigger in class StdJDBCDelegate
        Parameters:
        conn - the DB Connection
        trigger - the trigger to insert
        state - the state that the trigger should be stored in
        Returns:
        the number of rows inserted
        Throws:
        java.sql.SQLException
        java.io.IOException
      • updateTrigger

        public int updateTrigger​(java.sql.Connection conn,
                                 OperableTrigger trigger,
                                 java.lang.String state,
                                 JobDetail jobDetail)
                          throws java.sql.SQLException,
                                 java.io.IOException
        Description copied from class: StdJDBCDelegate

        Update the base trigger data.

        Specified by:
        updateTrigger in interface DriverDelegate
        Overrides:
        updateTrigger in class StdJDBCDelegate
        Parameters:
        conn - the DB Connection
        trigger - the trigger to insert
        state - the state that the trigger should be stored in
        Returns:
        the number of rows updated
        Throws:
        java.sql.SQLException
        java.io.IOException
      • insertCalendar

        public int insertCalendar​(java.sql.Connection conn,
                                  java.lang.String calendarName,
                                  Calendar calendar)
                           throws java.io.IOException,
                                  java.sql.SQLException
        Description copied from class: StdJDBCDelegate

        Insert a new calendar.

        Specified by:
        insertCalendar in interface DriverDelegate
        Overrides:
        insertCalendar in class StdJDBCDelegate
        Parameters:
        conn - the DB Connection
        calendarName - the name for the new calendar
        calendar - the calendar
        Returns:
        the number of rows inserted
        Throws:
        java.io.IOException - if there were problems serializing the calendar
        java.sql.SQLException
      • updateCalendar

        public int updateCalendar​(java.sql.Connection conn,
                                  java.lang.String calendarName,
                                  Calendar calendar)
                           throws java.io.IOException,
                                  java.sql.SQLException
        Description copied from class: StdJDBCDelegate

        Update a calendar.

        Specified by:
        updateCalendar in interface DriverDelegate
        Overrides:
        updateCalendar in class StdJDBCDelegate
        Parameters:
        conn - the DB Connection
        calendarName - the name for the new calendar
        calendar - the calendar
        Returns:
        the number of rows updated
        Throws:
        java.io.IOException - if there were problems serializing the calendar
        java.sql.SQLException
      • updateJobData

        public int updateJobData​(java.sql.Connection conn,
                                 JobDetail job)
                          throws java.io.IOException,
                                 java.sql.SQLException
        Description copied from class: StdJDBCDelegate

        Update the job data map for the given job.

        Specified by:
        updateJobData in interface DriverDelegate
        Overrides:
        updateJobData in class StdJDBCDelegate
        Parameters:
        conn - the DB Connection
        job - the job to update
        Returns:
        the number of rows updated
        Throws:
        java.io.IOException - if there were problems serializing the JobDataMap
        java.sql.SQLException
      • writeDataToBlob

        protected java.sql.Blob writeDataToBlob​(java.sql.ResultSet rs,
                                                int column,
                                                byte[] data)
                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException