Class InstantiatorProvider

java.lang.Object
org.dalesbred.internal.instantiation.InstantiatorProvider

public final class InstantiatorProvider extends Object
Provides Instantiators for classes.
  • Constructor Details

    • InstantiatorProvider

      public InstantiatorProvider(@NotNull @NotNull Dialect dialect)
  • Method Details

    • valueToDatabase

      @Nullable public @Nullable Object valueToDatabase(@Nullable @Nullable Object value)
    • findInstantiator

      @NotNull public <T> @NotNull Instantiator<T> findInstantiator(@NotNull @NotNull Class<T> type, @NotNull @NotNull NamedTypeList types)
    • findInstantiator

      @NotNull public @NotNull Instantiator<?> findInstantiator(@NotNull @NotNull Type type, @NotNull @NotNull NamedTypeList types)
    • getConversionFromDbValue

      @NotNull public @NotNull TypeConversion getConversionFromDbValue(@NotNull @NotNull Type source, @NotNull @NotNull 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()