Class InstantiatorProvider


  • public final class InstantiatorProvider
    extends java.lang.Object
    Provides Instantiators for classes.
    • 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.
      • getDialect

        @NotNull
        public @NotNull Dialect getDialect()