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

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

Best Java code snippets using org.quartz.impl.jdbcjobstore.DriverDelegate.calendarIsReferenced (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.jdbcjobstoreDriverDelegatecalendarIsReferenced

Javadoc

Check whether or not a calendar is referenced by any triggers.

Popular methods of DriverDelegate

  • calendarExists
    Check whether or not a calendar exists.
  • deleteCalendar
    Delete a calendar.
  • 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

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Top 12 Jupyter Notebook extensions
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