ModeShape/modeshape — pull request #1099 by hchiorean (2014-04-25 13:29:27+00:00)
Title: Mode 2194 - Changed the way the DB binary store intracts with Connection and Statement objects

The db binary store will now open & close each `Connection` and `PreparedStatement` on a per-operation (binary store operation) basis. The only exception is the `getStream` method which will return a stream wrapper that only closes the connection & statement when the stream is closed.

This PR also contains other DB-specific fixes and a set of refactored DB profiles and tests. Both ISPN & binary persistence has been tested with:
* MySQL 5.5
* H2
* MS SqlServer 2008 R2
* PostgreSQL 8 and 9
* Oracle 10g and 11g