Class SqlArray

java.lang.Object
org.dalesbred.datatype.SqlArray

public final class SqlArray extends Object
Wrapper for values that are to be bound as Array objects when executing queries.
  • Method Details

    • of

      @NotNull public static @NotNull SqlArray of(@NotNull @NotNull String type, @NotNull @NotNull Collection<?> values)
      Constructs array of specified type.
      Parameters:
      type - database type for the array
      values - for the array
    • of

      @NotNull public static @NotNull SqlArray of(@NotNull @NotNull String type, @NotNull @NotNull Object[] values)
      Constructs array of specified type.
      Parameters:
      type - database type for the array
      values - for the array
    • varchars

      @NotNull public static @NotNull SqlArray varchars(@NotNull @NotNull Collection<String> values)
      Constructs varchar array of given values.
    • varchars

      @NotNull public static @NotNull SqlArray varchars(@NotNull @NotNull String... values)
      Constructs varchar array of given values.
    • getType

      @NotNull public @NotNull String getType()
      Returns the database type for the array.
    • getValues

      @NotNull public @NotNull List<?> getValues()
      Returns the values of the array.
    • toString

      public String toString()
      Overrides:
      toString in class Object