title: Concatenation in prepared statement
body: <p>I have written universal DAO layer for mySQL (it can save\get any class object that extends Entity to\from table using Reflection and ResultSetMetaData). My implementation of it has little concatenation in sql query. Is it waste all advantages of prepared statement or I just loose little perfomance to concat String and nothing more?</p>
  
  <p>For example piece of code for entity deletion:</p>
  
  <pre><code>PreparedStatement prepStatement = con.prepareStatement("DELETE FROM "
                                        + tableName + " WHERE id = ?");
  prepStatement.setLong(1, id);
  </code></pre>