Hi all!
In our project, we have all DB manipulations concentrated in Oracle stored procedures. Result sets is returned by OUT parameter of SYS_REFCURSOR type. Now we have a task to make pagination, and we don't want to rewrite all of our procedures, adding 2 parameters (pageNumber and pageSize) to them and editing WHERE clauses. We have an idea to write some type of wrapper procedure, that can call each of stored procedures, get slice from returned result set and pass it out. The problem is that all procedures get different parameter list, so we don't know how to implement it in wrapper.
Can somebody help us? Maybe we can solve it using Java stored procedures? Maybe, we can solve it in some different way, not using wrapper?
Sorry about my English.
Thx.