Class EntityCache
- java.lang.Object
-
- net.lecousin.reactive.data.relational.model.EntityCache
-
public class EntityCache extends Object
-
-
Constructor Summary
Constructors Constructor Description EntityCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
getById(Class<T> type, Object id)
<T> T
getOrSet(EntityState state, org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T> entity, org.springframework.data.mapping.PersistentPropertyAccessor<T> accessor, org.springframework.data.mapping.context.MappingContext<org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,? extends org.springframework.data.relational.core.mapping.RelationalPersistentProperty> mappingContext)
Get it from cache or add it to cache.<T> void
setById(Class<T> type, Object id, T instance)
-
-
-
Method Detail
-
getOrSet
public <T> T getOrSet(EntityState state, org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T> entity, org.springframework.data.mapping.PersistentPropertyAccessor<T> accessor, org.springframework.data.mapping.context.MappingContext<org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,? extends org.springframework.data.relational.core.mapping.RelationalPersistentProperty> mappingContext)
Get it from cache or add it to cache.
-
-