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

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

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

entry.setDorecreate( true );	// we will need to create new entries
origin: org.hibernate/com.springsource.org.hibernate.core

entry.setDorecreate( true );	// we will need to create new entries
origin: org.hibernate.orm/hibernate-core

entry.setDorecreate( 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 );
}
org.hibernate.engine.spiCollectionEntrysetDorecreate

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

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JComboBox (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
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