Examples of CacheKey


Examples of org.hibernate.cache.CacheKey

      // we have issues with generated-version entities that may have
      // multiple actions queued during the same flush
      previousVersion = persister.getVersion( instance, session.getEntityMode() );
    }
   
    final CacheKey ck;
    if ( persister.hasCache() ) {
      ck = new CacheKey(
          id,
          persister.getIdentifierType(),
          persister.getRootEntityName(),
          session.getEntityMode(),
          session.getFactory()
View Full Code Here

Examples of org.hibernate.cache.CacheKey

  public void afterTransactionCompletion(boolean success) throws CacheException {
    EntityPersister persister = getPersister();
    if ( persister.hasCache() ) {
     
      final CacheKey ck = new CacheKey(
          getId(),
          persister.getIdentifierType(),
          persister.getRootEntityName(),
          getSession().getEntityMode(),
          getSession().getFactory()
View Full Code Here

Examples of org.hibernate.cache.CacheKey

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

    if ( persister.hasCache() ) {
      final CacheKey ck = new CacheKey(
          id,
          persister.getIdentifierType(),
          persister.getRootEntityName(),
          source.getEntityMode(),
          source.getFactory()
View Full Code Here

Examples of org.hibernate.cache.CacheKey

      // we have issues with generated-version entities that may have
      // multiple actions queued during the same flush
      version = persister.getVersion( instance, session.getEntityMode() );
    }

    final CacheKey ck;
    if ( persister.hasCache() ) {
      ck = new CacheKey(
          id,
          persister.getIdentifierType(),
          persister.getRootEntityName(),
          session.getEntityMode(),
          session.getFactory()
View Full Code Here

Examples of org.hibernate.cache.CacheKey

    }
  }

  public void afterTransactionCompletion(boolean success) throws HibernateException {
    if ( getPersister().hasCache() ) {
      final CacheKey ck = new CacheKey(
          getId(),
          getPersister().getIdentifierType(),
          getPersister().getRootEntityName(),
          getSession().getEntityMode(),
          getSession().getFactory()
View Full Code Here

Examples of org.hibernate.cache.CacheKey

  private boolean isCached(
      EntityKey entityKey,
      EntityPersister persister,
      EntityMode entityMode) {
    if ( persister.hasCache() ) {
      CacheKey key = new CacheKey(
          entityKey.getIdentifier(),
          persister.getIdentifierType(),
          entityKey.getEntityName(),
          entityMode,
          context.getSession().getFactory()
View Full Code Here

Examples of org.hibernate.cache.CacheKey

  private boolean isCached(
      Serializable collectionKey,
      CollectionPersister persister,
      EntityMode entityMode) {
    if ( persister.hasCache() ) {
      CacheKey cacheKey = new CacheKey(
          collectionKey,
              persister.getKeyType(),
              persister.getRole(),
              entityMode,
              context.getSession().getFactory()
View Full Code Here

Examples of org.hibernate.cache.CacheKey

    persister = session.getFactory().getCollectionPersister( collectionRole );
  }

  public void afterTransactionCompletion(boolean success) throws CacheException {
    if ( persister.hasCache() ) {
      final CacheKey ck = new CacheKey(
          key,
          persister.getKeyType(),
          persister.getRole(),
          session.getEntityMode(),
          session.getFactory()
View Full Code Here

Examples of org.hibernate.cache.CacheKey

    // bidirectional association and it is one of the
    // earlier entity actions which actually updates
    // the database (this action is resposible for
    // second-level cache invalidation only)
    if ( persister.hasCache() ) {
      final CacheKey ck = new CacheKey(
          key,
          persister.getKeyType(),
          persister.getRole(),
          session.getEntityMode(),
          session.getFactory()
View Full Code Here

Examples of org.hibernate.cache.CacheKey

    }
  }

  protected final void evict() throws CacheException {
    if ( persister.hasCache() ) {
      CacheKey ck = new CacheKey(
          key,
          persister.getKeyType(),
          persister.getRole(),
          session.getEntityMode(),
          session.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.