Class PointbaseDelegate

    • Constructor Detail

      • PointbaseDelegate

        public PointbaseDelegate()
    • Method Detail

      • insertJobDetail

        public int insertJobDetail​(java.sql.Connection conn,
                                   JobDetail job)
                            throws java.io.IOException,
                                   java.sql.SQLException

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

        public int updateJobDetail​(java.sql.Connection conn,
                                   JobDetail job)
                            throws java.io.IOException,
                                   java.sql.SQLException

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

        public int updateJobData​(java.sql.Connection conn,
                                 JobDetail job)
                          throws java.io.IOException,
                                 java.sql.SQLException

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

        public int insertCalendar​(java.sql.Connection conn,
                                  java.lang.String calendarName,
                                  Calendar calendar)
                           throws java.io.IOException,
                                  java.sql.SQLException

        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

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

        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