Automatic Generation of Java-Based, Database-Independent Query API