/** {@inheritDoc} */ @Override public Object generateCacheKey(Object[] naturalIdValues, EntityPersister persister, SessionImplementor ses) { return DefaultCacheKeysFactory.staticCreateNaturalIdKey(naturalIdValues, persister, ses); }
/** {@inheritDoc} */ @Override public Object[] getNaturalIdValues(Object cacheKey) { return DefaultCacheKeysFactory.staticGetNaturalIdValues(cacheKey); }
private Object cacheKey(Serializable identifier, EntityPersister p) { return DefaultCacheKeysFactory.INSTANCE.createEntityKey( identifier, p, (SessionFactoryImplementor) sessionFactory(), null ); }
@Override public Object generateCacheKey(Object id, EntityPersister persister, SessionFactoryImplementor factory, String tenantIdentifier) { return DefaultCacheKeysFactory.INSTANCE.createEntityKey(id, persister, factory, tenantIdentifier); }
@Override public Object getCacheKeyId(Object cacheKey) { return DefaultCacheKeysFactory.INSTANCE.getEntityId(cacheKey); }
@Override public Object generateCacheKey(Object[] naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session) { return DefaultCacheKeysFactory.INSTANCE.createNaturalIdKey(naturalIdValues, persister, session); }
@Override public Object[] getNaturalIdValues(Object cacheKey) { return DefaultCacheKeysFactory.INSTANCE.getNaturalIdValues(cacheKey); }
@Override public Object generateCacheKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier) { return DefaultCacheKeysFactory.INSTANCE.createCollectionKey(id, persister, factory, tenantIdentifier); }
@Override public Object getCacheKeyId(Object cacheKey) { return DefaultCacheKeysFactory.INSTANCE.getCollectionId(cacheKey); }