Tabnine Logo
StdJDBCDelegate.closeStatement
Code IndexAdd Tabnine to your IDE (free)

How to use
closeStatement
method
in
org.quartz.impl.jdbcjobstore.StdJDBCDelegate

Best Java code snippets using org.quartz.impl.jdbcjobstore.StdJDBCDelegate.closeStatement (Showing top 20 results out of 315)

origin: quartz-scheduler/quartz

public int insertPausedTriggerGroup(Connection conn, String groupName)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(INSERT_PAUSED_TRIGGER_GROUP));
    ps.setString(1, groupName);
    int rows = ps.executeUpdate();
    return rows;
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public int deletePausedTriggerGroup(Connection conn, String groupName)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(DELETE_PAUSED_TRIGGER_GROUP));
    ps.setString(1, groupName);
    int rows = ps.executeUpdate();
    return rows;
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public int deleteAllPausedTriggerGroups(Connection conn)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(DELETE_PAUSED_TRIGGER_GROUPS));
    int rows = ps.executeUpdate();
    return rows;
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public int deleteSchedulerState(Connection conn, String theInstanceId)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(DELETE_SCHEDULER_STATE));
    ps.setString(1, theInstanceId);
    return ps.executeUpdate();
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public int deleteFiredTriggers(Connection conn, String theInstanceId)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(DELETE_INSTANCES_FIRED_TRIGGERS));
    ps.setString(1, theInstanceId);
    return ps.executeUpdate();
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public int deleteSchedulerState(Connection conn, String theInstanceId)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(DELETE_SCHEDULER_STATE));
    ps.setString(1, theInstanceId);
    return ps.executeUpdate();
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public int deleteAllPausedTriggerGroups(Connection conn)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(DELETE_PAUSED_TRIGGER_GROUPS));
    int rows = ps.executeUpdate();
    return rows;
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public int updateSchedulerState(Connection conn, String theInstanceId, long checkInTime)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(UPDATE_SCHEDULER_STATE));
    ps.setLong(1, checkInTime);
    ps.setString(2, theInstanceId);
  
    return ps.executeUpdate();
  } finally {
    closeStatement(ps);
  }
}
  
origin: quartz-scheduler/quartz

public int deleteFiredTriggers(Connection conn, String theInstanceId)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(DELETE_INSTANCES_FIRED_TRIGGERS));
    ps.setString(1, theInstanceId);
    return ps.executeUpdate();
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public int insertPausedTriggerGroup(Connection conn, String groupName)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(INSERT_PAUSED_TRIGGER_GROUP));
    ps.setString(1, groupName);
    int rows = ps.executeUpdate();
    return rows;
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public int deletePausedTriggerGroup(Connection conn, String groupName)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(DELETE_PAUSED_TRIGGER_GROUP));
    ps.setString(1, groupName);
    int rows = ps.executeUpdate();
    return rows;
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public int updateSchedulerState(Connection conn, String theInstanceId, long checkInTime)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(UPDATE_SCHEDULER_STATE));
    ps.setLong(1, checkInTime);
    ps.setString(2, theInstanceId);
  
    return ps.executeUpdate();
  } finally {
    closeStatement(ps);
  }
}
  
origin: quartz-scheduler/quartz

