Class StatementUtils

java.lang.Object
com.sk89q.worldguard.internal.util.sql.StatementUtils

public final class StatementUtils extends Object
  • Method Details

    • preparePlaceHolders

      public static String preparePlaceHolders(int length)
      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 to
      values - The values to set
      Throws:
      SQLException - see PreparedStatement.setString(int, String)