Codota Logo
CollectionEntry.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.hibernate.engine.spi.CollectionEntry
constructor

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

/**
 * Add a collection to the cache, creating a new collection entry for it
 *
 * @param collection The collection for which we are adding an entry.
 * @param persister The collection persister
 */
private void addCollection(PersistentCollection collection, CollectionPersister persister) {
  final CollectionEntry ce = new CollectionEntry( persister, collection );
  collectionEntries.put( collection, ce );
}
origin: hibernate/hibernate-orm

  /**
   * Custom deserialization routine used during deserialization of a
   * Session/PersistenceContext for increased performance.
   *
   * @param ois The stream from which to read the entry.
   * @param session The session being deserialized.
   *
   * @return The deserialized CollectionEntry
   *
   * @throws IOException
   * @throws ClassNotFoundException
   */
  public static CollectionEntry deserialize(
      ObjectInputStream ois,
      SessionImplementor session) throws IOException, ClassNotFoundException {
    return new CollectionEntry(
        (String) ois.readObject(),
        (Serializable) ois.readObject(),
        (Serializable) ois.readObject(),
        (session == null ? null : session.getFactory())
    );
  }
}
origin: hibernate/hibernate-orm

@Override
public CollectionEntry addInitializedCollection(CollectionPersister persister, PersistentCollection collection, Serializable id)
    throws HibernateException {
  final CollectionEntry ce = new CollectionEntry( collection, persister, id, flushing );
  ce.postInitialize( collection );
  addCollection( collection, ce, id );
  return ce;
}
origin: hibernate/hibernate-orm

@Override
public void addUninitializedCollection(CollectionPersister persister, PersistentCollection collection, Serializable id) {
  final CollectionEntry ce = new CollectionEntry( collection, persister, id, flushing );
  addCollection( collection, ce, id );
  if ( persister.getBatchSize() > 1 ) {
    getBatchFetchQueue().addBatchLoadableCollection( collection, ce );
  }
}
origin: hibernate/hibernate-orm

@Override
public void addInitializedDetachedCollection(CollectionPersister collectionPersister, PersistentCollection collection)
    throws HibernateException {
  if ( collection.isUnreferenced() ) {
    //treat it just like a new collection
    addCollection( collection, collectionPersister );
  }
  else {
    final CollectionEntry ce = new CollectionEntry( collection, session.getFactory() );
    addCollection( collection, ce, collection.getKey() );
  }
}
origin: hibernate/hibernate-orm

