クラス DomainClassConverter<T extends ConversionService & ConverterRegistry>
java.lang.ObjectSE
org.springframework.data.repository.support.DomainClassConverter<T>
- 実装されたすべてのインターフェース:
Aware
、ApplicationContextAware
、ConditionalConverter
、ConditionalGenericConverter
、GenericConverter
public class DomainClassConverter<T extends ConversionService & ConverterRegistry>
extends ObjectSE
implements ConditionalGenericConverter, ApplicationContextAware
Converter
は、任意の入力を Spring Data CrudRepository
によって管理されるドメインクラスに変換します。実装では、ConversionService
を使用して、ソース型をドメインクラスの ID 型に変換し、次に CrudRepository
を使用してドメインクラスオブジェクトに変換します。- 作成者:
- Oliver Gierke, Thomas Darimont, Alessandro Nistico, Johannes Englmeier
ネストされたクラスのサマリー
インターフェース org.springframework.core.convert.converter.GenericConverter から継承されたネストクラス / インターフェース
GenericConverter.ConvertiblePair
コンストラクターのサマリー
コンストラクター説明DomainClassConverter
(T conversionService) 指定されたConversionService
の新しいDomainClassConverter
を作成します。方法の概要
修飾子と型メソッド説明convert
(ObjectSE source, TypeDescriptor sourceType, TypeDescriptor targetType) boolean
matches
(TypeDescriptor sourceType, TypeDescriptor targetType) void
setApplicationContext
(ApplicationContext context)
コンストラクターの詳細
DomainClassConverter
指定されたConversionService
の新しいDomainClassConverter
を作成します。- パラメーター:
conversionService
- null であってはなりません。
メソッドの詳細
getConvertibleTypes
- 次で指定:
- インターフェース
GenericConverter
のgetConvertibleTypes
convert
@Nullable public ObjectSE convert(@Nullable ObjectSE source, TypeDescriptor sourceType, TypeDescriptor targetType) - 次で指定:
- インターフェース
GenericConverter
のconvert
matches
- 次で指定:
- インターフェース
ConditionalConverter
のmatches
setApplicationContext
- 次で指定:
- インターフェース
ApplicationContextAware
のsetApplicationContext