Class SimpleMeilisearchPersistentEntity<T>
java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T,MeilisearchPersistentProperty>
io.vanslog.spring.data.meilisearch.core.mapping.SimpleMeilisearchPersistentEntity<T>
- Type Parameters:
T-
- All Implemented Interfaces:
MeilisearchPersistentEntity<T>,Iterable<MeilisearchPersistentProperty>,Aware,ApplicationContextAware,EnvironmentAware,MutablePersistentEntity<T,,MeilisearchPersistentProperty> PersistentEntity<T,MeilisearchPersistentProperty>
public class SimpleMeilisearchPersistentEntity<T>
extends BasicPersistentEntity<T,MeilisearchPersistentProperty>
implements MeilisearchPersistentEntity<T>, ApplicationContextAware
Meilisearch specific
BasicPersistentEntity implementation holding.- Author:
- Junghoon Ban
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleMeilisearchPersistentEntity(TypeInformation<T> information) Creates a newSimpleMeilisearchPersistentEntitywith the givenTypeInformation. -
Method Summary
Modifier and TypeMethodDescriptioncom.meilisearch.sdk.model.SettingsReturns the default settings for an index.Returns the Index UID of the persistent entity.booleanReturns whether to apply the settings to the index on repository bootstrapping.voidsetApplicationContext(ApplicationContext applicationContext) Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getValueEvaluationContext, getValueEvaluationContext, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEnvironment, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
-
Constructor Details
-
SimpleMeilisearchPersistentEntity
Creates a newSimpleMeilisearchPersistentEntitywith the givenTypeInformation.- Parameters:
information- must not be null.
-
-
Method Details
-
setApplicationContext
- Specified by:
setApplicationContextin interfaceApplicationContextAware- Throws:
BeansException
-
getIndexUid
Description copied from interface:MeilisearchPersistentEntityReturns the Index UID of the persistent entity.- Specified by:
getIndexUidin interfaceMeilisearchPersistentEntity<T>- Returns:
- Index UID
-
isApplySettings
public boolean isApplySettings()Description copied from interface:MeilisearchPersistentEntityReturns whether to apply the settings to the index on repository bootstrapping.- Specified by:
isApplySettingsin interfaceMeilisearchPersistentEntity<T>- Returns:
- applySettings
-
getDefaultSettings
public com.meilisearch.sdk.model.Settings getDefaultSettings()Description copied from interface:MeilisearchPersistentEntityReturns the default settings for an index.- Specified by:
getDefaultSettingsin interfaceMeilisearchPersistentEntity<T>- Returns:
- settings
-