Class Dialect

    • Constructor Detail

      • Dialect

        public Dialect()
    • Method Detail

      • valueToDatabase

        @NotNull
        public @NotNull java.lang.Object valueToDatabase​(@NotNull
                                                         @NotNull java.lang.Object value)
      • createNativeEnumConversions

        @NotNull
        public <T extends java.lang.Enum<T>,​K> @NotNull TypeConversionPair<java.lang.Object,​T> createNativeEnumConversions​(@NotNull
                                                                                                                                       @NotNull java.lang.Class<T> enumType,
                                                                                                                                       @NotNull
                                                                                                                                       @NotNull java.lang.String typeName,
                                                                                                                                       @NotNull
                                                                                                                                       @NotNull java.util.function.Function<T,​K> keyFunction)
      • toString

        @NotNull
        public @NotNull java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • detect

        @NotNull
        public static @NotNull Dialect detect​(@NotNull
                                              @NotNull javax.sql.DataSource dataSource)
      • detect

        @NotNull
        public static @NotNull Dialect detect​(@NotNull
                                              @NotNull java.sql.Connection connection)
      • convertException

        @NotNull
        public @NotNull DatabaseException convertException​(@NotNull
                                                           @NotNull java.sql.SQLException e)
      • registerTypeConversions

        public void registerTypeConversions​(@NotNull
                                            @NotNull TypeConversionRegistry typeConversionRegistry)
      • bindArgument

        public void bindArgument​(@NotNull
                                 @NotNull java.sql.PreparedStatement ps,
                                 int index,
                                 @Nullable
                                 @Nullable java.lang.Object value)
                          throws java.sql.SQLException
        Bind object to PreparedStatement. Can be overridden by subclasses to implement custom argument binding.
        Parameters:
        ps - statement to bind object to
        index - index of the parameter
        value - to bind
        Throws:
        java.sql.SQLException - if something fails
      • overrideResultSetMetaDataType

        @Nullable
        public @Nullable java.lang.reflect.Type overrideResultSetMetaDataType​(@NotNull
                                                                              @NotNull java.lang.String className)