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

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

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

/**
 * Called after execution of an action
 */
public void afterAction(PersistentCollection collection) {
  loadedKey = getCurrentKey();
  setLoadedPersister( getCurrentPersister() );
  boolean resnapshot = collection.wasInitialized() &&
      ( isDoremove() || isDorecreate() || isDoupdate() );
  if ( resnapshot ) {
    snapshot = loadedPersister==null || !loadedPersister.isMutable() ?
        null :
        collection.getSnapshot(loadedPersister); //re-snapshot
  }
  collection.postAction();
}
origin: hibernate/hibernate-orm

  @Override
  public void execute() throws HibernateException {
    // this QueuedOperationCollectionAction has to be executed before any other
    // CollectionAction involving the same collection.

    getPersister().processQueuedOps( getCollection(), getKey(), getSession() );

    // TODO: It would be nice if this could be done safely by CollectionPersister#processQueuedOps;
    //       Can't change the SPI to do this though.
    ((AbstractPersistentCollection) getCollection() ).clearOperationQueue();

    // The other CollectionAction types call CollectionEntry#afterAction, which
    // clears the dirty flag. We don't want to call CollectionEntry#afterAction unless
    // there is no other CollectionAction that will be executed on the same collection.
    final CollectionEntry ce = getSession().getPersistenceContext().getCollectionEntry( getCollection() );
    if ( !ce.isDoremove() && !ce.isDoupdate() && !ce.isDorecreate() ) {
      ce.afterAction( getCollection() );
    }
  }
}
origin: hibernate/hibernate-orm

if ( ce.isDoremove() ) {
  session.getInterceptor().onCollectionRemove( coll, ce.getLoadedKey() );
  actionQueue.addAction(
origin: hibernate/hibernate-orm

    && session.getCacheMode().isPutEnabled() && !ce.isDoremove();
if ( addToCache ) {
  addCollectionToCache( lce, persister );
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * Called after execution of an action
 */
public void afterAction(PersistentCollection collection) {
  loadedKey = getCurrentKey();
  setLoadedPersister( getCurrentPersister() );
  boolean resnapshot = collection.wasInitialized() &&
      ( isDoremove() || isDorecreate() || isDoupdate() );
  if ( resnapshot ) {
    snapshot = loadedPersister==null || !loadedPersister.isMutable() ?
        null :
        collection.getSnapshot(loadedPersister); //re-snapshot
  }
  collection.postAction();
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * Called after execution of an action
 */
public void afterAction(PersistentCollection collection) {
  loadedKey = getCurrentKey();
  setLoadedPersister( getCurrentPersister() );
  boolean resnapshot = collection.wasInitialized() &&
      ( isDoremove() || isDorecreate() || isDoupdate() );
  if ( resnapshot ) {
    snapshot = loadedPersister==null || !loadedPersister.isMutable() ?
        null :
        collection.getSnapshot(loadedPersister); //re-snapshot
  }
  collection.postAction();
}
origin: org.hibernate.orm/hibernate-core

/**
 * Called after execution of an action
 */
public void afterAction(PersistentCollection collection) {
  loadedKey = getCurrentKey();
  setLoadedDescriptor( getCurrentDescriptor() );
  boolean resnapshot = collection.wasInitialized() &&
      ( isDoremove() || isDorecreate() || isDoupdate() );
  if ( resnapshot ) {
    snapshot = loadedCollectionDescriptor == null || !loadedCollectionDescriptor.getMutabilityPlan().isMutable()
        ? null
        //re-snapshot
        : collection.getSnapshot( loadedCollectionDescriptor );
  }
  collection.postAction();
}
origin: org.hibernate/com.springsource.org.hibernate

if ( ce.isDoremove() ) {
  session.getInterceptor().onCollectionRemove( coll, ce.getLoadedKey() );
  actionQueue.addAction(
origin: org.hibernate/com.springsource.org.hibernate.core

if ( ce.isDoremove() ) {
  session.getInterceptor().onCollectionRemove( coll, ce.getLoadedKey() );
  actionQueue.addAction(
origin: org.hibernate.orm/hibernate-core

if ( ce.isDoremove() ) {
  session.getInterceptor().onCollectionRemove( coll, ce.getLoadedKey() );
  actionQueue.addAction(
origin: org.hibernate/com.springsource.org.hibernate

    !ce.isDoremove();                   // and this is not a forced initialization during flush
if ( addToCache ) {
  addCollectionToCache( lce, persister );
origin: org.hibernate/com.springsource.org.hibernate.core

    !ce.isDoremove();                   // and this is not a forced initialization during flush
if ( addToCache ) {
  addCollectionToCache( lce, persister );
org.hibernate.engine.spiCollectionEntryisDoremove

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,
  • isDoupdate,
  • isIgnore,
  • isProcessed,
  • isReached,
  • isSnapshotEmpty,
  • postFlush

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getApplicationContext (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JCheckBox (javax.swing)
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