Java Code Examples for javax.persistence.SharedCacheMode#UNSPECIFIED

The following examples show how to use javax.persistence.SharedCacheMode#UNSPECIFIED . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ReloadableEntityManagerFactory.java    From tomee with Apache License 2.0 5 votes vote down vote up
@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
    }
}
 
Example 2
Source File: DynamicEntityUnitInfo.java    From we-cmdb with Apache License 2.0 4 votes vote down vote up
@Override
public SharedCacheMode getSharedCacheMode() {
    return SharedCacheMode.UNSPECIFIED;
}
 
Example 3
Source File: PersistenceUnitInfoImpl.java    From hypersistence-optimizer with Apache License 2.0 4 votes vote down vote up
@Override
public SharedCacheMode getSharedCacheMode() {
    return SharedCacheMode.UNSPECIFIED;
}
 
Example 4
Source File: PersistenceUnitInfoImpl.java    From hibernate-types with Apache License 2.0 4 votes vote down vote up
@Override
public SharedCacheMode getSharedCacheMode() {
    return SharedCacheMode.UNSPECIFIED;
}
 
Example 5
Source File: PersistenceUnitInfoImpl.java    From hibernate-types with Apache License 2.0 4 votes vote down vote up
@Override
public SharedCacheMode getSharedCacheMode() {
    return SharedCacheMode.UNSPECIFIED;
}
 
Example 6
Source File: PersistenceUnitInfoImpl.java    From hibernate-types with Apache License 2.0 4 votes vote down vote up
@Override
public SharedCacheMode getSharedCacheMode() {
    return SharedCacheMode.UNSPECIFIED;
}
 
Example 7
Source File: PersistenceUnitInfoImpl.java    From hibernate-types with Apache License 2.0 4 votes vote down vote up
@Override
public SharedCacheMode getSharedCacheMode() {
    return SharedCacheMode.UNSPECIFIED;
}
 
Example 8
Source File: PersistenceUnitInfoImpl.java    From high-performance-java-persistence with Apache License 2.0 4 votes vote down vote up
@Override
public SharedCacheMode getSharedCacheMode() {
    return SharedCacheMode.UNSPECIFIED;
}
 
Example 9
Source File: PersistenceUnitInfoImpl.java    From hibernate-master-class with Apache License 2.0 4 votes vote down vote up
@Override
public SharedCacheMode getSharedCacheMode() {
    return SharedCacheMode.UNSPECIFIED;
}
 
Example 10
Source File: PersistenceUnit.java    From tomee with Apache License 2.0 4 votes vote down vote up
public SharedCacheMode getSharedCacheMode() {
    return (sharedCacheMode == null) ? SharedCacheMode.UNSPECIFIED : sharedCacheMode;
}
 
Example 11
Source File: PersistenceUnitInfoImpl.java    From tomee with Apache License 2.0 4 votes vote down vote up
/**
 * @param sharedCacheMode the sharedCacheMode to set
 */
public void setSharedCacheMode(final SharedCacheMode sharedCacheMode) {
    this.sharedCacheMode = (null != sharedCacheMode ? sharedCacheMode : SharedCacheMode.UNSPECIFIED);
}
 
Example 12
Source File: PersistenceUnitInfoImpl.java    From tutorials with MIT License 4 votes vote down vote up
@Override
public SharedCacheMode getSharedCacheMode() {
    return SharedCacheMode.UNSPECIFIED;
}
 
Example 13
Source File: HibernatePersistenceUnitInfo.java    From tutorials with MIT License 4 votes vote down vote up
@Override
public SharedCacheMode getSharedCacheMode() {
    return SharedCacheMode.UNSPECIFIED;
}