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