Adding convenience factories for use with generics in Java 6.
Merge branch 'dbfactories'