当前位置: 首页>>代码示例>>Java>>正文


Java SharedCacheMode.UNSPECIFIED属性代码示例

本文整理汇总了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);
}
 
开发者ID:arievanwi,项目名称:osgi.ee,代码行数:7,代码来源:PersistenceUnitInfoImpl.java

示例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
    }
}
 
开发者ID:apache,项目名称:tomee,代码行数:11,代码来源:ReloadableEntityManagerFactory.java

示例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);
    }
}
 
开发者ID:everit-org-archive,项目名称:osgi-jpa-container,代码行数:11,代码来源:PersistenceUnitInfoImpl.java

示例4: getSharedCacheMode

@Override
public SharedCacheMode getSharedCacheMode() {
    return SharedCacheMode.UNSPECIFIED;
}
 
开发者ID:vladmihalcea,项目名称:hibernate-types,代码行数:4,代码来源:PersistenceUnitInfoImpl.java

示例5: getSharedCacheMode

@Override
public SharedCacheMode getSharedCacheMode() {
	return SharedCacheMode.UNSPECIFIED;
}
 
开发者ID:kiswanij,项目名称:jk-db,代码行数:4,代码来源:JKPersistenceUnitInfoImpl.java

示例6: getSharedCacheMode

public SharedCacheMode getSharedCacheMode() {
    return (sharedCacheMode == null) ? SharedCacheMode.UNSPECIFIED : sharedCacheMode;
}
 
开发者ID:apache,项目名称:tomee,代码行数:3,代码来源:PersistenceUnit.java

示例7: setSharedCacheMode

/**
 * @param sharedCacheMode the sharedCacheMode to set
 */
public void setSharedCacheMode(final SharedCacheMode sharedCacheMode) {
    this.sharedCacheMode = (null != sharedCacheMode ? sharedCacheMode : SharedCacheMode.UNSPECIFIED);
}
 
开发者ID:apache,项目名称:tomee,代码行数:6,代码来源:PersistenceUnitInfoImpl.java


注:本文中的javax.persistence.SharedCacheMode.UNSPECIFIED属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。