Task: Updated the execute result with count for generic type with row mapper provider and updated the jdbc data factory in cubetiq sql core

This commit is contained in:
Sambo Chea 2022-07-07 21:36:10 +07:00
parent b25b614c59
commit b3aab2e4ef
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490

View File

@ -77,27 +77,27 @@ public final class JdbcDataFactory {
return queryManager.query(parameter, mapper);
}
public IExecuteResultWithCount<?> queryOf(String sql) {
public IExecuteResultWithCount<List<Object>> queryOf(String sql) {
return queryManager.queryOf(sql);
}
public IExecuteResultWithCount<?> queryOf(String sql, Object... args) {
public IExecuteResultWithCount<List<Object>> queryOf(String sql, Object... args) {
return queryManager.queryOf(sql, args);
}
public IExecuteResultWithCount<?> queryOf(String sql, RowMapperProvider<?> mapper) {
public <R> IExecuteResultWithCount<List<R>> queryOf(String sql, RowMapperProvider<R> mapper) {
return queryManager.queryOf(sql, mapper);
}
public IExecuteResultWithCount<?> queryOf(String sql, RowMapperProvider<?> mapper, Object... args) {
public <R> IExecuteResultWithCount<List<R>> queryOf(String sql, RowMapperProvider<R> mapper, Object... args) {
return queryManager.queryOf(sql, mapper, args);
}
public IExecuteResultWithCount<?> queryOf(ISqlMapParameter parameter) {
public IExecuteResultWithCount<List<Object>> queryOf(ISqlMapParameter parameter) {
return queryManager.queryOf(parameter);
}
public IExecuteResultWithCount<?> queryOf(ISqlMapParameter parameter, RowMapperProvider<?> mapper) {
public <R> IExecuteResultWithCount<List<R>> queryOf(ISqlMapParameter parameter, RowMapperProvider<R> mapper) {
return queryManager.queryOf(parameter, mapper);
}