Examples of assemble()


Examples of org.hibernate.cache.entry.CollectionCacheEntry.assemble()

        CollectionCacheEntry cacheEntry = (CollectionCacheEntry) persister.getCacheEntryStructure()
            .destructure(ce, factory);
     
        final PersistenceContext persistenceContext = source.getPersistenceContext();
        cacheEntry.assemble(
            collection,
            persister, 
            persistenceContext.getCollectionOwner(id, persister)
          );
        persistenceContext.getCollectionEntry(collection).postInitialize(collection);
View Full Code Here

Examples of org.hibernate.cache.entry.CollectionCacheEntry.assemble()

        CollectionCacheEntry cacheEntry = (CollectionCacheEntry) persister.getCacheEntryStructure()
            .destructure(ce, factory);
     
        final PersistenceContext persistenceContext = source.getPersistenceContext();
        cacheEntry.assemble(
            collection,
            persister, 
            persistenceContext.getCollectionOwner(id, persister)
          );
        persistenceContext.getCollectionEntry(collection).postInitialize(collection);
View Full Code Here

Examples of org.hibernate.cache.entry.CollectionCacheEntry.assemble()

        CollectionCacheEntry cacheEntry = (CollectionCacheEntry) persister.getCacheEntryStructure()
            .destructure(ce, factory);
     
        final PersistenceContext persistenceContext = source.getPersistenceContext();
        cacheEntry.assemble(
            collection,
            persister, 
            persistenceContext.getCollectionOwner(id, persister)
          );
        persistenceContext.getCollectionEntry(collection).postInitialize(collection);
View Full Code Here

Examples of org.hibernate.cache.entry.CollectionCacheEntry.assemble()

    }

    CollectionCacheEntry cacheEntry = (CollectionCacheEntry)persister.getCacheEntryStructure().destructure(ce, factory);

    final PersistenceContext persistenceContext = source.getPersistenceContext();
        cacheEntry.assemble(collection, persister, persistenceContext.getCollectionOwner(id, persister));
        persistenceContext.getCollectionEntry(collection).postInitialize(collection);
        // addInitializedCollection(collection, persister, id);
        return true;
  }
}
View Full Code Here

Examples of org.hibernate.cache.spi.entry.CollectionCacheEntry.assemble()

        ce,
        factory
    );

    final PersistenceContext persistenceContext = source.getPersistenceContext();
    cacheEntry.assemble( collection, persister, persistenceContext.getCollectionOwner( id, persister ) );
    persistenceContext.getCollectionEntry( collection ).postInitialize( collection );
    // addInitializedCollection(collection, persister, id);
    return true;
  }
}
View Full Code Here

Examples of org.hibernate.cache.spi.entry.CollectionCacheEntry.assemble()

    }

    CollectionCacheEntry cacheEntry = (CollectionCacheEntry)persister.getCacheEntryStructure().destructure(ce, factory);

    final PersistenceContext persistenceContext = source.getPersistenceContext();
        cacheEntry.assemble(collection, persister, persistenceContext.getCollectionOwner(id, persister));
        persistenceContext.getCollectionEntry(collection).postInitialize(collection);
        // addInitializedCollection(collection, persister, id);
        return true;
  }
}
View Full Code Here

Examples of org.hibernate.cache.spi.entry.CollectionCacheEntry.assemble()

    }

    CollectionCacheEntry cacheEntry = (CollectionCacheEntry)persister.getCacheEntryStructure().destructure(ce, factory);

    final PersistenceContext persistenceContext = source.getPersistenceContext();
        cacheEntry.assemble(collection, persister, persistenceContext.getCollectionOwner(id, persister));
        persistenceContext.getCollectionEntry(collection).postInitialize(collection);
        // addInitializedCollection(collection, persister, id);
        return true;
  }
}
View Full Code Here

Examples of org.hibernate.type.Type.assemble()

  throws HibernateException {
   
    Type elementType = persister.getElementType();
    Serializable[] cached = (Serializable[]) disassembled;
    for ( int i=0; i<cached.length; i++ ) {
      Object object = elementType.assemble( cached[i], getSession(), owner );
      Element subelement = element.addElement( persister.getElementNodeName() );
      elementType.setToXMLNode( subelement, object, persister.getFactory() );
    }
   
  }
View Full Code Here

Examples of org.hibernate.type.Type.assemble()

  public void initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner)
      throws HibernateException {
    final Type collectionElementType = persister.getElementType();
    final Serializable[] cachedSnapshot = (Serializable[]) disassembled;
    for ( Serializable cachedItem : cachedSnapshot ) {
      final Object object = collectionElementType.assemble( cachedItem, getSession(), owner );
      final Element subElement = element.addElement( persister.getElementNodeName() );
      collectionElementType.setToXMLNode( subElement, object, persister.getFactory() );
    }
  }
View Full Code Here

Examples of org.hibernate.type.Type.assemble()

    final String indexNodeName = getIndexAttributeName( persister );

    final Serializable[] cached = (Serializable[]) disassembled;
    int i = 0;
    while ( i < cached.length ) {
      final Object index = indexType.assemble( cached[i++], getSession(), owner );
      final Object object = elementType.assemble( cached[i++], getSession(), owner );

      final Element subElement = element.addElement( persister.getElementNodeName() );
      elementType.setToXMLNode( subElement, object, persister.getFactory() );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.