|
[
Permlink
| « Hide
]
Dave Syer added a comment - 15/Oct/07 01:32 AM
I agree on the Sql->Jdbc renaming. Not so sure about the packaging - do we really want another level of packages? In fact maybe the "orm" package level could be removed as well? The HibernateInputSource also needs a lot more documentation. Is anyone using it on a project?
We are using a slightly altered version of it at this moment. (With a normal Hibernate Session instead of StatelessSession)
Dave,
I wasn't thinking that cursor should just be inserted in front of io.sql, but rather all of the cursor based input sources could be grouped together and all of the Driving Query based as well. For example: io.database.cursor.JdbcCursorInputSource io.database.cursor.HibernateInputSource io.database.driving.SingleKeyDrivingQueryInputSource io.database.driving.IbatisInputSource It just seems to me that the distinction of input type doesn't really need to be made at the package level, since the input source is already named appropriately. However, it seems more important to distinguish between how the data is being read in. I would rather the focus be that there are two types of database input sources: drivingQuery and cursor, rather than we support input via jdbc, hibernate, and iBatis, which might also have subdivisions. This would also mean that the AbstractDrivingQueryInputSource could live in a more logical place, since 4 input sources now ultimately extends it. (two ibatis, two sql). There aren't really any interfaces, since all jdbc input sources implement InputSource, which is in batch.io. The only one I can think of is the RestartDataConverter (soon to be a type converter) but it's only currently being used by the driving data input sources. Although, I guess it could be used for cursor input, if the query was to be modified, but there would also need to be a modification to know which column(s) to store.
We could leave it out, and have something like io.driving and io.cursor, as long as you don't think it would be confusing. I guess all the classes in them would make it clear as well, since there would be something like io.cursor.JdbcCursorInputSource.
The io.sql package has been removed (except in test, where the abstract test class remains) and has been divided into io.cursor and io.driving.
|
||||||||||||||||||||||||||||||||||||||||||||||||||