Class InstantiatorProvider
- java.lang.Object
-
- org.dalesbred.internal.instantiation.InstantiatorProvider
-
public final class InstantiatorProvider extends java.lang.Object
ProvidesInstantiator
s for classes.
-
-
Constructor Summary
Constructors Constructor Description InstantiatorProvider(@NotNull Dialect dialect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> @NotNull Instantiator<T>
findInstantiator(@NotNull java.lang.Class<T> type, @NotNull NamedTypeList types)
@NotNull Instantiator<?>
findInstantiator(@NotNull java.lang.reflect.Type type, @NotNull NamedTypeList types)
@NotNull TypeConversion
getConversionFromDbValue(@NotNull java.lang.reflect.Type source, @NotNull java.lang.reflect.Type target)
Returns conversion for converting value of source-type to target-type, or throws exception if there's no such conversion.@NotNull Dialect
getDialect()
@NotNull TypeConversionRegistry
getTypeConversionRegistry()
@Nullable java.lang.Object
valueToDatabase(@Nullable java.lang.Object value)
-
-
-
Constructor Detail
-
InstantiatorProvider
public InstantiatorProvider(@NotNull @NotNull Dialect dialect)
-
-
Method Detail
-
valueToDatabase
@Nullable public @Nullable java.lang.Object valueToDatabase(@Nullable @Nullable java.lang.Object value)
-
findInstantiator
@NotNull public <T> @NotNull Instantiator<T> findInstantiator(@NotNull @NotNull java.lang.Class<T> type, @NotNull @NotNull NamedTypeList types)
-
findInstantiator
@NotNull public @NotNull Instantiator<?> findInstantiator(@NotNull @NotNull java.lang.reflect.Type type, @NotNull @NotNull NamedTypeList types)
-
getConversionFromDbValue
@NotNull public @NotNull TypeConversion getConversionFromDbValue(@NotNull @NotNull java.lang.reflect.Type source, @NotNull @NotNull java.lang.reflect.Type target)
Returns conversion for converting value of source-type to target-type, or throws exception if there's no such conversion.
-
getTypeConversionRegistry
@NotNull public @NotNull TypeConversionRegistry getTypeConversionRegistry()
-
getDialect
@NotNull public @NotNull Dialect getDialect()
-
-