Hi,
Sounds great.
I am also thinking of working on generic JDBC implementation.
Combining my row-mapper with Spring Data JDBC Repository can be a great Spring module.
In addition, I am currently working on new features:
1. Column name definition policy support:
- Explicit Column Name Definition Policy
- Custom Column Name Definition Policy
- Field-Table Column Name String Similarity Based Auto Column Name Definition Policy
2. SQL based object relation support by specifying datasource:
Here is example:
Code:
@RowMapperObjectField(
provideViaSqlProvider =
@RowMapperSqlProvider(
sql =
"SELECT r.* FROM ROLE r WHERE r.ID IN " +
"(" +
"SELECT ur.ROLE_ID FROM user_role ur WHERE ur.USER_ID = ${id}" +
") ORDER BY r.name",
dataSource = "MyDataSource"),
lazy = true)
3. Binding results sets to object as asynchronous.
My new JdbcTemplate will return proxy objects immediately without binding resultsets to objects.
At backend, worker threads run for binding resultsets to objects.
If an unbinded object is accessed, thread, tried to access, will be suspended until resultset binded to object.
Cheers,
--
Serkan ÖZAL