public final class StatementUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
preparePlaceHolders(int length)
Creates a comma separated list of PreparedStatement place holders
|
static void |
setValues(java.sql.PreparedStatement preparedStatement,
java.lang.String... values)
Adds all of the parsed values to the PreparedStatement
|
public static java.lang.String preparePlaceHolders(int length)
length - The number of wildcards to createlength wildcards for usage in a PreparedStatementpublic static void setValues(java.sql.PreparedStatement preparedStatement,
java.lang.String... values)
throws java.sql.SQLException
preparedStatement - The preparedStanement to add tovalues - The values to setjava.sql.SQLException - see PreparedStatement.setString(int, String)