I'm using for example c3p0 with some defined "maxStatements" 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
select * from sometable where somecolumn=?
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?
Thanks.