Class HintResolutionCallbacks
- java.lang.Object
-
- com.alpha.mongodb.sharding.core.callback.HintResolutionCallbacks
-
public class HintResolutionCallbacks extends Object
-
-
Constructor Summary
Constructors Constructor Description HintResolutionCallbacks(Set<HintResolutionCallback<?>> callbacks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Optional<ShardingHint>
callbackForDeleteContext(Class<T> entityClass, org.bson.Document query)
<T> Optional<ShardingHint>
callbackForDeleteContext(Class<T> entityClass, org.springframework.data.mongodb.core.query.Query query)
<T> Optional<ShardingHint>
callbackForDeleteContext(T entity)
<T> Optional<ShardingHint>
callbackForFindContext(Class<T> entityClass, org.bson.Document query)
<T> Optional<ShardingHint>
callbackForFindContext(Class<T> entityClass, org.springframework.data.mongodb.core.query.Query query)
<T> Optional<ShardingHint>
callbackForSaveContext(Class<T> entityClass, T entity)
<T> Optional<ShardingHint>
callbackForUpdateContext(Class<T> entityClass, org.bson.Document query, org.springframework.data.mongodb.core.query.UpdateDefinition updateDefinition)
<T> Optional<ShardingHint>
callbackForUpdateContext(Class<T> entityClass, org.springframework.data.mongodb.core.query.Query query, org.springframework.data.mongodb.core.query.UpdateDefinition updateDefinition)
void
discover(HintResolutionCallback<?> callback)
void
discover(Set<HintResolutionCallback<?>> callbacks)
void
discover(org.springframework.beans.factory.BeanFactory beanFactory)
<T> Optional<HintResolutionCallback<T>>
getCallback(Class<T> entityClass)
-
-
-
Constructor Detail
-
HintResolutionCallbacks
public HintResolutionCallbacks(Set<HintResolutionCallback<?>> callbacks)
-
-
Method Detail
-
discover
public void discover(Set<HintResolutionCallback<?>> callbacks)
-
discover
public void discover(org.springframework.beans.factory.BeanFactory beanFactory)
-
discover
public void discover(HintResolutionCallback<?> callback)
-
getCallback
public <T> Optional<HintResolutionCallback<T>> getCallback(Class<T> entityClass)
-
callbackForFindContext
public <T> Optional<ShardingHint> callbackForFindContext(Class<T> entityClass, org.springframework.data.mongodb.core.query.Query query)
-
callbackForFindContext
public <T> Optional<ShardingHint> callbackForFindContext(Class<T> entityClass, org.bson.Document query)
-
callbackForSaveContext
public <T> Optional<ShardingHint> callbackForSaveContext(Class<T> entityClass, T entity)
-
callbackForUpdateContext
public <T> Optional<ShardingHint> callbackForUpdateContext(Class<T> entityClass, org.springframework.data.mongodb.core.query.Query query, org.springframework.data.mongodb.core.query.UpdateDefinition updateDefinition)
-
callbackForUpdateContext
public <T> Optional<ShardingHint> callbackForUpdateContext(Class<T> entityClass, org.bson.Document query, org.springframework.data.mongodb.core.query.UpdateDefinition updateDefinition)
-
callbackForDeleteContext
public <T> Optional<ShardingHint> callbackForDeleteContext(Class<T> entityClass, org.springframework.data.mongodb.core.query.Query query)
-
callbackForDeleteContext
public <T> Optional<ShardingHint> callbackForDeleteContext(Class<T> entityClass, org.bson.Document query)
-
callbackForDeleteContext
public <T> Optional<ShardingHint> callbackForDeleteContext(T entity)
-
-