@Override public String getCacheRegionPrefix() { return delegate.getCacheRegionPrefix(); }
public String getCacheRegionPrefix() { return sessionFactoryOptions.getCacheRegionPrefix(); }
public static boolean isUnqualified(String regionName, SessionFactoryOptions options) { final String prefix = options.getCacheRegionPrefix(); if ( prefix == null ) { return true; } else { return !regionName.startsWith( prefix ); } } }
public String qualify(String regionName, SessionFactoryOptions options) { final String prefix = options.getCacheRegionPrefix(); if ( prefix == null ) { return regionName; } return qualify( prefix, regionName ); }
protected String qualify(String regionName) { return sessionFactory.getSessionFactoryOptions().getCacheRegionPrefix() == null ? regionName : sessionFactory.getSessionFactoryOptions().getCacheRegionPrefix() + '.' + regionName; }
public boolean isQualified(String regionName, SessionFactoryOptions options) { return isQualified( options.getCacheRegionPrefix(), regionName ); }
/** * @deprecated (since 5.3) No replacement - added just to continue some backwards compatibility * in supporting the newly deprecated methods expecting a qualified (prefix +) region name */ @Deprecated default String unqualifyRegionName(String name) { if ( getSessionFactory().getSessionFactoryOptions().getCacheRegionPrefix() == null ) { return name; } if ( !name.startsWith( getSessionFactory().getSessionFactoryOptions().getCacheRegionPrefix() ) ) { throw new IllegalArgumentException( String.format( Locale.ROOT, "Legacy methods for accessing cache information expect a qualified (prefix) region name - " + "but passed name [%s] was not qualified by the configured prefix [%s]", name, getSessionFactory().getSessionFactoryOptions().getCacheRegionPrefix() ) ); } return name.substring( getSessionFactory().getSessionFactoryOptions().getCacheRegionPrefix().length() + 1 ); }
/** * @deprecated (since 5.3) No replacement - added just to continue some backwards compatibility * in supporting the newly deprecated methods expecting a qualified (prefix +) region name */ @Deprecated default String unqualifyRegionName(String name) { if ( getSessionFactory().getSessionFactoryOptions().getCacheRegionPrefix() == null ) { return name; } if ( !name.startsWith( getSessionFactory().getSessionFactoryOptions().getCacheRegionPrefix() ) ) { throw new IllegalArgumentException( String.format( Locale.ROOT, "Legacy methods for accessing cache information expect a qualified (prefix) region name - " + "but passed name [%s] was not qualified by the configured prefix [%s]", name, getSessionFactory().getSessionFactoryOptions().getCacheRegionPrefix() ) ); } return name.substring( getSessionFactory().getSessionFactoryOptions().getCacheRegionPrefix().length() + 1 ); }
getSessionFactory().getSessionFactoryOptions().getCacheRegionPrefix(), region.getName() getSessionFactory().getSessionFactoryOptions().getCacheRegionPrefix(), region.getName()
@Override public String getCacheRegionPrefix() { return delegate.getCacheRegionPrefix(); }
public String getCacheRegionPrefix() { return sessionFactoryOptions.getCacheRegionPrefix(); }
public static boolean isUnqualified(String regionName, SessionFactoryOptions options) { final String prefix = options.getCacheRegionPrefix(); if ( prefix == null ) { return true; } else { return !regionName.startsWith( prefix ); } } }
LOG.debugf( "Second-level query cache: %s", enabledDisabled( sessionFactoryOptions.isQueryCacheEnabled() ) ); LOG.debugf( "Second-level query cache factory: %s", sessionFactoryOptions.getTimestampsCacheFactory() ); LOG.debugf( "Second-level cache region prefix: %s", sessionFactoryOptions.getCacheRegionPrefix() ); LOG.debugf( "Optimize second-level cache for minimal puts: %s", enabledDisabled( sessionFactoryOptions.isMinimalPutsEnabled() ) ); LOG.debugf( "Structured second-level cache entries: %s", enabledDisabled( sessionFactoryOptions.isStructuredCacheEntriesEnabled() ) );
public String qualify(String regionName, SessionFactoryOptions options) { final String prefix = options.getCacheRegionPrefix(); if ( prefix == null ) { return regionName; } return qualify( prefix, regionName ); }
protected String qualify(String regionName) { return sessionFactory.getSessionFactoryOptions().getCacheRegionPrefix() == null ? regionName : sessionFactory.getSessionFactoryOptions().getCacheRegionPrefix() + '.' + regionName; }
public boolean isQualified(String regionName, SessionFactoryOptions options) { return isQualified( options.getCacheRegionPrefix(), regionName ); }
@Override public InfinispanBaseRegion buildEntityRegion(String regionName, AccessType accessType) { String prefix = delegate.getSettings().getCacheRegionPrefix(); if (prefix != null && !prefix.isEmpty()) regionName = prefix + '.' + regionName; return (InfinispanBaseRegion) delegate.buildEntityRegion(regionName, null, MUTABLE_VERSIONED); }
@Override public InfinispanBaseRegion buildTimestampsRegion(String regionName) { String prefix = delegate.getSettings().getCacheRegionPrefix(); if (prefix != null && !prefix.isEmpty()) regionName = prefix + '.' + regionName; return (InfinispanBaseRegion) delegate.buildTimestampsRegion(regionName, null); }
@Override public InfinispanBaseRegion buildQueryResultsRegion(String regionName) { String prefix = delegate.getSettings().getCacheRegionPrefix(); if (prefix != null && !prefix.isEmpty()) regionName = prefix + '.' + regionName; return (InfinispanBaseRegion) delegate.buildQueryResultsRegion(regionName, null); }
@Override public InfinispanBaseRegion buildCollectionRegion(String regionName, AccessType accessType) { String prefix = delegate.getSettings().getCacheRegionPrefix(); if (prefix != null && !prefix.isEmpty()) regionName = prefix + '.' + regionName; return (InfinispanBaseRegion) delegate.buildCollectionRegion(regionName, null, MUTABLE_VERSIONED); }