org.hibernate.cache.spi.QueryCache Java Examples

The following examples show how to use org.hibernate.cache.spi.QueryCache. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IgniteStandardQueryCacheFactory.java    From sakai with Educational Community License v2.0 5 votes vote down vote up
@Override
public QueryCache getQueryCache(
        final String regionName,
        final UpdateTimestampsCache updateTimestampsCache,
        final Settings settings,
        final Properties props) throws HibernateException {
    return new IgniteStandardQueryCache(settings, props, updateTimestampsCache, regionName);
}
 
Example #2
Source File: IgniteStandardQueryCacheFactory.java    From sakai with Educational Community License v2.0 5 votes vote down vote up
@Override
public QueryCache getQueryCache(
        final String regionName,
        final UpdateTimestampsCache updateTimestampsCache,
        final Settings settings,
        final Properties props) throws HibernateException {
    return new IgniteStandardQueryCache(settings, props, updateTimestampsCache, regionName);
}
 
Example #3
Source File: CacheImplementor.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/**
 * @deprecated Use {@link #getQueryResultsCache(String)} instead, but using unqualified name
 */
@Deprecated
default QueryCache getQueryCache(String regionName) throws HibernateException {
	return getQueryResultsCache( unqualifyRegionName( regionName ) );
}
 
Example #4
Source File: SessionFactoryWrapper.java    From lemon with Apache License 2.0 4 votes vote down vote up
public QueryCache getQueryCache() {
    return sessionFactoryImplementor.getQueryCache();
}
 
Example #5
Source File: SessionFactoryWrapper.java    From lemon with Apache License 2.0 4 votes vote down vote up
public QueryCache getQueryCache(String regionName)
        throws HibernateException {
    return sessionFactoryImplementor.getQueryCache(regionName);
}
 
Example #6
Source File: CacheImplementor.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get the default {@code QueryCache}.
 *
 * @deprecated Use {@link #getDefaultQueryResultsCache} instead.
 */
@Deprecated
default QueryCache getQueryCache() {
	return getDefaultQueryResultsCache();
}
 
Example #7
Source File: CacheImplementor.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get the default {@code QueryCache}.
 *
 * @deprecated Use {@link #getDefaultQueryResultsCache} instead.
 */
@Deprecated
default QueryCache getDefaultQueryCache() {
	return getDefaultQueryResultsCache();
}