Tabnine Logo
StringKeyDirtyFlagMap.getAllowsTransientData
Code IndexAdd Tabnine to your IDE (free)

How to use
getAllowsTransientData
method
in
org.quartz.utils.StringKeyDirtyFlagMap

Best Java code snippets using org.quartz.utils.StringKeyDirtyFlagMap.getAllowsTransientData (Showing top 8 results out of 315)

origin: quartz-scheduler/quartz

/**
 * Determine whether any values in this Map do not implement 
 * <code>Serializable</code>.  Always returns false if this Map
 * is flagged to not allow transient data.
 * 
 * @deprecated JDBCJobStores no longer prune out transient data.  If you
 * include non-Serializable values in the Map, you will now get an 
 * exception when attempting to store it in a database.
 */
public boolean containsTransientData() {
  if (!getAllowsTransientData()) { // short circuit...
    return false;
  }

  String[] keys = getKeys();
  for (int i = 0; i < keys.length; i++) {
    Object o = super.get(keys[i]);
    if (!(o instanceof Serializable)) {
      return true;
    }
  }

  return false;
}
origin: quartz-scheduler/quartz

/**
 * Determine whether any values in this Map do not implement 
 * <code>Serializable</code>.  Always returns false if this Map
 * is flagged to not allow transient data.
 * 
 * @deprecated JDBCJobStores no longer prune out transient data.  If you
 * include non-Serializable values in the Map, you will now get an 
 * exception when attempting to store it in a database.
 */
public boolean containsTransientData() {
  if (!getAllowsTransientData()) { // short circuit...
    return false;
  }

  String[] keys = getKeys();
  for (int i = 0; i < keys.length; i++) {
    Object o = super.get(keys[i]);
    if (!(o instanceof Serializable)) {
      return true;
    }
  }

  return false;
}
origin: quartz-scheduler/quartz

/**
 * Removes any data values in the map that are non-Serializable.  Does 
 * nothing if this Map does not allow transient data.
 * 
 * @deprecated JDBCJobStores no longer prune out transient data.  If you
 * include non-Serializable values in the Map, you will now get an 
 * exception when attempting to store it in a database.
 */
public void removeTransientData() {
  if (!getAllowsTransientData()) { // short circuit...
    return;
  }

  String[] keys = getKeys();
  for (int i = 0; i < keys.length; i++) {
    Object o = super.get(keys[i]);
    if (!(o instanceof Serializable)) {
      remove(keys[i]);
    }
  }
}
origin: quartz-scheduler/quartz

/**
 * Removes any data values in the map that are non-Serializable.  Does 
 * nothing if this Map does not allow transient data.
 * 
 * @deprecated JDBCJobStores no longer prune out transient data.  If you
 * include non-Serializable values in the Map, you will now get an 
 * exception when attempting to store it in a database.
 */
public void removeTransientData() {
  if (!getAllowsTransientData()) { // short circuit...
    return;
  }

  String[] keys = getKeys();
  for (int i = 0; i < keys.length; i++) {
    Object o = super.get(keys[i]);
    if (!(o instanceof Serializable)) {
      remove(keys[i]);
    }
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * Determine whether any values in this Map do not implement 
 * <code>Serializable</code>.  Always returns false if this Map
 * is flagged to not allow transient data.
 * 
 * @deprecated JDBCJobStores no longer prune out transient data.  If you
 * include non-Serializable values in the Map, you will now get an 
 * exception when attempting to store it in a database.
 */
public boolean containsTransientData() {
  if (!getAllowsTransientData()) { // short circuit...
    return false;
  }

  String[] keys = getKeys();
  for (int i = 0; i < keys.length; i++) {
    Object o = super.get(keys[i]);
    if (!(o instanceof Serializable)) {
      return true;
    }
  }

  return false;
}
origin: quartz/quartz-all

/**
 * Determine whether any values in this Map do not implement 
 * <code>Serializable</code>.  Always returns false if this Map
 * is flagged to not allow transient data.
 * 
 * @deprecated JDBCJobStores no longer prune out transient data.  If you
 * include non-Serializable values in the Map, you will now get an 
 * exception when attempting to store it in a database.
 */
public boolean containsTransientData() {
  if (!getAllowsTransientData()) { // short circuit...
    return false;
  }

  String[] keys = getKeys();
  for (int i = 0; i < keys.length; i++) {
    Object o = super.get(keys[i]);
    if (!(o instanceof Serializable)) {
      return true;
    }
  }

  return false;
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * Removes any data values in the map that are non-Serializable.  Does 
 * nothing if this Map does not allow transient data.
 * 
 * @deprecated JDBCJobStores no longer prune out transient data.  If you
 * include non-Serializable values in the Map, you will now get an 
 * exception when attempting to store it in a database.
 */
public void removeTransientData() {
  if (!getAllowsTransientData()) { // short circuit...
    return;
  }

  String[] keys = getKeys();
  for (int i = 0; i < keys.length; i++) {
    Object o = super.get(keys[i]);
    if (!(o instanceof Serializable)) {
      remove(keys[i]);
    }
  }
}

origin: quartz/quartz-all

/**
 * Removes any data values in the map that are non-Serializable.  Does 
 * nothing if this Map does not allow transient data.
 * 
 * @deprecated JDBCJobStores no longer prune out transient data.  If you
 * include non-Serializable values in the Map, you will now get an 
 * exception when attempting to store it in a database.
 */
public void removeTransientData() {
  if (!getAllowsTransientData()) { // short circuit...
    return;
  }

  String[] keys = getKeys();
  for (int i = 0; i < keys.length; i++) {
    Object o = super.get(keys[i]);
    if (!(o instanceof Serializable)) {
      remove(keys[i]);
    }
  }
}

org.quartz.utilsStringKeyDirtyFlagMapgetAllowsTransientData

Javadoc

Whether the StringKeyDirtyFlagMap allows non-Serializable values.

Popular methods of StringKeyDirtyFlagMap

  • containsTransientData
    Determine whether any values in this Map do not implementSerializable. Always returns false if this
  • get
  • getKeys
    Get a copy of the Map's String keys in an array of Strings.
  • keySet
  • put
    Adds the given boolean value to the StringKeyDirtyFlagMap.
  • remove
  • size
  • getWrappedMap

Popular in Java

  • Reactive rest calls using spring rest template
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Sublime Text plugins
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