congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IndirectMap.raiseAddChangeEvent
Code IndexAdd Tabnine to your IDE (free)

How to use
raiseAddChangeEvent
method
in
org.eclipse.persistence.indirection.IndirectMap

Best Java code snippets using org.eclipse.persistence.indirection.IndirectMap.raiseAddChangeEvent (Showing top 5 results out of 315)

origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * @see java.util.Hashtable#put(java.lang.Object, java.lang.Object)
 */
@Override
public synchronized V put(K key, V value) {
  V oldValue = this.getDelegate().put(key, value);
  if (oldValue != null){
    raiseRemoveChangeEvent(key, oldValue);
  }
  raiseAddChangeEvent(key, value);
  return oldValue;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * @see java.util.Hashtable#put(java.lang.Object, java.lang.Object)
 */
@Override
public synchronized V put(K key, V value) {
  V oldValue = this.getDelegate().put(key, value);
  if (oldValue != null){
    raiseRemoveChangeEvent(key, oldValue);
  }
  raiseAddChangeEvent(key, value);
  return oldValue;
}
 
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * @see java.util.Hashtable#put(java.lang.Object, java.lang.Object)
 */
public synchronized Object put(Object key, Object value) {
  Object oldValue = this.getDelegate().put(key, value);
  if (oldValue != null){
    raiseRemoveChangeEvent(key, oldValue);
  }
  raiseAddChangeEvent(key, value);
  return oldValue;
}
 
origin: org.eclipse.persistence/org.eclipse.persistence.core

@Override
public synchronized void replaceAll(BiFunction<? super K,? super V,? extends V> function) {
  // Must trigger add events if tracked or uow.
  if (hasTrackedPropertyChangeListener()) {
    getDelegate().entrySet().stream().forEach((entry) -> {
      K key = entry.getKey();
      V oldValue = entry.getValue();
      entry.setValue(function.apply(key, entry.getValue()));
      raiseRemoveChangeEvent(key, oldValue);
      raiseAddChangeEvent(key, entry.getValue());
    });
    return;
  }
  getDelegate().replaceAll(function);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

@Override
public synchronized V putIfAbsent(K key, V value) {
  // Must trigger add events if tracked or uow.
  if (hasTrackedPropertyChangeListener()) {
    V current = getDelegate().get(key);
    if (current == null) {
      V v = getDelegate().put(key, value);
      raiseAddChangeEvent(key, value);
      return v;
    }
    return current;
  }
  return getDelegate().putIfAbsent(key, value);
}
org.eclipse.persistence.indirectionIndirectMapraiseAddChangeEvent

Javadoc

Raise the add change event and relationship maintainence.

Popular methods of IndirectMap

  • _persistence_getPropertyChangeListener
    Return the property change listener for change tracking.
  • buildDelegate
    Return the freshly-built delegate.
  • clear
  • get
  • getDelegate
    INTERNAL: Check whether the contents have been read from the database. If they have not, read them a
  • getTrackedAttributeName
    INTERNAL: Return the mapping attribute name, used to raise change events.
  • getValueHolder
    PUBLIC: Return the valueHolder. This method used to be synchronized, which caused deadlock.
  • hasTrackedPropertyChangeListener
    INTERNAL: Return if the collection has a property change listener for change tracking.
  • initialize
    Initialize the instance.
  • isInstantiated
    PUBLIC: Return whether the contents have been read from the database.
  • keySet
  • put
  • keySet,
  • put,
  • raiseRemoveChangeEvent,
  • <init>,
  • remove,
  • entrySet

Popular in Java

  • Start an intent from android
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • getSystemService (Context)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now