Codota Logo
Settings.getCacheProvider
Code IndexAdd Codota to your IDE (free)

How to use
getCacheProvider
method
in
org.hibernate.cfg.Settings

Best Java code snippets using org.hibernate.cfg.Settings.getCacheProvider (Showing top 17 results out of 315)

  • Common ways to obtain Settings
private void myMethod () {
Settings s =
  • Codota Iconnew Settings()
  • Codota IconSessionFactoryImplementor sessionFactoryImplementor;sessionFactoryImplementor.getSettings()
  • Codota IconUnionSubclassEntityPersister unionSubclassEntityPersister;unionSubclassEntityPersister.getFactory().getSettings()
  • Smart code suggestions by Codota
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public UpdateTimestampsCache(Settings settings, Properties props) throws HibernateException {
  String prefix = settings.getCacheRegionPrefix();
  regionName = prefix == null ? REGION_NAME : prefix + '.' + REGION_NAME;
  log.info( "starting update timestamps cache at region: " + regionName );
  this.updateTimestamps = settings.getCacheProvider().buildCache( regionName, props );
}
origin: hibernate/hibernate

public StandardQueryCache(
    final Settings settings, 
    final Properties props, 
    final UpdateTimestampsCache updateTimestampsCache, 
    String regionName)
throws HibernateException {
  
  if (regionName==null) regionName = StandardQueryCache.class.getName();
  String prefix = settings.getCacheRegionPrefix();
  if (prefix!=null) regionName = prefix + '.' + regionName;
  
  log.info("starting query cache at region: " + regionName);
  
  this.queryCache = settings.getCacheProvider().buildCache(regionName, props);
  this.updateTimestampsCache = updateTimestampsCache;
  this.regionName = regionName;
}
origin: hibernate/hibernate

public UpdateTimestampsCache(Settings settings, Properties props) 
throws HibernateException {
  String prefix = settings.getCacheRegionPrefix();
  
  regionName = prefix==null ? 
      REGION_NAME : 
      prefix + '.' + REGION_NAME;
  log.info("starting update timestamps cache at region: " + regionName);
  this.updateTimestamps = settings.getCacheProvider().buildCache(regionName, props);
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public StandardQueryCache(
    final Settings settings, 
    final Properties props, 
    final UpdateTimestampsCache updateTimestampsCache, 
    String regionName) throws HibernateException {
  if ( regionName == null ) {
    regionName = StandardQueryCache.class.getName();
  }
  String prefix = settings.getCacheRegionPrefix();
  if ( prefix != null ) {
    regionName = prefix + '.' + regionName;
  }
  log.info( "starting query cache at region: " + regionName );
  this.queryCache = settings.getCacheProvider().buildCache(regionName, props);
  this.updateTimestampsCache = updateTimestampsCache;
  this.regionName = regionName;
}
origin: hibernate/hibernate

public org.hibernate.classic.Session openSession(Interceptor sessionLocalInterceptor) 
throws HibernateException {
  // note that this timestamp is not correct if the connection provider
  // returns an older JDBC connection that was associated with a
  // transaction that was already begun before openSession() was called
  // (don't know any possible solution to this!)
  long timestamp = settings.getCacheProvider().nextTimestamp();
  return openSession( null, true, timestamp, sessionLocalInterceptor );
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public org.hibernate.classic.Session openTemporarySession() throws HibernateException {
  return new SessionImpl(
      null,
      this,
      true,
      settings.getCacheProvider().nextTimestamp(),
      interceptor,
      settings.getDefaultEntityMode(),
      false,
      false,
      ConnectionReleaseMode.AFTER_STATEMENT
    );
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public org.hibernate.classic.Session openSession(Interceptor sessionLocalInterceptor)
throws HibernateException {
  // note that this timestamp is not correct if the connection provider
  // returns an older JDBC connection that was associated with a
  // transaction that was already begun before openSession() was called
  // (don't know any possible solution to this!)
  long timestamp = settings.getCacheProvider().nextTimestamp();
  return openSession( null, true, timestamp, sessionLocalInterceptor );
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public org.hibernate.classic.Session openSession(
    final Connection connection,
    final boolean flushBeforeCompletionEnabled,
    final boolean autoCloseSessionEnabled,
    final ConnectionReleaseMode connectionReleaseMode) throws HibernateException {
  return new SessionImpl(
      connection,
      this,
      true,
      settings.getCacheProvider().nextTimestamp(),
      interceptor,
      settings.getDefaultEntityMode(),
      flushBeforeCompletionEnabled,
      autoCloseSessionEnabled,
      connectionReleaseMode
    );
}
origin: hibernate/hibernate

settings.getCacheProvider().stop();
origin: hibernate/hibernate

impl = settings.getCacheProvider().buildCache(regionName, properties);
origin: jboss.jboss-embeddable-ejb3/hibernate-all

impl = settings.getCacheProvider().buildCache(regionName, properties);
origin: jboss.jboss-embeddable-ejb3/hibernate-all

settings.getCacheProvider().stop();
origin: hibernate/hibernate

this,
true,
settings.getCacheProvider().nextTimestamp(),
interceptor,
sessionEventListenerConfig,
origin: hibernate/hibernate

settings.getCacheProvider().start( properties );
origin: jboss.jboss-embeddable-ejb3/hibernate-all

settings.getCacheProvider().start( properties );
origin: hibernate/hibernate

    Environment.USE_MINIMAL_PUTS, properties, settings.getCacheProvider().isMinimalPutsEnabledByDefault() 
);
log.info( "Optimize cache for minimal puts: " + enabledDisabled(useMinimalPuts) );
origin: jboss.jboss-embeddable-ejb3/hibernate-all

    Environment.USE_MINIMAL_PUTS, properties, settings.getCacheProvider().isMinimalPutsEnabledByDefault() 
);
log.info( "Optimize cache for minimal puts: " + enabledDisabled(useMinimalPuts) );
org.hibernate.cfgSettingsgetCacheProvider

Popular methods of Settings

  • isMinimalPutsEnabled
  • <init>
  • getConnectionReleaseMode
  • getDefaultSchemaName
  • getDefaultCatalogName
  • getJdbcFetchSize
  • getMaximumFetchDepth
  • getSessionFactoryName
  • isIdentifierRollbackEnabled
  • isQueryCacheEnabled
  • isSecondLevelCacheEnabled
  • isStatisticsEnabled
  • isSecondLevelCacheEnabled,
  • isStatisticsEnabled,
  • getCacheRegionPrefix,
  • getConnectionProvider,
  • isCommentsEnabled,
  • isScrollableResultSetsEnabled,
  • isStructuredCacheEntriesEnabled,
  • getDefaultBatchFetchSize,
  • getMultiTenancyStrategy,
  • getQueryCacheFactory

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now