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

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

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

origin: quartz-scheduler/quartz

/**
 * <p>
 * Update the job data map for the given job.
 * </p>
 * 
 * @param conn
 *          the DB Connection
 * @param job
 *          the job to update
 * @return the number of rows updated
 */
public int updateJobData(Connection conn, JobDetail job)
  throws IOException, SQLException {
  ByteArrayOutputStream baos = serializeJobData(job.getJobDataMap());
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(UPDATE_JOB_DATA));
    setBytes(ps, 1, baos);
    ps.setString(2, job.getKey().getName());
    ps.setString(3, job.getKey().getGroup());
    return ps.executeUpdate();
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

/**
 * <p>
 * Update the job data map for the given job.
 * </p>
 * 
 * @param conn
 *          the DB Connection
 * @param job
 *          the job to update
 * @return the number of rows updated
 */
public int updateJobData(Connection conn, JobDetail job)
  throws IOException, SQLException {
  ByteArrayOutputStream baos = serializeJobData(job.getJobDataMap());
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(UPDATE_JOB_DATA));
    setBytes(ps, 1, baos);
    ps.setString(2, job.getKey().getName());
    ps.setString(3, job.getKey().getGroup());
    return ps.executeUpdate();
  } finally {
    closeStatement(ps);
  }
}
origin: quartz-scheduler/quartz

baos = serializeJobData(trigger.getJobDataMap());
origin: quartz-scheduler/quartz

baos = serializeJobData(trigger.getJobDataMap());
origin: quartz-scheduler/quartz

ByteArrayOutputStream baos = null;
if(updateJobData) {
  baos = serializeJobData(trigger.getJobDataMap());
origin: quartz-scheduler/quartz

ByteArrayOutputStream baos = serializeJobData(job.getJobDataMap());
origin: quartz-scheduler/quartz

ByteArrayOutputStream baos = null;
if(updateJobData) {
  baos = serializeJobData(trigger.getJobDataMap());
origin: quartz-scheduler/quartz

ByteArrayOutputStream baos = serializeJobData(job.getJobDataMap());
origin: quartz-scheduler/quartz

ByteArrayOutputStream baos = serializeJobData(job.getJobDataMap());
origin: quartz-scheduler/quartz

ByteArrayOutputStream baos = serializeJobData(job.getJobDataMap());
origin: quartz/quartz-all

/**
 * <p>
 * Update the job data map for the given job.
 * </p>
 * 
 * @param conn
 *          the DB Connection
 * @param job
 *          the job to update
 * @return the number of rows updated
 */
public int updateJobData(Connection conn, JobDetail job)
  throws IOException, SQLException {
  ByteArrayOutputStream baos = serializeJobData(job.getJobDataMap());
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(UPDATE_JOB_DATA));
    setBytes(ps, 1, baos);
    ps.setString(2, job.getName());
    ps.setString(3, job.getGroup());
    return ps.executeUpdate();
  } finally {
    closeStatement(ps);
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * <p>
 * Update the job data map for the given job.
 * </p>
 * 
 * @param conn
 *          the DB Connection
 * @param job
 *          the job to update
 * @return the number of rows updated
 */
public int updateJobData(Connection conn, JobDetail job)
  throws IOException, SQLException {
  ByteArrayOutputStream baos = serializeJobData(job.getJobDataMap());
  PreparedStatement ps = null;
  try {
    ps = conn.prepareStatement(rtp(UPDATE_JOB_DATA));
    setBytes(ps, 1, baos);
    ps.setString(2, job.getName());
    ps.setString(3, job.getGroup());
    return ps.executeUpdate();
  } finally {
    closeStatement(ps);
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

baos = serializeJobData(trigger.getJobDataMap());
origin: quartz/quartz-all

baos = serializeJobData(trigger.getJobDataMap());
origin: com.opensymphony.quartz/com.springsource.org.quartz

ByteArrayOutputStream baos = null;
if(updateJobData && trigger.getJobDataMap().size() > 0) {
  baos = serializeJobData(trigger.getJobDataMap());
origin: quartz/quartz-all

ByteArrayOutputStream baos = null;
if(updateJobData && trigger.getJobDataMap().size() > 0) {
  baos = serializeJobData(trigger.getJobDataMap());
origin: quartz/quartz-all

ByteArrayOutputStream baos = serializeJobData(job.getJobDataMap());
origin: com.opensymphony.quartz/com.springsource.org.quartz

ByteArrayOutputStream baos = serializeJobData(job.getJobDataMap());
origin: quartz/quartz-all

ByteArrayOutputStream baos = serializeJobData(job.getJobDataMap());
origin: com.opensymphony.quartz/com.springsource.org.quartz

ByteArrayOutputStream baos = serializeJobData(job.getJobDataMap());
org.quartz.impl.jdbcjobstoreStdJDBCDelegateserializeJobData

Javadoc

Remove the transient data from and then create a serialized java.util.ByteArrayOutputStream version of a org.quartz.JobDataMap.

Popular methods of StdJDBCDelegate

  • canUseProperties
  • closeResultSet
    Cleanup helper method that closes the given ResultSet while ignoring any errors.
  • closeStatement
    Cleanup helper method that closes the given Statement 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.
  • selectTrigger,
  • selectTriggerJobDataMap,
  • serializeObject,
  • serializeProperties,
  • setBoolean,
  • setBytes,
  • addDefaultTriggerPersistenceDelegates,
  • addTriggerPersistenceDelegate,
  • deleteBlobTrigger

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Collectors (java.util.stream)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • 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