下面列出了怎么用org.hibernate.cache.spi.UpdateTimestampsCache的API类实例代码及写法,或者点击链接到github查看源代码。
@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);
}
@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);
}
public UpdateTimestampsCache getUpdateTimestampsCache() {
return sessionFactoryImplementor.getUpdateTimestampsCache();
}
/**
* Get {@code UpdateTimestampsCache} instance managed by the {@code SessionFactory}.
*
* @deprecated Use {@link #getTimestampsCache} instead
*/
@Deprecated
default UpdateTimestampsCache getUpdateTimestampsCache() {
return getTimestampsCache();
}
/**
* Constructs a StandardQueryCache instance
*
* @param settings The SessionFactory settings.
* @param props Any properties
* @param updateTimestampsCache The update-timestamps cache to use.
* @param regionName The base query cache region name
*/
public IgniteStandardQueryCache(Settings settings, Properties props, UpdateTimestampsCache updateTimestampsCache, String regionName) {
super(settings, props, updateTimestampsCache, regionName);
}
/**
* Constructs a StandardQueryCache instance
*
* @param settings The SessionFactory settings.
* @param props Any properties
* @param updateTimestampsCache The update-timestamps cache to use.
* @param regionName The base query cache region name
*/
public IgniteStandardQueryCache(Settings settings, Properties props, UpdateTimestampsCache updateTimestampsCache, String regionName) {
super(settings, props, updateTimestampsCache, regionName);
}