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

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

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

origin: hibernate/hibernate-orm

protected CollectionPersister resolveCollectionPersister(
    SessionImplementor session,
    PersistentCollection collection) {
  // First attempt to resolve the persister from the collection entry
  if ( collection != null ) {
    CollectionEntry collectionEntry = session.getPersistenceContext().getCollectionEntry( collection );
    if ( collectionEntry != null ) {
      CollectionPersister collectionPersister = collectionEntry.getCurrentPersister();
      if ( collectionPersister != null ) {
        return collectionPersister;
      }
    }
  }
  // Fallback to resolving the persister from the collection role
  final CollectionPersister collectionPersister = session.getFactory()
      .getMetamodel()
      .collectionPersister( commonCollectionMapperData.getRole() );
  if ( collectionPersister == null ) {
    throw new AuditException(
        String.format(
            Locale.ROOT,
            "Failed to locate CollectionPersister for collection [%s]",
            commonCollectionMapperData.getRole()
        )
    );
  }
  return collectionPersister;
}
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

new CollectionRecreateAction(
    coll,
    ce.getCurrentPersister(),
    ce.getCurrentKey(),
    session
origin: hibernate/hibernate-orm

final CollectionPersister currentPersister = entry.getCurrentPersister();
if ( loadedPersister != null || currentPersister != null ) {
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/com.springsource.org.hibernate

new CollectionRecreateAction(
    coll,
    ce.getCurrentPersister(),
    ce.getCurrentKey(),
    session
origin: org.hibernate/com.springsource.org.hibernate.core

new CollectionRecreateAction(
    coll,
    ce.getCurrentPersister(),
    ce.getCurrentKey(),
    session
origin: org.hibernate/com.springsource.org.hibernate

final CollectionPersister currentPersister = entry.getCurrentPersister();
if ( loadedPersister != null || currentPersister != null ) {					// it is or was referenced _somewhere_
origin: org.hibernate/com.springsource.org.hibernate.core

final CollectionPersister currentPersister = entry.getCurrentPersister();
if ( loadedPersister != null || currentPersister != null ) {					// it is or was referenced _somewhere_
org.hibernate.engine.spiCollectionEntrygetCurrentPersister

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

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Reference (javax.naming)
  • Top plugins for Android Studio
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