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 String
getType()
Returns the database type for the array.@NotNull List<?>
Returns the values of the array.static @NotNull SqlArray
Constructs array of specified type.static @NotNull SqlArray
of
(@NotNull String type, @NotNull Collection<?> values) Constructs array of specified type.toString()
static @NotNull SqlArray
Constructs varchar array of given values.static @NotNull SqlArray
varchars
(@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
-