Package org.dalesbred.datatype
Class SqlArray
java.lang.Object
org.dalesbred.datatype.SqlArray
Wrapper for values that are to be bound as
Array objects
when executing queries.-
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetType()Returns the database type for the array.@NotNull List<?> Returns the values of the array.static @NotNull SqlArrayConstructs array of specified type.static @NotNull SqlArrayof(@NotNull String type, @NotNull Collection<?> values) Constructs array of specified type.toString()static @NotNull SqlArrayConstructs varchar array of given values.static @NotNull SqlArrayvarchars(@NotNull Collection<String> values) Constructs varchar array of given values.
-
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 arrayvalues- 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 arrayvalues- for the array
-
varchars
Constructs varchar array of given values. -
varchars
Constructs varchar array of given values. -
getType
Returns the database type for the array. -
getValues
Returns the values of the array. -
toString
-