Examples of generateCacheKey()


Examples of org.hibernate.engine.spi.SessionImplementor.generateCacheKey()

      // we can't use cache here
      return null;
    }

    final SessionFactoryImplementor factory = source.getFactory();
    final CacheKey ck = source.generateCacheKey(
        event.getEntityId(),
        persister.getIdentifierType(),
        persister.getEntityName()
    );
View Full Code Here

Examples of org.hibernate.engine.spi.SessionImplementor.generateCacheKey()

      version = persister.getVersion( instance );
    }

    final CacheKey ck;
    if ( persister.hasCache() ) {
      ck = session.generateCacheKey( id, persister.getIdentifierType(), persister.getRootEntityName() );
      lock = persister.getCacheAccessStrategy().lockItem( ck, version );
    }
    else {
      ck = null;
    }
View Full Code Here

Examples of org.hibernate.engine.spi.SessionImplementor.generateCacheKey()

      previousVersion = persister.getVersion( instance );
    }
   
    final CacheKey ck;
    if ( persister.hasCache() ) {
      ck = session.generateCacheKey(
          id,
          persister.getIdentifierType(),
          persister.getRootEntityName()
      );
      lock = persister.getCacheAccessStrategy().lockItem( ck, previousVersion );
View Full Code Here

Examples of org.hibernate.engine.spi.SessionImplementor.generateCacheKey()

          getState(),
          version,
          session
      );
      cacheEntry = persister.getCacheEntryStructure().structure( ce );
      final CacheKey ck = session.generateCacheKey( id, persister.getIdentifierType(), persister.getRootEntityName() );

      final boolean put = cacheInsert( persister, ck );

      if ( put && factory.getStatistics().isStatisticsEnabled() ) {
        factory.getStatisticsImplementor().secondLevelCachePut( getPersister().getCacheAccessStrategy().getRegion().getName() );
View Full Code Here

Examples of org.hibernate.engine.spi.SessionImplementor.generateCacheKey()

      // we can't use cache here
      return null;
    }

    final SessionFactoryImplementor factory = source.getFactory();
    final CacheKey ck = source.generateCacheKey(
        event.getEntityId(),
        persister.getIdentifierType(),
        persister.getRootEntityName()
    );
View Full Code Here

Examples of org.hibernate.engine.spi.SessionImplementor.generateCacheKey()

    else {
      version = null;
    }

    final CollectionCacheEntry entry = new CollectionCacheEntry( lce.getCollection(), persister );
    final CacheKey cacheKey = session.generateCacheKey( lce.getKey(), persister.getKeyType(), persister.getRole() );

    boolean isPutFromLoad = true;
    if ( persister.getElementType().isAssociationType() ) {
      for ( Serializable id : entry.getState() ) {
        EntityPersister entityPersister = ( (QueryableCollection) persister ).getElementPersister();
View Full Code Here

Examples of org.hibernate.event.EventSource.generateCacheKey()

      source.getPersistenceContext().removeEntity(key);
      if ( persister.hasCollections() ) new EvictVisitor( source ).process(object, persister);
    }

    if ( persister.hasCache() ) {
      final CacheKey ck = source.generateCacheKey(
          id,
          persister.getIdentifierType(),
          persister.getRootEntityName()
      );
      persister.getCacheAccessStrategy().evict( ck );
View Full Code Here

Examples of org.hibernate.event.spi.EventSource.generateCacheKey()

        new EvictVisitor( source ).process( object, persister );
      }
    }

    if ( persister.hasCache() ) {
      final CacheKey ck = source.generateCacheKey(
          id,
          persister.getIdentifierType(),
          persister.getRootEntityName()
      );
      persister.getCacheAccessStrategy().evict( ck );
View Full Code Here

Examples of org.hibernate.event.spi.EventSource.generateCacheKey()

      source.getPersistenceContext().removeEntity(key);
      if ( persister.hasCollections() ) new EvictVisitor( source ).process(object, persister);
    }

    if ( persister.hasCache() ) {
      final CacheKey ck = source.generateCacheKey(
          id,
          persister.getIdentifierType(),
          persister.getRootEntityName()
      );
      persister.getCacheAccessStrategy().evict( ck );
View Full Code Here

Examples of org.hibernate.event.spi.EventSource.generateCacheKey()

      source.getPersistenceContext().removeEntity(key);
      if ( persister.hasCollections() ) new EvictVisitor( source ).process(object, persister);
    }

    if ( persister.hasCache() ) {
      final CacheKey ck = source.generateCacheKey(
          id,
          persister.getIdentifierType(),
          persister.getRootEntityName()
      );
      persister.getCacheAccessStrategy().evict( ck );
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.