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

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

Best Java code snippets using org.hibernate.engine.spi.CollectionEntry.setDoremove (Showing top 8 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

entry.setDoremove( true );
if ( entry.isDorecreate() ) {
  LOG.trace( "Forcing collection initialization" );
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

entry.setDoremove( true );		// we will need to remove ye olde entries
if ( entry.isDorecreate() ) {
  LOG.trace( "Forcing collection initialization" );
origin: org.hibernate/com.springsource.org.hibernate.core

entry.setDoremove( true );		// we will need to remove ye olde entries
if ( entry.isDorecreate() ) {
  LOG.trace( "Forcing collection initialization" );
origin: org.hibernate.orm/hibernate-core

entry.setDoremove( true );
if ( entry.isDorecreate() ) {
  LOG.trace( "Forcing collection initialization" );
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 );
}
org.hibernate.engine.spiCollectionEntrysetDoremove

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

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • startActivity (Activity)
  • getContentResolver (Context)
  • Kernel (java.awt.image)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
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