Class StatementUtils
java.lang.Object
com.sk89q.worldguard.internal.util.sql.StatementUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
preparePlaceHolders
(int length) Creates a comma separated list of PreparedStatement place holdersstatic void
setValues
(PreparedStatement preparedStatement, String... values) Adds all of the parsed values to the PreparedStatement
-
Method Details
-
preparePlaceHolders
Creates a comma separated list of PreparedStatement place holders- Parameters:
length
- The number of wildcards to create- Returns:
- A string with
length
wildcards for usage in a PreparedStatement
-
setValues
public static void setValues(PreparedStatement preparedStatement, String... values) throws SQLException Adds all of the parsed values to the PreparedStatement- Parameters:
preparedStatement
- The preparedStanement to add tovalues
- The values to set- Throws:
SQLException
- seePreparedStatement.setString(int, String)
-