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

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

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

origin: quartz-scheduler/quartz

/**
 * <p>
 * This method should be overridden by any delegate subclasses that need
 * special handling for BLOBs for job details. The default implementation
 * uses standard JDBC <code>java.sql.Blob</code> operations.
 * </p>
 * 
 * @param rs
 *          the result set, already queued to the correct row
 * @param colName
 *          the column name for the BLOB
 * @return the deserialized Object from the ResultSet BLOB
 * @throws ClassNotFoundException
 *           if a class found during deserialization cannot be found
 * @throws IOException
 *           if deserialization causes an error
 */
protected Object getJobDataFromBlob(ResultSet rs, String colName)
  throws ClassNotFoundException, IOException, SQLException {
  if (canUseProperties()) {
    Blob blobLocator = rs.getBlob(colName);
    if (blobLocator != null) {
      InputStream binaryInput = blobLocator.getBinaryStream();
      return binaryInput;
    } else {
      return null;
    }
  }
  return getObjectFromBlob(rs, colName);
}
origin: quartz-scheduler/quartz

/**
 * <p>
 * This method should be overridden by any delegate subclasses that need
 * special handling for BLOBs for job details. The default implementation
 * uses standard JDBC <code>java.sql.Blob</code> operations.
 * </p>
 * 
 * @param rs
 *          the result set, already queued to the correct row
 * @param colName
 *          the column name for the BLOB
 * @return the deserialized Object from the ResultSet BLOB
 * @throws ClassNotFoundException
 *           if a class found during deserialization cannot be found
 * @throws IOException
 *           if deserialization causes an error
 */
protected Object getJobDataFromBlob(ResultSet rs, String colName)
  throws ClassNotFoundException, IOException, SQLException {
  if (canUseProperties()) {
    Blob blobLocator = rs.getBlob(colName);
    if (blobLocator != null) {
      InputStream binaryInput = blobLocator.getBinaryStream();
      return binaryInput;
    } else {
      return null;
    }
  }
  return getObjectFromBlob(rs, colName);
}
origin: quartz-scheduler/quartz

cal = (Calendar) getObjectFromBlob(rs, COL_CALENDAR);
origin: quartz-scheduler/quartz

cal = (Calendar) getObjectFromBlob(rs, COL_CALENDAR);
origin: quartz-scheduler/quartz

  map = getMapFromProperties(rs);
} else {
  map = (Map<?, ?>) getObjectFromBlob(rs, COL_JOB_DATAMAP);
origin: quartz-scheduler/quartz

  map = getMapFromProperties(rs);
} else {
  map = (Map<?, ?>) getObjectFromBlob(rs, COL_JOB_DATAMAP);
origin: quartz-scheduler/quartz

  map = getMapFromProperties(rs);
} else {
  map = (Map<?, ?>) getObjectFromBlob(rs, COL_JOB_DATAMAP);
    trigger = (OperableTrigger) getObjectFromBlob(rs, COL_BLOB);
origin: quartz-scheduler/quartz

  map = getMapFromProperties(rs);
} else {
  map = (Map<?, ?>) getObjectFromBlob(rs, COL_JOB_DATAMAP);
    trigger = (OperableTrigger) getObjectFromBlob(rs, COL_BLOB);
origin: quartz-scheduler/quartz

  map = getMapFromProperties(rs);
} else {
  map = (Map<?, ?>) getObjectFromBlob(rs, COL_JOB_DATAMAP);
origin: quartz-scheduler/quartz

  map = getMapFromProperties(rs);
} else {
  map = (Map<?, ?>) getObjectFromBlob(rs, COL_JOB_DATAMAP);
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * <p>
 * This method should be overridden by any delegate subclasses that need
 * special handling for BLOBs for job details. The default implementation
 * uses standard JDBC <code>java.sql.Blob</code> operations.
 * </p>
 * 
 * @param rs
 *          the result set, already queued to the correct row
 * @param colName
 *          the column name for the BLOB
 * @return the deserialized Object from the ResultSet BLOB
 * @throws ClassNotFoundException
 *           if a class found during deserialization cannot be found
 * @throws IOException
 *           if deserialization causes an error
 */
protected Object getJobDetailFromBlob(ResultSet rs, String colName)
  throws ClassNotFoundException, IOException, SQLException {
  if (canUseProperties()) {
    Blob blobLocator = rs.getBlob(colName);
    if (blobLocator != null) {
      InputStream binaryInput = blobLocator.getBinaryStream();
      return binaryInput;
    } else {
      return null;
    }
  }
  return getObjectFromBlob(rs, colName);
}
origin: quartz/quartz-all

/**
 * <p>
 * This method should be overridden by any delegate subclasses that need
 * special handling for BLOBs for job details. The default implementation
 * uses standard JDBC <code>java.sql.Blob</code> operations.
 * </p>
 * 
 * @param rs
 *          the result set, already queued to the correct row
 * @param colName
 *          the column name for the BLOB
 * @return the deserialized Object from the ResultSet BLOB
 * @throws ClassNotFoundException
 *           if a class found during deserialization cannot be found
 * @throws IOException
 *           if deserialization causes an error
 */
protected Object getJobDetailFromBlob(ResultSet rs, String colName)
  throws ClassNotFoundException, IOException, SQLException {
  if (canUseProperties()) {
    Blob blobLocator = rs.getBlob(colName);
    if (blobLocator != null) {
      InputStream binaryInput = blobLocator.getBinaryStream();
      return binaryInput;
    } else {
      return null;
    }
  }
  return getObjectFromBlob(rs, colName);
}
origin: quartz/quartz-all

cal = (Calendar) getObjectFromBlob(rs, COL_CALENDAR);
origin: com.opensymphony.quartz/com.springsource.org.quartz

cal = (Calendar) getObjectFromBlob(rs, COL_CALENDAR);
origin: com.opensymphony.quartz/com.springsource.org.quartz

  map = getMapFromProperties(rs);
} else {
  map = (Map) getObjectFromBlob(rs, COL_JOB_DATAMAP);
origin: quartz/quartz-all

  map = getMapFromProperties(rs);
} else {
  map = (Map) getObjectFromBlob(rs, COL_JOB_DATAMAP);
origin: quartz/quartz-all

  map = getMapFromProperties(rs);
} else {
  map = (Map) getObjectFromBlob(rs, COL_JOB_DATAMAP);
    trigger = (Trigger) getObjectFromBlob(rs, COL_BLOB);
origin: com.opensymphony.quartz/com.springsource.org.quartz

  map = getMapFromProperties(rs);
} else {
  map = (Map) getObjectFromBlob(rs, COL_JOB_DATAMAP);
    trigger = (Trigger) getObjectFromBlob(rs, COL_BLOB);
origin: com.opensymphony.quartz/com.springsource.org.quartz

  map = getMapFromProperties(rs);
} else {
  map = (Map) getObjectFromBlob(rs, COL_JOB_DATAMAP);
origin: quartz/quartz-all

  map = getMapFromProperties(rs);
} else {
  map = (Map) getObjectFromBlob(rs, COL_JOB_DATAMAP);
org.quartz.impl.jdbcjobstoreStdJDBCDelegategetObjectFromBlob

Javadoc

This method should be overridden by any delegate subclasses that need special handling for BLOBs. The default implementation uses standard JDBC java.sql.Blob operations.

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.
  • 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

  • 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)
  • Best plugins for Eclipse
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