congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Cache.region
Code IndexAdd Tabnine to your IDE (free)

How to use
region
method
in
org.hibernate.annotations.Cache

Best Java code snippets using org.hibernate.annotations.Cache.region (Showing top 14 results out of 315)

origin: hibernate/hibernate-orm

public void setCache(Cache cacheAnn) {
  if ( cacheAnn != null ) {
    cacheRegionName = BinderHelper.isEmptyAnnotationValue( cacheAnn.region() ) ? null : cacheAnn.region();
    cacheConcurrencyStrategy = EntityBinder.getCacheConcurrencyStrategy( cacheAnn.usage() );
  }
  else {
    cacheConcurrencyStrategy = null;
    cacheRegionName = null;
  }
}
origin: BroadleafCommerce/BroadleafCommerce

  LOG.info("Cache invalidation event to be sent");
  LOG.info("superclazz : " + superclazz.getName());
  LOG.info("region : " + cacheAnnotation.region());
  LOG.info("id : " + id);
detailMap.put("CACHE_REGION", new BroadleafSystemEventDetail("Cache Region", cacheAnnotation.region()));
detailMap.put("ENTITY_TYPE", new BroadleafSystemEventDetail("Entity Type", superclazz.getName()));
detailMap.put("IDENTIFIER", new BroadleafSystemEventDetail("Identifier", id));
origin: hibernate/hibernate-orm

  cacheRegion = effectiveCacheAnn.region();
  switch ( effectiveCacheAnn.include().toLowerCase( Locale.ROOT ) ) {
    case "all": {
if ( naturalIdCacheAnn != null ) {
  if ( BinderHelper.isEmptyAnnotationValue( naturalIdCacheAnn.region() ) ) {
    if ( explicitCacheAnn != null && StringHelper.isNotEmpty( explicitCacheAnn.region() ) ) {
      naturalIdCacheRegion = explicitCacheAnn.region() + NATURAL_ID_CACHE_SUFFIX;
origin: org.hibernate/hibernate-annotations

public void setCache(Cache cacheAnn) {
  if ( cacheAnn != null ) {
    cacheRegionName = BinderHelper.isDefault( cacheAnn.region() ) ? null : cacheAnn.region();
    cacheConcurrencyStrategy = EntityBinder.getCacheConcurrencyStrategy( cacheAnn.usage() );
  }
  else {
    cacheConcurrencyStrategy = null;
    cacheRegionName = null;
  }
}
origin: org.hibernate/hibernate-annotations

public void setCache(Cache cacheAnn) {
  if ( cacheAnn != null ) {
    cacheRegion = BinderHelper.isDefault( cacheAnn.region() ) ?
        null :
        cacheAnn.region();
    cacheConcurrentStrategy = getCacheConcurrencyStrategy( cacheAnn.usage() );
    if ( "all".equalsIgnoreCase( cacheAnn.include() ) ) {
      cacheLazyProperty = true;
    }
    else if ( "non-lazy".equalsIgnoreCase( cacheAnn.include() ) ) {
      cacheLazyProperty = false;
    }
    else {
      throw new AnnotationException( "Unknown lazy property annotations: " + cacheAnn.include() );
    }
  }
  else {
    cacheConcurrentStrategy = null;
    cacheRegion = null;
    cacheLazyProperty = true;
  }
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public void setCache(Cache cacheAnn) {
  if ( cacheAnn != null ) {
    cacheRegionName = BinderHelper.isDefault( cacheAnn.region() ) ? null : cacheAnn.region();
    cacheConcurrencyStrategy = EntityBinder.getCacheConcurrencyStrategy( cacheAnn.usage() );
  }
  else {
    cacheConcurrencyStrategy = null;
    cacheRegionName = null;
  }
}
origin: org.hibernate/com.springsource.org.hibernate

public void setCache(Cache cacheAnn) {
  if ( cacheAnn != null ) {
    cacheRegionName = BinderHelper.isEmptyAnnotationValue( cacheAnn.region() ) ? null : cacheAnn.region();
    cacheConcurrencyStrategy = EntityBinder.getCacheConcurrencyStrategy( cacheAnn.usage() );
  }
  else {
    cacheConcurrencyStrategy = null;
    cacheRegionName = null;
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public void setCache(Cache cacheAnn) {
  if ( cacheAnn != null ) {
    cacheRegionName = BinderHelper.isEmptyAnnotationValue( cacheAnn.region() ) ? null : cacheAnn.region();
    cacheConcurrencyStrategy = EntityBinder.getCacheConcurrencyStrategy( cacheAnn.usage() );
  }
  else {
    cacheConcurrencyStrategy = null;
    cacheRegionName = null;
  }
}
origin: org.hibernate.orm/hibernate-core

public void setCache(Cache cacheAnn) {
  if ( cacheAnn != null ) {
    cacheRegionName = BinderHelper.isEmptyAnnotationValue( cacheAnn.region() ) ? null : cacheAnn.region();
    cacheConcurrencyStrategy = EntityBinder.getCacheConcurrencyStrategy( cacheAnn.usage() );
  }
  else {
    cacheConcurrencyStrategy = null;
    cacheRegionName = null;
  }
}
origin: stackoverflow.com

 Course c = new Course();
LookupCache lookupCache = c.getClass().getAnnotation(LookupCache.class);
Cache cache = lookupCache.annotationType().getAnnotation(Cache.class);
System.err.println("region " + cache.region());
System.err.println("usage " + cache.usage());
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public void setCache(Cache cacheAnn) {
  if ( cacheAnn != null ) {
    cacheRegion = BinderHelper.isDefault( cacheAnn.region() ) ?
        null :
        cacheAnn.region();
    cacheConcurrentStrategy = getCacheConcurrencyStrategy( cacheAnn.usage() );
    if ( "all".equalsIgnoreCase( cacheAnn.include() ) ) {
      cacheLazyProperty = true;
    }
    else if ( "non-lazy".equalsIgnoreCase( cacheAnn.include() ) ) {
      cacheLazyProperty = false;
    }
    else {
      throw new AnnotationException( "Unknown lazy property annotations: " + cacheAnn.include() );
    }
  }
  else {
    cacheConcurrentStrategy = null;
    cacheRegion = null;
    cacheLazyProperty = true;
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public void setCache(Cache cacheAnn) {
  if ( cacheAnn != null ) {
    cacheRegion = BinderHelper.isEmptyAnnotationValue( cacheAnn.region() ) ?
        null :
        cacheAnn.region();
    cacheConcurrentStrategy = getCacheConcurrencyStrategy( cacheAnn.usage() );
    if ( "all".equalsIgnoreCase( cacheAnn.include() ) ) {
      cacheLazyProperty = true;
    }
    else if ( "non-lazy".equalsIgnoreCase( cacheAnn.include() ) ) {
      cacheLazyProperty = false;
    }
    else {
      throw new AnnotationException( "Unknown lazy property annotations: " + cacheAnn.include() );
    }
  }
  else {
    cacheConcurrentStrategy = null;
    cacheRegion = null;
    cacheLazyProperty = true;
  }
}

origin: org.hibernate/com.springsource.org.hibernate

public void setCache(Cache cacheAnn) {
  if ( cacheAnn != null ) {
    cacheRegion = BinderHelper.isEmptyAnnotationValue( cacheAnn.region() ) ?
        null :
        cacheAnn.region();
    cacheConcurrentStrategy = getCacheConcurrencyStrategy( cacheAnn.usage() );
    if ( "all".equalsIgnoreCase( cacheAnn.include() ) ) {
      cacheLazyProperty = true;
    }
    else if ( "non-lazy".equalsIgnoreCase( cacheAnn.include() ) ) {
      cacheLazyProperty = false;
    }
    else {
      throw new AnnotationException( "Unknown lazy property annotations: " + cacheAnn.include() );
    }
  }
  else {
    cacheConcurrentStrategy = null;
    cacheRegion = null;
    cacheLazyProperty = true;
  }
}

origin: org.hibernate.orm/hibernate-core

  cacheRegion = effectiveCacheAnn.region();
  switch ( effectiveCacheAnn.include().toLowerCase( Locale.ROOT ) ) {
    case "all": {
if ( naturalIdCacheAnn != null ) {
  if ( BinderHelper.isEmptyAnnotationValue( naturalIdCacheAnn.region() ) ) {
    if ( explicitCacheAnn != null && StringHelper.isNotEmpty( explicitCacheAnn.region() ) ) {
      naturalIdCacheRegion = explicitCacheAnn.region() + NATURAL_ID_CACHE_SUFFIX;
org.hibernate.annotationsCacheregion

Popular methods of Cache

  • <init>
  • usage
  • include

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Join (org.hibernate.mapping)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Option (scala)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now