embeddeddb: use executeUpdate instead of executeQuery for truncate statement

This is required for more recent versions of the MySQL JDBC driver, as well as H2.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
jdbi: introduce @SmartFetchSize

Similar to @FetchSize, but encapsulates the magic values for streaming.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
embeddeddb: enable MVCC in H2

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
jdbi: add support for byte[] in LowerToCamelBeanMapper

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
embeddeddb: split project into modules

This lets us get rid of optional dependencies and help with
dependencies management in Kill Bill.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>