Class StatementUtils
java.lang.Object
com.sk89q.worldguard.internal.util.sql.StatementUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringpreparePlaceHolders(int length)Creates a comma separated list of PreparedStatement place holdersstatic voidsetValues(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
lengthwildcards for usage in a PreparedStatement
-
setValues
public static void setValues(PreparedStatement preparedStatement, String... values) throws SQLExceptionAdds 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)
-