public int insertSchedulerState(Connection conn, String theInstanceId,
    long checkInTime, long interval)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(INSERT_SCHEDULER_STATE));
    ps.setString(1, theInstanceId);
    ps.setLong(2, checkInTime);
    ps.setLong(3, interval);
    return ps.executeUpdate();
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public int insertSchedulerState(Connection conn, String theInstanceId,
    long checkInTime, long interval)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(INSERT_SCHEDULER_STATE));
    ps.setString(1, theInstanceId);
    ps.setLong(2, checkInTime);
    ps.setLong(3, interval);
    return ps.executeUpdate();
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public int deletePausedTriggerGroup(Connection conn, GroupMatcher<TriggerKey> matcher)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(DELETE_PAUSED_TRIGGER_GROUP));
    ps.setString(1, toSqlLikeClause(matcher));
    int rows = ps.executeUpdate();
    return rows;
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public int deletePausedTriggerGroup(Connection conn, GroupMatcher<TriggerKey> matcher)
  throws SQLException {
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(DELETE_PAUSED_TRIGGER_GROUP));
    ps.setString(1, toSqlLikeClause(matcher));
    int rows = ps.executeUpdate();
    return rows;
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public boolean isTriggerGroupPaused(Connection conn, String groupName)
  throws SQLException {
  PreparedStatement ps = null;
  ResultSet rs = null;
  try {
    ps = conn.prepareStatement(rtp(SELECT_PAUSED_TRIGGER_GROUP));
    ps.setString(1, groupName);
    rs = ps.executeQuery();
    return rs.next();
  } finally {
    closeResultSet(rs);
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public boolean isTriggerGroupPaused(Connection conn, String groupName)
  throws SQLException {
  PreparedStatement ps = null;
  ResultSet rs = null;
  try {
    ps = conn.prepareStatement(rtp(SELECT_PAUSED_TRIGGER_GROUP));
    ps.setString(1, groupName);
    rs = ps.executeQuery();
    return rs.next();
  } finally {
    closeResultSet(rs);
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

public int selectJobExecutionCount(Connection conn, JobKey jobKey) throws SQLException {
  PreparedStatement ps = null;
  ResultSet rs = null;
  try {
    ps = conn.prepareStatement(rtp(SELECT_JOB_EXECUTION_COUNT));
    ps.setString(1, jobKey.getName());
    ps.setString(2, jobKey.getGroup());
    rs = ps.executeQuery();
    return (rs.next()) ? rs.getInt(1) : 0;
  } finally {
    closeResultSet(rs);
    closeStatement(ps);
  }
}

origin: quartz-scheduler/quartz

public int selectJobExecutionCount(Connection conn, JobKey jobKey) throws SQLException {
  PreparedStatement ps = null;
  ResultSet rs = null;
  try {
    ps = conn.prepareStatement(rtp(SELECT_JOB_EXECUTION_COUNT));
    ps.setString(1, jobKey.getName());
    ps.setString(2, jobKey.getGroup());
    rs = ps.executeQuery();
    return (rs.next()) ? rs.getInt(1) : 0;
  } finally {
    closeResultSet(rs);
    closeStatement(ps);
  }
}

org.quartz.impl.jdbcjobstoreStdJDBCDelegatecloseStatement

Javadoc

Cleanup helper method that closes the given Statement while ignoring any errors.

Popular methods of StdJDBCDelegate

  • canUseProperties
  • closeResultSet
    Cleanup helper method that closes the given ResultSet while ignoring any errors.
  • convertFromProperty
    convert the JobDataMap into a list of properties
  • convertToProperty
    convert the JobDataMap into a list of properties
  • getBoolean
    Retrieves the value of the designated column in the current row as a boolean. This just wraps Result
  • getKeyOfNonSerializableValue
    Find the key of the first non-serializable value in the given Map.
  • getMapFromProperties
    build Map from java.util.Properties encoding.
  • getObjectFromBlob
    This method should be overridden by any delegate subclasses that need special handling for BLOBs. T
  • rtp
    Replace the table prefix in a query by replacing any occurrences of "{0}" with the table prefix.
  • selectTrigger
    Select a trigger.
  • selectTriggerJobDataMap
    Select a trigger's JobDataMap.
  • serializeJobData
    Remove the transient data from and then create a serialized java.util.ByteArrayOutputStream versio
  • selectTriggerJobDataMap,
  • serializeJobData,
  • serializeObject,
  • serializeProperties,
  • setBoolean,
  • setBytes,
  • addDefaultTriggerPersistenceDelegates,
  • addTriggerPersistenceDelegate,
  • deleteBlobTrigger

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • getContentResolver (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Runner (org.openjdk.jmh.runner)
  • 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