Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to programmatically provide TableField values to RecordStreams #58

Open
ryanrdoherty opened this issue May 3, 2023 · 0 comments

Comments

@ryanrdoherty
Copy link
Member

This is to support use cases where table data comes from an outside source (files or services) or needs to be generated programmatically (vs pulled in directly from the configured appDb with SQL).

Design plan is as follows:

  1. In the model XML, add option to replace the queryRef attribute with a javaClass value which directs WDK to instantiate and call a Java plugin class to provide table data instead of an SQL query.
  2. This plugin will take paged, sorted ID SQL and provide a Stream/Iterator of String[] containing the PK columns for the recordclass and the columns of the table (same columns table SQL provides).
  3. RecordStream implementations must check to see what kind of table field provider this is (SQL vs Java) and branch there, providing rows either from the ResultSet or from the plugin (probably will create a plugin impl that takes SQL and call that).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant