Tabnine Logo
DriverDelegate.deleteCalendar
Code IndexAdd Tabnine to your IDE (free)

How to use
deleteCalendar
method
in
org.quartz.impl.jdbcjobstore.DriverDelegate

Best Java code snippets using org.quartz.impl.jdbcjobstore.DriverDelegate.deleteCalendar (Showing top 4 results out of 315)

origin: quartz-scheduler/quartz

protected boolean removeCalendar(Connection conn, 
    String calName) throws JobPersistenceException {
  try {
    if (getDelegate().calendarIsReferenced(conn, calName)) { 
      throw new JobPersistenceException(
        "Calender cannot be removed if it referenced by a trigger!"); 
    }
    if (!isClustered) {
      calendarCache.remove(calName);
    }
    return (getDelegate().deleteCalendar(conn, calName) > 0);
  } catch (SQLException e) {
    throw new JobPersistenceException("Couldn't remove calendar: "
        + e.getMessage(), e);
  }
}
origin: quartz-scheduler/quartz

protected boolean removeCalendar(Connection conn, 
    String calName) throws JobPersistenceException {
  try {
    if (getDelegate().calendarIsReferenced(conn, calName)) { 
      throw new JobPersistenceException(
        "Calender cannot be removed if it referenced by a trigger!"); 
    }
    if (!isClustered) {
      calendarCache.remove(calName);
    }
    return (getDelegate().deleteCalendar(conn, calName) > 0);
  } catch (SQLException e) {
    throw new JobPersistenceException("Couldn't remove calendar: "
        + e.getMessage(), e);
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

protected boolean removeCalendar(Connection conn, SchedulingContext ctxt,
    String calName) throws JobPersistenceException {
  try {
    if (getDelegate().calendarIsReferenced(conn, calName)) { 
      throw new JobPersistenceException(
        "Calender cannot be removed if it referenced by a trigger!"); 
    }
    if (isClustered == false) {
      calendarCache.remove(calName);
    }
    return (getDelegate().deleteCalendar(conn, calName) > 0);
  } catch (SQLException e) {
    throw new JobPersistenceException("Couldn't remove calendar: "
        + e.getMessage(), e);
  }
}
origin: quartz/quartz-all

protected boolean removeCalendar(Connection conn, SchedulingContext ctxt,
    String calName) throws JobPersistenceException {
  try {
    if (getDelegate().calendarIsReferenced(conn, calName)) { 
      throw new JobPersistenceException(
        "Calender cannot be removed if it referenced by a trigger!"); 
    }
    if (isClustered == false) {
      calendarCache.remove(calName);
    }
    return (getDelegate().deleteCalendar(conn, calName) > 0);
  } catch (SQLException e) {
    throw new JobPersistenceException("Couldn't remove calendar: "
        + e.getMessage(), e);
  }
}
org.quartz.impl.jdbcjobstoreDriverDelegatedeleteCalendar

Javadoc

Delete a calendar.

Popular methods of DriverDelegate

  • calendarExists
    Check whether or not a calendar exists.
  • calendarIsReferenced
    Check whether or not a calendar is referenced by any triggers.
  • deleteFiredTrigger
    Delete a fired trigger.
  • deleteFiredTriggers
    Delete all fired triggers of the given instance.
  • deleteJobDetail
    Delete the job detail record for the given job.
  • deletePausedTriggerGroup
  • deleteSchedulerState
    Delete a scheduler-instance state record.
  • deleteTrigger
    Delete the base trigger data for a trigger.
  • insertCalendar
    Insert a new calendar.
  • insertFiredTrigger
    Insert a fired trigger.
  • insertJobDetail
    Insert the job detail record.
  • insertPausedTriggerGroup
  • insertJobDetail,
  • insertPausedTriggerGroup,
  • insertSchedulerState,
  • insertTrigger,
  • isTriggerGroupPaused,
  • jobExists,
  • selectCalendar,
  • selectCalendars,
  • selectFiredTriggerInstanceNames

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Reference (javax.naming)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now