Package javax.persistence

Examples of javax.persistence.CacheStoreMode


        if (rMode != null) {
            fetch.setCacheRetrieveMode(JPAProperties.convertToKernelValue(DataCacheRetrieveMode.class,
                    JPAProperties.CACHE_RETRIEVE_MODE, rMode));
            properties.remove(JPAProperties.CACHE_RETRIEVE_MODE);
        }
        CacheStoreMode sMode = JPAProperties.getEnumValue(CacheStoreMode.class,
                JPAProperties.CACHE_STORE_MODE, properties);
        if (sMode != null) {
            fetch.setCacheStoreMode(JPAProperties.convertToKernelValue(DataCacheStoreMode.class,
                    JPAProperties.CACHE_STORE_MODE, sMode));
            properties.remove(JPAProperties.CACHE_STORE_MODE);
View Full Code Here


    }
  }

  public CacheMode determineAppropriateLocalCacheMode(Map<String, Object> localProperties) {
    CacheRetrieveMode retrieveMode = null;
    CacheStoreMode storeMode = null;
    if ( localProperties != null ) {
      retrieveMode = determineCacheRetrieveMode( localProperties );
      storeMode = determineCacheStoreMode( localProperties );
    }
    if ( retrieveMode == null ) {
View Full Code Here

        applied = applyFlushModeHint( ConfigurationHelper.getFlushMode( value ) );
      }
      else if ( AvailableSettings.SHARED_CACHE_RETRIEVE_MODE.equals( hintName ) ) {
        final CacheRetrieveMode retrieveMode = (CacheRetrieveMode) value;

        CacheStoreMode storeMode = hints != null
            ? (CacheStoreMode) hints.get( AvailableSettings.SHARED_CACHE_STORE_MODE )
            : null;
        if ( storeMode == null ) {
          storeMode = (CacheStoreMode) entityManager.getProperties().get( AvailableSettings.SHARED_CACHE_STORE_MODE );
        }
        applied = applyCacheModeHint( CacheModeHelper.interpretCacheMode( storeMode, retrieveMode ) );
      }
      else if ( AvailableSettings.SHARED_CACHE_STORE_MODE.equals( hintName ) ) {
        final CacheStoreMode storeMode = (CacheStoreMode) value;

        CacheRetrieveMode retrieveMode = hints != null
            ? (CacheRetrieveMode) hints.get( AvailableSettings.SHARED_CACHE_RETRIEVE_MODE )
            : null;
        if ( retrieveMode == null ) {
View Full Code Here

    }
  }

  public CacheMode determineAppropriateLocalCacheMode(Map<String, Object> localProperties) {
    CacheRetrieveMode retrieveMode = null;
    CacheStoreMode storeMode = null;
    if ( localProperties != null ) {
      retrieveMode = determineCacheRetrieveMode( localProperties );
      storeMode = determineCacheStoreMode( localProperties );
    }
    if ( retrieveMode == null ) {
View Full Code Here

    }
  }

  public CacheMode determineAppropriateLocalCacheMode(Map<String, Object> localProperties) {
    CacheRetrieveMode retrieveMode = null;
    CacheStoreMode storeMode = null;
    if ( localProperties != null ) {
      retrieveMode = determineCacheRetrieveMode( localProperties );
      storeMode = determineCacheStoreMode( localProperties );
    }
    if ( retrieveMode == null ) {
View Full Code Here

        applyFlushMode( ConfigurationHelper.getFlushMode( value ) );
      }
      else if ( AvailableSettings.SHARED_CACHE_RETRIEVE_MODE.equals( hintName ) ) {
        final CacheRetrieveMode retrieveMode = (CacheRetrieveMode) value;

        CacheStoreMode storeMode = hints != null
            ? (CacheStoreMode) hints.get( AvailableSettings.SHARED_CACHE_STORE_MODE )
            : null;
        if ( storeMode == null ) {
          storeMode = (CacheStoreMode) entityManager.getProperties()
              .get( AvailableSettings.SHARED_CACHE_STORE_MODE );
        }
        applyCacheMode(
            CacheModeHelper.interpretCacheMode( storeMode, retrieveMode )
        );
      }
      else if ( AvailableSettings.SHARED_CACHE_STORE_MODE.equals( hintName ) ) {
        final CacheStoreMode storeMode = (CacheStoreMode) value;

        CacheRetrieveMode retrieveMode = hints != null
            ? (CacheRetrieveMode) hints.get( AvailableSettings.SHARED_CACHE_RETRIEVE_MODE )
            : null;
        if ( retrieveMode == null ) {
View Full Code Here

        applyFlushMode( ConfigurationHelper.getFlushMode( value ) );
      }
      else if ( AvailableSettings.SHARED_CACHE_RETRIEVE_MODE.equals( hintName ) ) {
        final CacheRetrieveMode retrieveMode = (CacheRetrieveMode) value;

        CacheStoreMode storeMode = hints != null
            ? (CacheStoreMode) hints.get( AvailableSettings.SHARED_CACHE_STORE_MODE )
            : null;
        if ( storeMode == null ) {
          storeMode = (CacheStoreMode) entityManager.getProperties()
              .get( AvailableSettings.SHARED_CACHE_STORE_MODE );
        }
        applyCacheMode(
            CacheModeHelper.interpretCacheMode( storeMode, retrieveMode )
        );
      }
      else if ( AvailableSettings.SHARED_CACHE_STORE_MODE.equals( hintName ) ) {
        final CacheStoreMode storeMode = (CacheStoreMode) value;

        CacheRetrieveMode retrieveMode = hints != null
            ? (CacheRetrieveMode) hints.get( AvailableSettings.SHARED_CACHE_RETRIEVE_MODE )
            : null;
        if ( retrieveMode == null ) {
View Full Code Here

    }
  }

  public CacheMode determineAppropriateLocalCacheMode(Map<String, Object> localProperties) {
    CacheRetrieveMode retrieveMode = null;
    CacheStoreMode storeMode = null;
    if ( localProperties != null ) {
      retrieveMode = determineCacheRetrieveMode( localProperties );
      storeMode = determineCacheStoreMode( localProperties );
    }
    if ( retrieveMode == null ) {
View Full Code Here

        applyFlushMode( ConfigurationHelper.getFlushMode( value ) );
      }
      else if ( AvailableSettings.SHARED_CACHE_RETRIEVE_MODE.equals( hintName ) ) {
        final CacheRetrieveMode retrieveMode = (CacheRetrieveMode) value;

        CacheStoreMode storeMode = hints != null
            ? (CacheStoreMode) hints.get( AvailableSettings.SHARED_CACHE_STORE_MODE )
            : null;
        if ( storeMode == null ) {
          storeMode = (CacheStoreMode) entityManager.getProperties()
              .get( AvailableSettings.SHARED_CACHE_STORE_MODE );
        }
        applyCacheMode(
            CacheModeHelper.interpretCacheMode( storeMode, retrieveMode )
        );
      }
      else if ( AvailableSettings.SHARED_CACHE_STORE_MODE.equals( hintName ) ) {
        final CacheStoreMode storeMode = (CacheStoreMode) value;

        CacheRetrieveMode retrieveMode = hints != null
            ? (CacheRetrieveMode) hints.get( AvailableSettings.SHARED_CACHE_RETRIEVE_MODE )
            : null;
        if ( retrieveMode == null ) {
View Full Code Here

    }
  }

  public CacheMode determineAppropriateLocalCacheMode(Map<String, Object> localProperties) {
    CacheRetrieveMode retrieveMode = null;
    CacheStoreMode storeMode = null;
    if ( localProperties != null ) {
      retrieveMode = determineCacheRetrieveMode( localProperties );
      storeMode = determineCacheStoreMode( localProperties );
    }
    if ( retrieveMode == null ) {
View Full Code Here

TOP

Related Classes of javax.persistence.CacheStoreMode

Copyright © 2018 www.massapicom. 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.