public abstract class QueryExecutionConverters extends Object
java.util.concurrent.Future
java.util.concurrent.CompletableFuture
org.springframework.util.concurrent.ListenableFuture<
javaslang.collection.Seq
, javaslang.collection.Map
, javaslang.collection.Set
- as of
1.13io.vavr.collection.Seq
, io.vavr.collection.Map
, io.vavr.collection.Set
- as of 2.0ReactiveWrappers
- as of 2.0NullableWrapperConverters
Modifier and Type | Class and Description |
---|---|
static interface |
QueryExecutionConverters.ExecutionAdapter |
static interface |
QueryExecutionConverters.ThrowingSupplier |
static class |
QueryExecutionConverters.WrapperType |
Modifier and Type | Method and Description |
---|---|
static Set<Class<?>> |
getAllowedPageableTypes()
Returns the types that are supported on paginating query methods.
|
static QueryExecutionConverters.ExecutionAdapter |
getExecutionAdapter(Class<?> returnType)
Returns the
QueryExecutionConverters.ExecutionAdapter to be used for the given return type. |
static boolean |
isSingleValue(Class<?> type) |
static void |
registerConvertersIn(ConfigurableConversionService conversionService)
Registers converters for wrapper types found on the classpath.
|
static boolean |
supports(Class<?> type)
Returns whether the given type is a supported wrapper type.
|
static boolean |
supportsUnwrapping(Class<?> type)
Returns whether the given wrapper type supports unwrapping.
|
static Object |
unwrap(Object source)
Unwraps the given source value in case it's one of the currently supported wrapper types detected at runtime.
|
static TypeInformation<?> |
unwrapWrapperTypes(TypeInformation<?> type)
Recursively unwraps well known wrapper types from the given
TypeInformation . |
static TypeInformation<?> |
unwrapWrapperTypes(TypeInformation<?> type,
TypeInformation<?> reference)
Recursively unwraps well known wrapper types from the given
TypeInformation but aborts at the given
reference type. |
public static boolean supports(Class<?> type)
type
- must not be null.public static boolean supportsUnwrapping(Class<?> type)
type
- must not be null.public static boolean isSingleValue(Class<?> type)
public static Set<Class<?>> getAllowedPageableTypes()
public static void registerConvertersIn(ConfigurableConversionService conversionService)
conversionService
- must not be null.@Nullable public static Object unwrap(@Nullable Object source)
source
- can be null.public static TypeInformation<?> unwrapWrapperTypes(TypeInformation<?> type, TypeInformation<?> reference)
TypeInformation
but aborts at the given
reference type.type
- must not be null.reference
- must not be null.public static TypeInformation<?> unwrapWrapperTypes(TypeInformation<?> type)
TypeInformation
.type
- must not be null.@Nullable public static QueryExecutionConverters.ExecutionAdapter getExecutionAdapter(Class<?> returnType)
QueryExecutionConverters.ExecutionAdapter
to be used for the given return type.returnType
- must not be null.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.