@Override
public void addUninitializedDetachedCollection(CollectionPersister persister, PersistentCollection collection) {
  final CollectionEntry ce = new CollectionEntry( persister, collection.getKey() );
  addCollection( collection, ce, collection.getKey() );
  if ( persister.getBatchSize() > 1 ) {
    getBatchFetchQueue().addBatchLoadableCollection( collection, ce );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * add a collection we just loaded up (still needs initializing)
 */
@Override
public void addUninitializedCollection(CollectionPersister persister, PersistentCollection collection, Serializable id) {
  CollectionEntry ce = new CollectionEntry(collection, persister, id, flushing);
  addCollection(collection, ce, id);
}
origin: org.hibernate.orm/hibernate-core

/**
 * Add a collection to the cache, creating a new collection entry for it
 *
 * @param collection The collection for which we are adding an entry.
 * @param descriptor The collection descriptor
 */
private void addCollection(PersistentCollection collection, PersistentCollectionDescriptor descriptor) {
  final CollectionEntry ce = new CollectionEntry( descriptor, collection );
  collectionEntries.put( collection, ce );
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * Add a collection to the cache, creating a new collection entry for it
 *
 * @param collection The collection for which we are adding an entry.
 * @param persister The collection persister
 */
private void addCollection(PersistentCollection collection, CollectionPersister persister) {
  CollectionEntry ce = new CollectionEntry( persister, collection );
  collectionEntries.put( collection, ce );
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * Add a collection to the cache, creating a new collection entry for it
 *
 * @param collection The collection for which we are adding an entry.
 * @param persister The collection persister
 */
private void addCollection(PersistentCollection collection, CollectionPersister persister) {
  CollectionEntry ce = new CollectionEntry( persister, collection );
  collectionEntries.put( collection, ce );
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * add a collection we just loaded up (still needs initializing)
 */
@Override
public void addUninitializedCollection(CollectionPersister persister, PersistentCollection collection, Serializable id) {
  CollectionEntry ce = new CollectionEntry(collection, persister, id, flushing);
  addCollection(collection, ce, id);
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * add a collection we just pulled out of the cache (does not need initializing)
 */
@Override
public CollectionEntry addInitializedCollection(CollectionPersister persister, PersistentCollection collection, Serializable id)
throws HibernateException {
  CollectionEntry ce = new CollectionEntry(collection, persister, id, flushing);
  ce.postInitialize(collection);
  addCollection(collection, ce, id);
  return ce;
}
origin: org.hibernate.orm/hibernate-core

@Override
public CollectionEntry addInitializedCollection(PersistentCollectionDescriptor descriptor, PersistentCollection collection, Object id)
    throws HibernateException {
  final CollectionEntry ce = new CollectionEntry( collection, descriptor, id, flushing );
  ce.postInitialize( collection );
  addCollection( collection, ce, id );
  return ce;
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * add a collection we just pulled out of the cache (does not need initializing)
 */
@Override
public CollectionEntry addInitializedCollection(CollectionPersister persister, PersistentCollection collection, Serializable id)
throws HibernateException {
  CollectionEntry ce = new CollectionEntry(collection, persister, id, flushing);
  ce.postInitialize(collection);
  addCollection(collection, ce, id);
  return ce;
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * add a detached uninitialized collection
 */
@Override
public void addUninitializedDetachedCollection(CollectionPersister persister, PersistentCollection collection) {
  CollectionEntry ce = new CollectionEntry( persister, collection.getKey() );
  addCollection( collection, ce, collection.getKey() );
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * add a detached uninitialized collection
 */
@Override
public void addUninitializedDetachedCollection(CollectionPersister persister, PersistentCollection collection) {
  CollectionEntry ce = new CollectionEntry( persister, collection.getKey() );
  addCollection( collection, ce, collection.getKey() );
}
origin: org.hibernate.orm/hibernate-core

@Override
public void addInitializedDetachedCollection(PersistentCollectionDescriptor descriptor, PersistentCollection collection)
    throws HibernateException {
  if ( collection.isUnreferenced() ) {
    //treat it just like a new collection
    addCollection( collection, descriptor );
  }
  else {
    final CollectionEntry ce = new CollectionEntry( collection, session.getFactory() );
    addCollection( collection, ce, collection.getKey() );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * add an (initialized) collection that was created by another session and passed
 * into update() (ie. one with a snapshot and existing state on the database)
 */
@Override
public void addInitializedDetachedCollection(CollectionPersister collectionPersister, PersistentCollection collection)
throws HibernateException {
  if ( collection.isUnreferenced() ) {
    //treat it just like a new collection
    addCollection( collection, collectionPersister );
  }
  else {
    CollectionEntry ce = new CollectionEntry( collection, session.getFactory() );
    addCollection( collection, ce, collection.getKey() );
  }
}
origin: org.hibernate.orm/hibernate-core

@Override
public void addUninitializedCollection(PersistentCollectionDescriptor descriptor, PersistentCollection collection, Object collectionKey) {
  final CollectionEntry ce = new CollectionEntry( collection, descriptor, collectionKey, flushing );
  if ( !collection.wasInitialized() ) {
    collection.beforeInitialize( -1, descriptor );
  }
  addCollection( collection, ce, collectionKey );
  if ( descriptor.getBatchSize() > 1 ) {
    getBatchFetchQueue().addBatchLoadableCollection( collection, ce );
  }
}
origin: org.hibernate.orm/hibernate-core

@Override
public void addUninitializedDetachedCollection(PersistentCollectionDescriptor descriptor, PersistentCollection collection) {
  final CollectionEntry ce = new CollectionEntry( descriptor, collection.getKey() );
  addCollection( collection, ce, collection.getKey() );
  if ( descriptor.getBatchSize() > 1 ) {
    getBatchFetchQueue().addBatchLoadableCollection( collection, ce );
  }
}
org.hibernate.engine.spiCollectionEntry<init>

Javadoc

Used from custom serialization.

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • orElseThrow (Optional)
  • getApplicationContext (Context)
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
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