Tabnine Logo
Cache.usage
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.hibernate.annotations.Cache.usage (Showing top 13 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: hibernate/hibernate-orm

cacheConcurrentStrategy = resolveCacheConcurrencyStrategy( effectiveCacheAnn.usage() );
cacheRegion = effectiveCacheAnn.region();
switch ( effectiveCacheAnn.include().toLowerCase( Locale.ROOT ) ) {
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: 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 ) {
    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: 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

cacheConcurrentStrategy = resolveCacheConcurrencyStrategy( effectiveCacheAnn.usage() );
cacheRegion = effectiveCacheAnn.region();
switch ( effectiveCacheAnn.include().toLowerCase( Locale.ROOT ) ) {
org.hibernate.annotationsCacheusage

Popular methods of Cache

  • <init>
  • region
  • include

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top 12 Jupyter Notebook extensions
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