title: PreparedStatement caching - what does it mean (how does it work)
body: <p>I'm using for example c3p0 with some defined &quot;maxStatements&quot; for preparedStatement caching.
  What does this caching really do? What kind of data it caches. On what level (db, application,..)?
  It would be nice to understand it from example. For example i have a query</p>
  <blockquote>
  <p>select * from sometable where somecolumn=?</p>
  </blockquote>
  <p>Now i send it in prepared statement that is not cached.
  And now i'm sending it and it is cached.
  What is the difference. What happened in the first case and in the second. What is sent to DB server in the first case and in the second?</p>
  <p>Thanks.</p>