/** * Retrieve a collection that is in the process of being loaded, returning null * if there is no loading collection with the given id */ public PersistentCollection getLoadingCollection(CollectionPersister persister, Serializable id, EntityMode em) { LoadingCollectionEntry lce = getLoadingCollectionEntry( new CollectionKey(persister, id, em) ); if ( lce != null ) { if ( log.isTraceEnabled() ) { log.trace( "returning loading collection:" + MessageHelper.collectionInfoString(persister, id, context.getSession().getFactory()) ); } return lce.collection; } else { if ( log.isTraceEnabled() ) { log.trace( "creating collection wrapper:" + MessageHelper.collectionInfoString(persister, id, context.getSession().getFactory()) ); } return null; } }
/** * Retrieve a collection that is in the process of being loaded, returning null * if there is no loading collection with the given id */ public PersistentCollection getLoadingCollection(CollectionPersister persister, Serializable id, EntityMode em) { LoadingCollectionEntry lce = getLoadingCollectionEntry( new CollectionKey(persister, id, em) ); if ( lce != null ) { if ( log.isTraceEnabled() ) { log.trace( "returning loading collection:" + MessageHelper.collectionInfoString(persister, id, context.getSession().getFactory()) ); } return lce.collection; } else { if ( log.isTraceEnabled() ) { log.trace( "creating collection wrapper:" + MessageHelper.collectionInfoString(persister, id, context.getSession().getFactory()) ); } return null; } }
.instantiate( context.getSession(), persister, key );
pc = persister.getCollectionType().instantiate( context.getSession(), persister, key );
final SessionImplementor session = context.getSession(); log.debug( "collection fully initialized: " + MessageHelper.collectionInfoString(persister, lce.key, context.getSession().getFactory()) );
final SessionImplementor session = context.getSession(); log.debug( "collection fully initialized: " + MessageHelper.collectionInfoString(persister, lce.key, context.getSession().getFactory()) );
log.debug( "Caching collection: " + MessageHelper.collectionInfoString( persister, lce.key, context.getSession().getFactory() ) ); final SessionImplementor session = context.getSession(); final SessionFactoryImplementor factory = session.getFactory();
log.debug( "Caching collection: " + MessageHelper.collectionInfoString(persister, lce.key, context.getSession().getFactory()) ); final SessionImplementor session = context.getSession(); final SessionFactoryImplementor factory = session.getFactory();