ナビゲーションリンクをスキップ
Spring Data Core
  • ホーム
  • 概要
  • パッケージ
  • クラス
  • 使用
  • ツリー
  • 非推奨
  • インデックス
  • ヘルプ

非推奨の API

内容

  • 最終的に非推奨
  • インターフェース
  • クラス
  • 列挙クラス
  • アノテーションインターフェース
  • メソッド
  • コンストラクター
  • 最終的に非推奨の要素
    要素
    説明
    org.springframework.data.mapping.PersistentPropertyPath.getRequiredLeafProperty()
    代わりに PersistentPropertyPath.getLeafProperty() を使用してください。
    org.springframework.data.repository.core.support.RepositoryFragment.ImplementedRepositoryFragment(Optional<Class<T>>, T)
    3.4 以降 - 代わりに ImplementedRepositoryFragment(java.lang.Class<T>,T) を使用してください。
    org.springframework.data.repository.query.Parameter(MethodParameter)
    3.1 以降、代わりに Parameter(MethodParameter, TypeInformation) を使用してください。
    org.springframework.data.repository.query.Parameters(Method, Function<MethodParameter, T>)
    3.2.1 以降、代わりに Parameters(org.springframework.data.repository.query.ParametersSource,java.util.function.Function<org.springframework.core.MethodParameter,T>) を使用してください。
    org.springframework.data.repository.query.QueryMethod.createParameters(Method, TypeInformation<?>)
    3.2.1 以降、代わりに QueryMethod.createParameters(ParametersSource) を使用してください。
    org.springframework.data.repository.util.ReactiveWrappers
    3.0 以降、ユーティリティは org.springframework.data.util パッケージに移動されたため、代わりに ReactiveWrappers を使用してください。
    org.springframework.data.repository.util.ReactiveWrappers.ReactiveLibrary
    代わりに ReactiveWrappers.ReactiveLibrary を使用してください。
    org.springframework.data.util.ClassTypeInformation
    3.0 はある時点でパッケージ保護に移行するためです。TypeInformation のみを参照してください。
    org.springframework.data.web.PagedResourcesAssembler.getMethodParameter()
    3.1 以降は、むしろ PagedResourcesAssembler.withParameter(MethodParameter) を使用してインスタンスをセットアップします。
  • 非推奨のインターフェース
    インターフェース
    説明
    org.springframework.data.mapping.model.SpELExpressionEvaluator
    org.springframework.data.repository.query.QueryMethodEvaluationContextProvider
    QueryMethodValueEvaluationContextAccessor を推奨する 3.4 以降。
    org.springframework.data.repository.query.ReactiveQueryMethodEvaluationContextProvider
    QueryMethodValueEvaluationContextAccessor を推奨する 3.4 以降。
    org.springframework.data.type.classreading.MethodsMetadataReader
    3.0 以降、MetadataReader を使用して declared methods を直接取得します。
    org.springframework.data.type.MethodsMetadata
    3.0 以降、MetadataReader を直接使用して declared methods を直接取得します。
  • 非推奨のクラス
    クラス
    説明
    org.springframework.data.mapping.model.DefaultSpELExpressionEvaluator
    3.3 以降、代わりに CachingValueExpressionEvaluatorFactory を使用してください。
    org.springframework.data.mapping.model.SpELExpressionParameterValueProvider
    3.3 以降、代わりに ValueExpressionParameterValueProvider を使用してください。
    org.springframework.data.repository.query.ExtensionAwareQueryMethodEvaluationContextProvider
    QueryMethodValueEvaluationContextAccessor を推奨する 3.4 以降。
    org.springframework.data.repository.query.ReactiveExtensionAwareQueryMethodEvaluationContextProvider
    QueryMethodValueEvaluationContextAccessor を推奨する 3.4 以降。
    org.springframework.data.repository.query.SpelEvaluator
    3.3 以降、代わりに ValueExpressionQueryRewriter を使用してください。
    org.springframework.data.repository.query.SpelQueryContext
    3.3 以降、代わりに ValueExpressionQueryRewriter を使用してください。
    org.springframework.data.repository.util.ReactiveWrappers
    3.0 以降、ユーティリティは org.springframework.data.util パッケージに移動されたため、代わりに ReactiveWrappers を使用してください。
    org.springframework.data.transaction.ChainedTransactionManager
    2.5 以降
    org.springframework.data.type.classreading.MethodsMetadataReaderFactory
    3.0 以来。SimpleMetadataReaderFactory を直接使用します。
    org.springframework.data.util.ClassTypeInformation
    3.0 はある時点でパッケージ保護に移行するためです。TypeInformation のみを参照してください。
  • 非推奨の Enum クラス
    列挙型 Class
    説明
    org.springframework.data.repository.util.ReactiveWrappers.ReactiveLibrary
    代わりに ReactiveWrappers.ReactiveLibrary を使用してください。
  • 非推奨のアノテーションインターフェース
    アノテーションインターフェース
    説明
    org.springframework.data.annotation.PersistenceConstructor
    3.0 以降の PersistenceCreator を推奨し、3.1 で削除
  • 非推奨のメソッド
    メソッド
    説明
    org.springframework.data.mapping.model.MappingInstantiationException.getConstructor()
    3.0 以降、代わりに MappingInstantiationException.getEntityCreator() を使用してください。
    org.springframework.data.mapping.model.ValueExpressionParameterValueProvider.potentiallyConvertSpelValue(Object, Parameter<T, P>)
    3.3 以降、代わりに ValueExpressionParameterValueProvider.potentiallyConvertExpressionValue(Object, Parameter) を使用してください。
    org.springframework.data.mapping.Parameter.getSpelExpression()
    3.3 以降、代わりに Parameter.getValueExpression() を使用してください。
    org.springframework.data.mapping.Parameter.hasSpelExpression()
    3.3 以降、代わりに Parameter.hasValueExpression() を使用してください。
    org.springframework.data.mapping.PersistentEntity.getPersistenceConstructor()
    3.0 以降、PersistentEntity.getInstanceCreatorMetadata() を使用します。
    org.springframework.data.mapping.PersistentEntity.isConstructorArgument(PersistentProperty<?>)
    3.0 以降、代わりに PersistentEntity.isCreatorArgument(PersistentProperty) を使用してください。
    org.springframework.data.mapping.PersistentPropertyPath.getRequiredLeafProperty()
    代わりに PersistentPropertyPath.getLeafProperty() を使用してください。
    org.springframework.data.mapping.PreferredConstructor.isConstructorParameter(PersistentProperty<?>)
    3.0 以降、代わりに InstanceCreatorMetadata.isCreatorParameter(PersistentProperty) を使用してください。
    org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport.registerBeanDefinitions(AnnotationMetadata, BeanDefinitionRegistry)
    2.2 以降、代わりに RepositoryBeanDefinitionRegistrarSupport.registerBeanDefinitions(AnnotationMetadata, BeanDefinitionRegistry, BeanNameGenerator) を呼び出します。
    org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport.getModulePrefix()
    3.0 以降、代わりに RepositoryConfigurationExtension.getModuleIdentifier() を参照し、RepositoryConfigurationExtension.getModuleIdentifier() で定義されている名前から識別子へのデフォルトの変換が適切でない場合は、RepositoryConfigurationExtensionSupport.getModuleName() を直接実装するか、両方のメソッドを実装してください。
    org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.createDefaultQueryMethodEvaluationContextProvider(ListableBeanFactory)
    3.4 以降、代わりに RepositoryFactoryBeanSupport.createDefaultEvaluationContextProvider(ListableBeanFactory) を使用してください。
    org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.setEvaluationContextProvider(QueryMethodEvaluationContextProvider)
    3.4 以降、代わりに RepositoryFactoryBeanSupport.setEvaluationContextProvider(EvaluationContextProvider) を使用してください。
    org.springframework.data.repository.core.support.RepositoryFactorySupport.getQueryLookupStrategy(QueryLookupStrategy.Key, QueryMethodEvaluationContextProvider)
    3.4 以降、クエリメソッドで ValueExpression をサポートするには、代わりに RepositoryFactorySupport.getQueryLookupStrategy(Key, ValueExpressionDelegate) を使用します。
    org.springframework.data.repository.core.support.RepositoryFactorySupport.getTargetRepositoryViaReflection(Class<?>, Object...)
    2.6 以降、誤解を招く名前が付けられているためです。代わりに RepositoryFactorySupport.instantiateClass(Class, Object...) を使用してください。
    org.springframework.data.repository.core.support.RepositoryFactorySupport.setEvaluationContextProvider(QueryMethodEvaluationContextProvider)
    3.4 以降、代わりに RepositoryFactorySupport.setEvaluationContextProvider(EvaluationContextProvider) を使用してください。
    org.springframework.data.repository.query.QueryMethod.createParameters(Method, TypeInformation<?>)
    3.2.1 以降、代わりに QueryMethod.createParameters(ParametersSource) を使用してください。
    org.springframework.data.repository.util.ClassUtils.getNumberOfOccurences(Method, Class<?>)
    ClassUtils.getNumberOfOccurrences(Method, Class) を使用します。
    org.springframework.data.util.ClassTypeInformation.from(Class<S>)
    3.0 以来。代わりに TypeInformation.of(org.springframework.core.ResolvableType) を使用してください。
    org.springframework.data.util.ClassTypeInformation.fromReturnTypeOf(Method)
    3.0 以来。代わりに TypeInformation.fromReturnTypeOf(Method) を使用してください。
    org.springframework.data.web.PagedResourcesAssembler.getMethodParameter()
    3.1 以降は、むしろ PagedResourcesAssembler.withParameter(MethodParameter) を使用してインスタンスをセットアップします。
  • 非推奨のコンストラクター
    コンストラクター
    説明
    org.springframework.data.querydsl.QPageRequest(int, int)
    2.1 以降、代わりに QPageRequest.of(int, int) を使用してください。
    org.springframework.data.querydsl.QPageRequest(int, int, OrderSpecifier<?>...)
    2.1 以降、代わりに QPageRequest.of(int, int, OrderSpecifier...) を使用してください。
    org.springframework.data.querydsl.QPageRequest(int, int, QSort)
    2.1 以降、代わりに QPageRequest.of(int, int, QSort) を使用してください。
    org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource(AnnotationMetadata, Class<? extends Annotation>, ResourceLoader, Environment, BeanDefinitionRegistry)
    2.2 以降。BeanNameGenerator を追加で使用するオーバーロードを使用することをお勧めします。
    org.springframework.data.repository.core.support.RepositoryFragment.ImplementedRepositoryFragment(Optional<Class<T>>, T)
    3.4 以降 - 代わりに ImplementedRepositoryFragment(java.lang.Class<T>,T) を使用してください。
    org.springframework.data.repository.query.Parameter(MethodParameter)
    3.1 以降、代わりに Parameter(MethodParameter, TypeInformation) を使用してください。
    org.springframework.data.repository.query.Parameters(Method, Function<MethodParameter, T>)
    3.2.1 以降、代わりに Parameters(org.springframework.data.repository.query.ParametersSource,java.util.function.Function<org.springframework.core.MethodParameter,T>) を使用してください。

Copyright © 2011–2025 Pivotal Software, Inc.. All rights reserved.