Tabnine Logo
CollectionEntry.dirty
Code IndexAdd Tabnine to your IDE (free)

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

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

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: 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.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.spiCollectionEntrydirty

Javadoc

Determine if the collection is "really" dirty, by checking dirtiness of the collection elements, if necessary

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
  • getCurrentKey
    This is only available late during the flush cycle
  • getCurrentPersister
  • getRole
  • isDorecreate
  • getRole,
  • isDorecreate,
  • isDoremove,
  • isDoupdate,
  • isIgnore,
  • isProcessed,
  • isReached,
  • isSnapshotEmpty,
  • postFlush

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Path (java.nio.file)
  • Option (scala)
  • CodeWhisperer alternatives
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