本文整理汇总了Java中javax.persistence.SharedCacheMode.UNSPECIFIED属性的典型用法代码示例。如果您正苦于以下问题:Java SharedCacheMode.UNSPECIFIED属性的具体用法?Java SharedCacheMode.UNSPECIFIED怎么用?Java SharedCacheMode.UNSPECIFIED使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javax.persistence.SharedCacheMode
的用法示例。
在下文中一共展示了SharedCacheMode.UNSPECIFIED属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSharedCacheMode
@Override
public SharedCacheMode getSharedCacheMode() {
if (definition.cachingType.isEmpty()) {
return SharedCacheMode.UNSPECIFIED;
}
return SharedCacheMode.valueOf(definition.cachingType);
}
示例2: possible
@ManagedOperation
@Description("change the shared cache mode if possible (value is ok)")
public void setSharedCacheMode(final String value) {
try {
final String v = value.trim().toUpperCase();
final SharedCacheMode mode = v.isEmpty() ? SharedCacheMode.UNSPECIFIED : SharedCacheMode.valueOf(v);
reloadableEntityManagerFactory.setSharedCacheMode(mode);
} catch (final Exception iae) {
// ignored
}
}
示例3: getSharedCacheMode
@Override
public SharedCacheMode getSharedCacheMode() {
String s = (String) parsedPersistenceUnit.getPersistenceXmlMetadata().get(
ParsedPersistenceUnit.SHARED_CACHE_MODE);
if (s == null) {
return SharedCacheMode.UNSPECIFIED;
} else {
return SharedCacheMode.valueOf(s);
}
}
示例4: getSharedCacheMode
@Override
public SharedCacheMode getSharedCacheMode() {
return SharedCacheMode.UNSPECIFIED;
}
示例5: getSharedCacheMode
@Override
public SharedCacheMode getSharedCacheMode() {
return SharedCacheMode.UNSPECIFIED;
}
示例6: getSharedCacheMode
public SharedCacheMode getSharedCacheMode() {
return (sharedCacheMode == null) ? SharedCacheMode.UNSPECIFIED : sharedCacheMode;
}
示例7: setSharedCacheMode
/**
* @param sharedCacheMode the sharedCacheMode to set
*/
public void setSharedCacheMode(final SharedCacheMode sharedCacheMode) {
this.sharedCacheMode = (null != sharedCacheMode ? sharedCacheMode : SharedCacheMode.UNSPECIFIED);
}