Class SqlArray


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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String getType()
      Returns the database type for the array.
      @NotNull java.util.List<?> getValues()
      Returns the values of the array.
      static @NotNull SqlArray of​(@NotNull java.lang.String type, @NotNull java.lang.Object[] values)
      Constructs array of specified type.
      static @NotNull SqlArray of​(@NotNull java.lang.String type, @NotNull java.util.Collection<?> values)
      Constructs array of specified type.
      java.lang.String toString()  
      static @NotNull SqlArray varchars​(@NotNull java.lang.String... values)
      Constructs varchar array of given values.
      static @NotNull SqlArray varchars​(@NotNull java.util.Collection<java.lang.String> values)
      Constructs varchar array of given values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • of

        @NotNull
        public static @NotNull SqlArray of​(@NotNull
                                           @NotNull java.lang.String type,
                                           @NotNull
                                           @NotNull java.util.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 java.lang.String type,
                                           @NotNull
                                           @NotNull java.lang.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 java.util.Collection<java.lang.String> values)
        Constructs varchar array of given values.
      • varchars

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

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object