/** * Affirms the given class is eligible to be cached according to the cache mode * and the cache enable flag on the given metadata. * * @return TRUE or FALSE if cache mode is configured. null otherwise. */ private Boolean isCacheableByMode(ClassMetaData meta) { String mode = _conf.getDataCacheMode(); if (DataCacheMode.ALL.toString().equalsIgnoreCase(mode)) return true; if (DataCacheMode.NONE.toString().equalsIgnoreCase(mode)) return false; if (DataCacheMode.ENABLE_SELECTIVE.toString().equalsIgnoreCase(mode)) return Boolean.TRUE.equals(meta.getCacheEnabled()); if (DataCacheMode.DISABLE_SELECTIVE.toString().equalsIgnoreCase(mode)) return !Boolean.FALSE.equals(meta.getCacheEnabled()); return null; }
/** * Affirms the given class is eligible to be cached according to the cache mode * and the cache enable flag on the given metadata. * * @return TRUE or FALSE if cache mode is configured. null otherwise. */ private Boolean isCacheableByMode(ClassMetaData meta) { String mode = _conf.getDataCacheMode(); if (DataCacheMode.ALL.toString().equalsIgnoreCase(mode)) return true; if (DataCacheMode.NONE.toString().equalsIgnoreCase(mode)) return false; if (DataCacheMode.ENABLE_SELECTIVE.toString().equalsIgnoreCase(mode)) return Boolean.TRUE.equals(meta.getCacheEnabled()); if (DataCacheMode.DISABLE_SELECTIVE.toString().equalsIgnoreCase(mode)) return !Boolean.FALSE.equals(meta.getCacheEnabled()); return null; }
/** * Affirms the given class is eligible to be cached according to the cache mode * and the cache enable flag on the given metadata. * * @return TRUE or FALSE if cache mode is configured. null otherwise. */ private Boolean isCacheableByMode(ClassMetaData meta) { String mode = _conf.getDataCacheMode(); if (DataCacheMode.ALL.toString().equalsIgnoreCase(mode)) return true; if (DataCacheMode.NONE.toString().equalsIgnoreCase(mode)) return false; if (DataCacheMode.ENABLE_SELECTIVE.toString().equalsIgnoreCase(mode)) return Boolean.TRUE.equals(meta.getCacheEnabled()); if (DataCacheMode.DISABLE_SELECTIVE.toString().equalsIgnoreCase(mode)) return !Boolean.FALSE.equals(meta.getCacheEnabled()); return null; }
/** * Affirms the given class is eligible to be cached according to the cache mode * and the cache enable flag on the given metadata. * * @return TRUE or FALSE if cache mode is configured. null otherwise. */ private Boolean isCacheableByMode(ClassMetaData meta) { String mode = _conf.getDataCacheMode(); if (DataCacheMode.ALL.toString().equalsIgnoreCase(mode)) return true; if (DataCacheMode.NONE.toString().equalsIgnoreCase(mode)) return false; if (DataCacheMode.ENABLE_SELECTIVE.toString().equalsIgnoreCase(mode)) return Boolean.TRUE.equals(meta.getCacheEnabled()); if (DataCacheMode.DISABLE_SELECTIVE.toString().equalsIgnoreCase(mode)) return !Boolean.FALSE.equals(meta.getCacheEnabled()); return null; }
public void setTypes(String types) { _includedTypes = StringUtils.isEmpty(types) ? null : new HashSet<String>(Arrays.asList(Strings.split(types, ";", 0))); if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"Types", DataCacheMode.ENABLE_SELECTIVE.toString()})); }
public void setExcludedTypes(String types) { _excludedTypes = StringUtils.isEmpty(types) ? null : new HashSet<String>(Arrays.asList(Strings.split(types, ";", 0))); if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"ExcludeTypes", DataCacheMode.DISABLE_SELECTIVE.toString()})); }
public void setTypes(String types) { _includedTypes = StringUtils.isEmpty(types) ? null : new HashSet<String>(Arrays.asList(Strings.split(types, ";", 0))); if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"Types", DataCacheMode.ENABLE_SELECTIVE.toString()})); }
public void setExcludedTypes(String types) { _excludedTypes = StringUtils.isEmpty(types) ? null : new HashSet<String>(Arrays.asList(Strings.split(types, ";", 0))); if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"ExcludeTypes", DataCacheMode.DISABLE_SELECTIVE.toString()})); }
public void setTypes(Set<String> types) { _includedTypes = types; if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"Types", DataCacheMode.ENABLE_SELECTIVE.toString()})); }
public void setExcludedTypes(String types) { _excludedTypes = StringUtil.isEmpty(types) ? null : new HashSet<>(Arrays.asList(StringUtil.split(types, ";", 0))); if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"ExcludeTypes", DataCacheMode.DISABLE_SELECTIVE.toString()})); }
public void setTypes(Set<String> types) { _includedTypes = types; if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"Types", DataCacheMode.ENABLE_SELECTIVE.toString()})); }
public void setExcludedTypes(Set<String> types) { _excludedTypes = types; if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"ExcludeTypes", DataCacheMode.DISABLE_SELECTIVE.toString()})); }
public void setTypes(Set<String> types) { _includedTypes = types; if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"Types", DataCacheMode.ENABLE_SELECTIVE.toString()})); }
public void setTypes(String types) { _includedTypes = StringUtil.isEmpty(types) ? null : new HashSet<>(Arrays.asList(StringUtil.split(types, ";", 0))); if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"Types", DataCacheMode.ENABLE_SELECTIVE.toString()})); }
public void setExcludedTypes(Set<String> types) { _excludedTypes = types; if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"ExcludeTypes", DataCacheMode.DISABLE_SELECTIVE.toString()})); }
public void setTypes(String types) { _includedTypes = StringUtil.isEmpty(types) ? null : new HashSet<>(Arrays.asList(StringUtil.split(types, ";", 0))); if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"Types", DataCacheMode.ENABLE_SELECTIVE.toString()})); }
public void setExcludedTypes(Set<String> types) { _excludedTypes = types; if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"ExcludeTypes", DataCacheMode.DISABLE_SELECTIVE.toString()})); }
public void setExcludedTypes(String types) { _excludedTypes = StringUtil.isEmpty(types) ? null : new HashSet<>(Arrays.asList(StringUtil.split(types, ";", 0))); if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"ExcludeTypes", DataCacheMode.DISABLE_SELECTIVE.toString()})); }
public void setTypes(Set<String> types) { _includedTypes = types; if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"Types", DataCacheMode.ENABLE_SELECTIVE.toString()})); }
public void setExcludedTypes(Set<String> types) { _excludedTypes = types; if (log.isWarnEnabled()) log.warn(s_loc.get("recommend_jpa2_caching", new Object[]{"ExcludeTypes", DataCacheMode.DISABLE_SELECTIVE.toString()})); }