Skip to content

Commit

Permalink
setValues and addValues in List
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Sep 11, 2024
1 parent 8d9f782 commit 9a31c57
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ public StatementBuilder setValues(Object... values) {
return this;
}

/**
* Set the values
*
* @param values the values
*
* @return the builder for chaining
*/
public StatementBuilder setValues(List<Object> values) {
return setValues(values.toArray());
}

/**
* Add values to the current values
*
Expand All @@ -74,6 +85,17 @@ public StatementBuilder addValues(Object... values) {
return this;
}

/**
* Add values to the current values
*
* @param values the values
*
* @return the builder for chaining
*/
public StatementBuilder addValues(List<Object> values) {
return addValues(values.toArray());
}

/**
* Execute the statement
*
Expand Down

0 comments on commit 9a31c57

Please sign in to comment.