Execute the query, if it has been created with a properly configured factory
@return A result value, depending on the concrete implementation of{@link Query}:
- {@link Delete} : the number of deleted records
- {@link Insert} : the number of inserted records
- {@link Merge} : the result may have no meaning
- {@link Select} : the number of resulting records
- {@link Truncate} : the result may have no meaning
- {@link Update} : the number of updated records
@throws DataAccessException If anything goes wrong in the database