HHH-11083 Fix compilation failures in hibernate-jcache

This commit is contained in:
Radim Vansa 2016-11-23 11:02:33 +01:00
parent 30974c1cd4
commit 45a65daf02
9 changed files with 18 additions and 18 deletions

View File

@ -28,12 +28,12 @@ public class NonStrictCollectionRegionAccessStrategy
@Override
public Object generateCacheKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier) {
return DefaultCacheKeysFactory.createCollectionKey( id, persister, factory, tenantIdentifier );
return DefaultCacheKeysFactory.staticCreateCollectionKey( id, persister, factory, tenantIdentifier );
}
@Override
public Object getCacheKeyId(Object cacheKey) {
return DefaultCacheKeysFactory.getCollectionId( cacheKey );
return DefaultCacheKeysFactory.staticGetCollectionId( cacheKey );
}
@Override

View File

@ -53,12 +53,12 @@ public class NonStrictEntityRegionAccessStrategy extends JCacheRegionAccessStrat
@Override
public Object generateCacheKey(Object id, EntityPersister persister, SessionFactoryImplementor factory, String tenantIdentifier) {
return DefaultCacheKeysFactory.createEntityKey( id, persister, factory, tenantIdentifier );
return DefaultCacheKeysFactory.staticCreateEntityKey( id, persister, factory, tenantIdentifier );
}
@Override
public Object getCacheKeyId(Object cacheKey) {
return DefaultCacheKeysFactory.getEntityId( cacheKey );
return DefaultCacheKeysFactory.staticGetEntityId( cacheKey );
}
@Override

View File

@ -50,11 +50,11 @@ public class NonStrictNaturalIdRegionAccessStrategy
@Override
public Object generateCacheKey(Object[] naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session) {
return DefaultCacheKeysFactory.createNaturalIdKey( naturalIdValues, persister, session );
return DefaultCacheKeysFactory.staticCreateNaturalIdKey( naturalIdValues, persister, session );
}
@Override
public Object[] getNaturalIdValues(Object cacheKey) {
return DefaultCacheKeysFactory.getNaturalIdValues( cacheKey );
return DefaultCacheKeysFactory.staticGetNaturalIdValues( cacheKey );
}
}

View File

@ -26,11 +26,11 @@ public class ReadOnlyCollectionRegionAccessStrategy
@Override
public Object generateCacheKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier) {
return DefaultCacheKeysFactory.createCollectionKey( id, persister, factory, tenantIdentifier );
return DefaultCacheKeysFactory.staticCreateCollectionKey( id, persister, factory, tenantIdentifier );
}
@Override
public Object getCacheKeyId(Object cacheKey) {
return DefaultCacheKeysFactory.getCollectionId( cacheKey );
return DefaultCacheKeysFactory.staticGetCollectionId( cacheKey );
}
}

View File

@ -50,11 +50,11 @@ public class ReadOnlyEntityRegionAccessStrategy extends JCacheRegionAccessStrate
@Override
public Object generateCacheKey(Object id, EntityPersister persister, SessionFactoryImplementor factory, String tenantIdentifier) {
return DefaultCacheKeysFactory.createEntityKey( id, persister, factory, tenantIdentifier );
return DefaultCacheKeysFactory.staticCreateEntityKey( id, persister, factory, tenantIdentifier );
}
@Override
public Object getCacheKeyId(Object cacheKey) {
return DefaultCacheKeysFactory.getEntityId( cacheKey );
return DefaultCacheKeysFactory.staticGetEntityId( cacheKey );
}
}

View File

@ -49,11 +49,11 @@ public class ReadOnlyNaturalIdRegionAccessStrategy
@Override
public Object generateCacheKey(Object[] naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session) {
return DefaultCacheKeysFactory.createNaturalIdKey( naturalIdValues, persister, session );
return DefaultCacheKeysFactory.staticCreateNaturalIdKey( naturalIdValues, persister, session );
}
@Override
public Object[] getNaturalIdValues(Object cacheKey) {
return DefaultCacheKeysFactory.getNaturalIdValues( cacheKey );
return DefaultCacheKeysFactory.staticGetNaturalIdValues( cacheKey );
}
}

View File

@ -26,12 +26,12 @@ public class ReadWriteCollectionRegionAccessStrategy
@Override
public Object generateCacheKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier) {
return DefaultCacheKeysFactory.createCollectionKey( id, persister, factory, tenantIdentifier );
return DefaultCacheKeysFactory.staticCreateCollectionKey( id, persister, factory, tenantIdentifier );
}
@Override
public Object getCacheKeyId(Object cacheKey) {
return DefaultCacheKeysFactory.getCollectionId( cacheKey );
return DefaultCacheKeysFactory.staticGetCollectionId( cacheKey );
}
}

View File

@ -72,11 +72,11 @@ public class ReadWriteEntityRegionAccessStrategy
@Override
public Object generateCacheKey(Object id, EntityPersister persister, SessionFactoryImplementor factory, String tenantIdentifier) {
return DefaultCacheKeysFactory.createEntityKey( id, persister, factory, tenantIdentifier );
return DefaultCacheKeysFactory.staticCreateEntityKey( id, persister, factory, tenantIdentifier );
}
@Override
public Object getCacheKeyId(Object cacheKey) {
return DefaultCacheKeysFactory.getEntityId( cacheKey );
return DefaultCacheKeysFactory.staticGetEntityId( cacheKey );
}
}

View File

@ -71,11 +71,11 @@ public class ReadWriteNaturalIdRegionAccessStrategy
@Override
public Object generateCacheKey(Object[] naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session) {
return DefaultCacheKeysFactory.createNaturalIdKey( naturalIdValues, persister, session );
return DefaultCacheKeysFactory.staticCreateNaturalIdKey( naturalIdValues, persister, session );
}
@Override
public Object[] getNaturalIdValues(Object cacheKey) {
return DefaultCacheKeysFactory.getNaturalIdValues( cacheKey );
return DefaultCacheKeysFactory.staticGetNaturalIdValues( cacheKey );
}
}