Compartilhar via


EnableCosmosRepositories Interface

Implements

public interface EnableCosmosRepositories
implements Annotation

Interface to enable cosmos repository

Method Summary

Modifier and Type Method and Description
abstract Class<?>[] basePackageClasses()

To set base package class

abstract String[] basePackages()

To set base packages

abstract boolean considerNestedRepositories()

To set if consider nested repositories

abstract String cosmosTemplateRef()

Configures the name of the CosmosTemplate bean to be used with the repositories detected.

abstract org.springframework.context.annotation.ComponentScan.Filter[] excludeFilters()

To exclude filters

abstract org.springframework.context.annotation.ComponentScan.Filter[] includeFilters()

To include filters

abstract String namedQueriesLocation()

To set the named query location

abstract org.springframework.data.repository.query.QueryLookupStrategy.Key queryLookupStrategy()

To set query look up strategy

abstract Class<?> repositoryBaseClass()

To set base class of repo

abstract Class<?> repositoryFactoryBeanClass()

To set factory bean class of repo

abstract String repositoryImplementationPostfix()

To set repo Implement postfix

abstract String[] value()

To set repo value

Method Details

basePackageClasses

public abstract Class[] basePackageClasses()

To set base package class

Returns:

default as {}

basePackages

public abstract String[] basePackages()

To set base packages

Returns:

default as {}

considerNestedRepositories

public abstract boolean considerNestedRepositories()

To set if consider nested repositories

Returns:

default value is false

cosmosTemplateRef

public abstract String cosmosTemplateRef()

Configures the name of the CosmosTemplate bean to be used with the repositories detected.

Returns:

cosmosTemplate by default.

excludeFilters

public abstract ComponentScan.Filter[] excludeFilters()

To exclude filters

Returns:

default as {}

includeFilters

public abstract ComponentScan.Filter[] includeFilters()

To include filters

Returns:

default as {}

namedQueriesLocation

public abstract String namedQueriesLocation()

To set the named query location

Returns:

default as ""

queryLookupStrategy

public abstract QueryLookupStrategy.Key queryLookupStrategy()

To set query look up strategy

Returns:

QueryLookupStrategy.Key

repositoryBaseClass

public abstract Class repositoryBaseClass()

To set base class of repo

Returns:

default value is DefaultRepositoryBaseClass.class

repositoryFactoryBeanClass

public abstract Class repositoryFactoryBeanClass()

To set factory bean class of repo

Returns:

default value is ReactiveCosmosRepositoryFactoryBean.class

repositoryImplementationPostfix

public abstract String repositoryImplementationPostfix()

To set repo Implement postfix

Returns:

default as "Impl"

value

public abstract String[] value()

To set repo value

Returns:

default as {}

Applies to