public class CustomConversions extends ObjectSE
ListSE とそれらの周囲のいくつかの追加ロジックです。コンバーターは、ストア固有の基本型との間で変換できる 2 組の型を構築します。これらの型は単純な型と見なされます(つまり、より深いインスペクションもネストされた変換も必要ありません。CustomConversions は SimpleTypeHolder のファクトリとしても機能します。| 修飾子と型 | クラスと説明 |
|---|---|
static class | CustomConversions.StoreConversionsCustomConversions へのストア固有の拡張をキャプチャーする値型。 |
| コンストラクターと説明 |
|---|
CustomConversions(CustomConversions.StoreConversions storeConversions, CollectionSE<?> converters) 指定されたコンバーターを登録する新しい CustomConversions インスタンスを作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
OptionalSE<ClassSE<?>> | getCustomWriteTarget(ClassSE<?> sourceType) 指定されたソース型を Mongo ネイティブ型に変換するためにカスタム変換が登録されている場合に、変換するターゲット型を返します。 |
OptionalSE<ClassSE<?>> | getCustomWriteTarget(ClassSE<?> sourceType, ClassSE<?> requestedTargetType) 指定されたソース型のインジェクトを読み取ることができるターゲット型を返します。 |
SimpleTypeHolder | getSimpleTypeHolder() 基本となる SimpleTypeHolder を返します。 |
boolean | hasCustomReadTarget(ClassSE<?> sourceType, ClassSE<?> targetType) 特定のソースを特定のターゲット型に読み取るために登録されたカスタム変換があるかどうかを返します。 |
boolean | hasCustomWriteTarget(ClassSE<?> sourceType)sourceType をネイティブ型に読み取るために登録されたカスタム変換があるかどうかを返します。 |
boolean | hasCustomWriteTarget(ClassSE<?> sourceType, ClassSE<?> targetType) 特定のソース型のオブジェクトを特定のネイティブターゲット型のオブジェクトに読み取るために登録されたカスタム変換があるかどうかを返します。 |
boolean | isSimpleType(ClassSE<?> type) 指定された型が単純であると見なされるかどうかを返します。 |
void | registerConvertersIn(ConverterRegistry conversionService) 指定された GenericConversionService にコンバーターを登録します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic CustomConversions(CustomConversions.StoreConversions storeConversions, CollectionSE<?> converters)
CustomConversions インスタンスを作成します。storeConversions - null であってはなりません。converters - null であってはなりません。public SimpleTypeHolder getSimpleTypeHolder()
SimpleTypeHolder を返します。public boolean isSimpleType(ClassSE<?> type)
Converter があるかのいずれかです。type -SimpleTypeHolder.isSimpleType(Class)public void registerConvertersIn(ConverterRegistry conversionService)
GenericConversionService にコンバーターを登録します。conversionService -public OptionalSE<ClassSE<?>> getCustomWriteTarget(ClassSE<?> sourceType)
sourceType - null であってはなりません public OptionalSE<ClassSE<?>> getCustomWriteTarget(ClassSE<?> sourceType, ClassSE<?> requestedTargetType)
requestedTargetType が null の場合、一致する最初のターゲット型を返すか、変換が見つからない場合は null を返します。sourceType - null であってはなりません requestedTargetType - null であってはなりません。public boolean hasCustomWriteTarget(ClassSE<?> sourceType)
sourceType をネイティブ型に読み取るために登録されたカスタム変換があるかどうかを返します。ただし、返される型は、指定された予期される型のサブクラスである可能性があります。sourceType - null であってはなりません public boolean hasCustomWriteTarget(ClassSE<?> sourceType, ClassSE<?> targetType)
sourceType - null であってはなりません。targetType - null であってはなりません。Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.