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

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

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

origin: quartz-scheduler/quartz

protected Calendar retrieveCalendar(Connection conn,
    String calName)
  throws JobPersistenceException {
  // all calendars are persistent, but we can lazy-cache them during run
  // time as long as we aren't running clustered.
  Calendar cal = (isClustered) ? null : calendarCache.get(calName);
  if (cal != null) {
    return cal;
  }
  try {
    cal = getDelegate().selectCalendar(conn, calName);
    if (!isClustered) {
      calendarCache.put(calName, cal); // lazy-cache...
    }
    return cal;
  } catch (ClassNotFoundException e) {
    throw new JobPersistenceException(
        "Couldn't retrieve calendar because a required class was not found: "
            + e.getMessage(), e);
  } catch (IOException e) {
    throw new JobPersistenceException(
        "Couldn't retrieve calendar because the BLOB couldn't be deserialized: "
            + e.getMessage(), e);
  } catch (SQLException e) {
    throw new JobPersistenceException("Couldn't retrieve calendar: "
        + e.getMessage(), e);
  }
}
origin: quartz-scheduler/quartz

protected Calendar retrieveCalendar(Connection conn,
    String calName)
  throws JobPersistenceException {
  // all calendars are persistent, but we can lazy-cache them during run
  // time as long as we aren't running clustered.
  Calendar cal = (isClustered) ? null : calendarCache.get(calName);
  if (cal != null) {
    return cal;
  }
  try {
    cal = getDelegate().selectCalendar(conn, calName);
    if (!isClustered) {
      calendarCache.put(calName, cal); // lazy-cache...
    }
    return cal;
  } catch (ClassNotFoundException e) {
    throw new JobPersistenceException(
        "Couldn't retrieve calendar because a required class was not found: "
            + e.getMessage(), e);
  } catch (IOException e) {
    throw new JobPersistenceException(
        "Couldn't retrieve calendar because the BLOB couldn't be deserialized: "
            + e.getMessage(), e);
  } catch (SQLException e) {
    throw new JobPersistenceException("Couldn't retrieve calendar: "
        + e.getMessage(), e);
  }
}
origin: quartz/quartz-all

protected Calendar retrieveCalendar(Connection conn,
    SchedulingContext ctxt, String calName)
  throws JobPersistenceException {
  // all calendars are persistent, but we can lazy-cache them during run
  // time as long as we aren't running clustered.
  Calendar cal = (isClustered) ? null : (Calendar) calendarCache.get(calName);
  if (cal != null) {
    return cal;
  }
  try {
    cal = getDelegate().selectCalendar(conn, calName);
    if (isClustered == false) {
      calendarCache.put(calName, cal); // lazy-cache...
    }
    return cal;
  } catch (ClassNotFoundException e) {
    throw new JobPersistenceException(
        "Couldn't retrieve calendar because a required class was not found: "
            + e.getMessage(), e);
  } catch (IOException e) {
    throw new JobPersistenceException(
        "Couldn't retrieve calendar because the BLOB couldn't be deserialized: "
            + e.getMessage(), e);
  } catch (SQLException e) {
    throw new JobPersistenceException("Couldn't retrieve calendar: "
        + e.getMessage(), e);
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

protected Calendar retrieveCalendar(Connection conn,
    SchedulingContext ctxt, String calName)
  throws JobPersistenceException {
  // all calendars are persistent, but we can lazy-cache them during run
  // time as long as we aren't running clustered.
  Calendar cal = (isClustered) ? null : (Calendar) calendarCache.get(calName);
  if (cal != null) {
    return cal;
  }
  try {
    cal = getDelegate().selectCalendar(conn, calName);
    if (isClustered == false) {
      calendarCache.put(calName, cal); // lazy-cache...
    }
    return cal;
  } catch (ClassNotFoundException e) {
    throw new JobPersistenceException(
        "Couldn't retrieve calendar because a required class was not found: "
            + e.getMessage(), e);
  } catch (IOException e) {
    throw new JobPersistenceException(
        "Couldn't retrieve calendar because the BLOB couldn't be deserialized: "
            + e.getMessage(), e);
  } catch (SQLException e) {
    throw new JobPersistenceException("Couldn't retrieve calendar: "
        + e.getMessage(), e);
  }
}
org.quartz.impl.jdbcjobstoreDriverDelegateselectCalendar

Javadoc

Select 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.
  • 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.
  • insertFiredTrigger,
  • insertJobDetail,
  • insertPausedTriggerGroup,
  • insertSchedulerState,
  • insertTrigger,
  • isTriggerGroupPaused,
  • jobExists,
  • selectCalendars,
  • selectFiredTriggerInstanceNames

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Notification (javax.management)
  • From CI to AI: The AI layer in your organization
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