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

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

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

origin: quartz-scheduler/quartz

/**
 * <p>
 * Remove the transient data from and then create a serialized <code>java.util.ByteArrayOutputStream</code>
 * version of a <code>{@link org.quartz.JobDataMap}</code>.
 * </p>
 * 
 * @param data
 *          the JobDataMap to serialize
 * @return the serialized ByteArrayOutputStream
 * @throws IOException
 *           if serialization causes an error
 */
protected ByteArrayOutputStream serializeJobData(JobDataMap data)
  throws IOException {
  if (canUseProperties()) {
    return serializeProperties(data);
  }
  try {
    return serializeObject(data);
  } catch (NotSerializableException e) {
    throw new NotSerializableException(
      "Unable to serialize JobDataMap for insertion into " + 
      "database because the value of property '" + 
      getKeyOfNonSerializableValue(data) + 
      "' is not serializable: " + e.getMessage());
  }
}
origin: quartz-scheduler/quartz

/**
 * <p>
 * Remove the transient data from and then create a serialized <code>java.util.ByteArrayOutputStream</code>
 * version of a <code>{@link org.quartz.JobDataMap}</code>.
 * </p>
 * 
 * @param data
 *          the JobDataMap to serialize
 * @return the serialized ByteArrayOutputStream
 * @throws IOException
 *           if serialization causes an error
 */
protected ByteArrayOutputStream serializeJobData(JobDataMap data)
  throws IOException {
  if (canUseProperties()) {
    return serializeProperties(data);
  }
  try {
    return serializeObject(data);
  } catch (NotSerializableException e) {
    throw new NotSerializableException(
      "Unable to serialize JobDataMap for insertion into " + 
      "database because the value of property '" + 
      getKeyOfNonSerializableValue(data) + 
      "' is not serializable: " + e.getMessage());
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * <p>
 * Remove the transient data from and then create a serialized <code>java.util.ByteArrayOutputStream</code>
 * version of a <code>{@link org.quartz.JobDataMap}</code>.
 * </p>
 * 
 * @param data
 *          the JobDataMap to serialize
 * @return the serialized ByteArrayOutputStream
 * @throws IOException
 *           if serialization causes an error
 */
protected ByteArrayOutputStream serializeJobData(JobDataMap data)
  throws IOException {
  if (canUseProperties()) {
    return serializeProperties(data);
  }
  try {
    return serializeObject(data);
  } catch (NotSerializableException e) {
    throw new NotSerializableException(
      "Unable to serialize JobDataMap for insertion into " + 
      "database because the value of property '" + 
      getKeyOfNonSerializableValue(data) + 
      "' is not serializable: " + e.getMessage());
  }
}
origin: quartz/quartz-all

/**
 * <p>
 * Remove the transient data from and then create a serialized <code>java.util.ByteArrayOutputStream</code>
 * version of a <code>{@link org.quartz.JobDataMap}</code>.
 * </p>
 * 
 * @param data
 *          the JobDataMap to serialize
 * @return the serialized ByteArrayOutputStream
 * @throws IOException
 *           if serialization causes an error
 */
protected ByteArrayOutputStream serializeJobData(JobDataMap data)
  throws IOException {
  if (canUseProperties()) {
    return serializeProperties(data);
  }
  try {
    return serializeObject(data);
  } catch (NotSerializableException e) {
    throw new NotSerializableException(
      "Unable to serialize JobDataMap for insertion into " + 
      "database because the value of property '" + 
      getKeyOfNonSerializableValue(data) + 
      "' is not serializable: " + e.getMessage());
  }
}
org.quartz.impl.jdbcjobstoreStdJDBCDelegateserializeProperties

Javadoc

serialize the java.util.Properties

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,
  • serializeJobData,
  • serializeObject,
  • setBoolean,
  • setBytes,
  • addDefaultTriggerPersistenceDelegates,
  • addTriggerPersistenceDelegate,
  • deleteBlobTrigger

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JLabel (javax.swing)
  • 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