Codota Logo
CollectionEntry.setProcessed
Code IndexAdd Codota to your IDE (free)

How to use
setProcessed
method
in
org.hibernate.engine.spi.CollectionEntry

Best Java code snippets using org.hibernate.engine.spi.CollectionEntry.setProcessed (Showing top 10 results out of 315)

  • Common ways to obtain CollectionEntry
private void myMethod () {
CollectionEntry c =
  • Codota IconPersistenceContext persistenceContext;PersistentCollection coll;persistenceContext.getCollectionEntry(coll)
  • Codota IconSessionImplementor sessionImplementor;PersistentCollection coll;sessionImplementor.getPersistenceContext().getCollectionEntry(coll)
  • Codota IconEventSource eventSource;PersistentCollection coll;eventSource.getPersistenceContext().getCollectionEntry(coll)
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

public void preFlush(PersistentCollection collection) throws HibernateException {
  if ( loadedKey == null && collection.getKey() != null ) {
    loadedKey = collection.getKey();
  }
  boolean nonMutableChange = collection.isDirty()
      && getLoadedPersister() != null
      && !getLoadedPersister().isMutable();
  if ( nonMutableChange ) {
    throw new HibernateException(
        "changed an immutable collection instance: " +
        MessageHelper.collectionInfoString( getLoadedPersister().getRole(), getLoadedKey() )
    );
  }
  dirty( collection );
  if ( LOG.isDebugEnabled() && collection.isDirty() && getLoadedPersister() != null ) {
    LOG.debugf(
        "Collection dirty: %s",
        MessageHelper.collectionInfoString( getLoadedPersister().getRole(), getLoadedKey() )
    );
  }
  setReached( false );
  setProcessed( false );
  setDoupdate( false );
  setDoremove( false );
  setDorecreate( false );
}
origin: hibernate/hibernate-orm

  throw new AssertionFailure( "collection was processed twice by flush()" );
entry.setProcessed( true );
origin: hibernate/hibernate-orm

);
ce.setReached( true );
ce.setProcessed( true );
origin: org.hibernate/com.springsource.org.hibernate.core

public void preFlush(PersistentCollection collection) throws HibernateException {
  boolean nonMutableChange = collection.isDirty() &&
      getLoadedPersister()!=null &&
      !getLoadedPersister().isMutable();
  if (nonMutableChange) {
    throw new HibernateException(
        "changed an immutable collection instance: " +
        MessageHelper.collectionInfoString( getLoadedPersister().getRole(), getLoadedKey() )
      );
  }
  dirty(collection);
  if ( LOG.isDebugEnabled() && collection.isDirty() && getLoadedPersister() != null ) {
    LOG.debugf( "Collection dirty: %s",
        MessageHelper.collectionInfoString( getLoadedPersister().getRole(), getLoadedKey() ) );
  }
  setDoupdate(false);
  setDoremove(false);
  setDorecreate(false);
  setReached(false);
  setProcessed(false);
}
origin: org.hibernate/com.springsource.org.hibernate

public void preFlush(PersistentCollection collection) throws HibernateException {
  boolean nonMutableChange = collection.isDirty() &&
      getLoadedPersister()!=null &&
      !getLoadedPersister().isMutable();
  if (nonMutableChange) {
    throw new HibernateException(
        "changed an immutable collection instance: " +
        MessageHelper.collectionInfoString( getLoadedPersister().getRole(), getLoadedKey() )
      );
  }
  dirty(collection);
  if ( LOG.isDebugEnabled() && collection.isDirty() && getLoadedPersister() != null ) {
    LOG.debugf( "Collection dirty: %s",
        MessageHelper.collectionInfoString( getLoadedPersister().getRole(), getLoadedKey() ) );
  }
  setDoupdate(false);
  setDoremove(false);
  setDorecreate(false);
  setReached(false);
  setProcessed(false);
}
origin: org.hibernate/com.springsource.org.hibernate

  throw new AssertionFailure( "collection was processed twice by flush()" );
entry.setProcessed( true );
origin: org.hibernate/com.springsource.org.hibernate.core

  throw new AssertionFailure( "collection was processed twice by flush()" );
entry.setProcessed( true );
origin: org.hibernate.orm/hibernate-core

  throw new AssertionFailure( "collection was processed twice by flush()" );
entry.setProcessed( true );
origin: org.hibernate.orm/hibernate-core

public void preFlush(PersistentCollection collection) throws HibernateException {
  if ( loadedKey == null && collection.getKey() != null ) {
    loadedKey = collection.getKey();
  }
  boolean nonMutableChange = collection.isDirty()
      && getLoadedCollectionDescriptor() != null
      && !getLoadedCollectionDescriptor().getMutabilityPlan().isMutable();
  if ( nonMutableChange ) {
    throw new HibernateException(
        "changed an immutable collection instance: " +
        MessageHelper.collectionInfoString( getLoadedCollectionDescriptor().getNavigableRole().getFullPath(), getLoadedKey() )
    );
  }
  dirty( collection );
  if ( LOG.isDebugEnabled() && collection.isDirty() && getLoadedCollectionDescriptor() != null ) {
    LOG.debugf(
        "Collection dirty: %s",
        MessageHelper.collectionInfoString( getLoadedCollectionDescriptor().getNavigableRole().getFullPath(), getLoadedKey() )
    );
  }
  setReached( false );
  setProcessed( false );
  setDoupdate( false );
  setDoremove( false );
  setDorecreate( false );
}
origin: org.hibernate.orm/hibernate-core

);
ce.setReached( true );
ce.setProcessed( true );
org.hibernate.engine.spiCollectionEntrysetProcessed

Popular methods of CollectionEntry

  • getLoadedPersister
    This is only available late during the flush cycle
  • getSnapshot
  • getLoadedKey
  • getOrphans
    Get the collection orphans (entities which were removed from the collection)
  • <init>
    For newly wrapped collections, or dereferenced collection wrappers
  • afterAction
    Called after execution of an action
  • afterDeserialize
  • deserialize
    Custom deserialization routine used during deserialization of a Session/PersistenceContext for incre
  • dirty
    Determine if the collection is "really" dirty, by checking dirtiness of the collection elements, if
  • getCurrentKey
    This is only available late during the flush cycle
  • getCurrentPersister
  • getRole
  • getCurrentPersister,
  • getRole,
  • isDorecreate,
  • isDoremove,
  • isDoupdate,
  • isIgnore,
  • isProcessed,
  • isReached,
  • isSnapshotEmpty,
  • postFlush

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now