[
https://issues.jboss.org/browse/TEIIDDES-806?page=com.atlassian.jira.plug...
]
Steven Hawkins commented on TEIIDDES-806:
-----------------------------------------
Teiid expects a null value to indicate default handling.
If use default is selected, rather than blanking it out, you could just leave whatever sql
they have greyed out, and write a null in the index and ensure that your workspace
metadata also returns null.
The specific insert/update/delete enabled toggle should be removed, and, as you say, the
tab icon can be updated if default handling is insufficient for a given procedure.
The org.teiid.query.validator.UpdateValidator should be used to perform the validation
with the validate method. The methods getReport and get[Insert/Update/Delete]Report can
then be used to obtain the resulting ValidationReports for general errors/warnings and
errors/warnings that are particular to a procedure type. The ValidatorFailures contained
in the reports have a Status flag to determine if they are an error or a warning. One
possibility is to display errors and warnings on the insert/update/delete panels
themselves.
Teiid also now has support for "for each row" procedures that can be used
instead of update procedures. These are represented by the TriggerAction class. The
initial plan is to support both our old update procedures and the new for each row
handling. Any logic that is assuming the presence of a CreateUpdateProcedureCommand may
need to be changed to reflect that triggeractions are also supported. The designer
resolving logic will need to be updated as well to supply the external metadata expected
by a triggeraction (see the reference). Ideally we would take a pass at refactoring the
designer logic for creating external metadata so that the responsibility can be pushed to
Teiid.
The 7.3 final jars are posted on sf
http://sourceforge.net/projects/teiid/files/teiid/7.3/
or can be obtained through maven.
Provide UI changes required for changes to behavior of Update queries
in Teiid
------------------------------------------------------------------------------
Key: TEIIDDES-806
URL:
https://issues.jboss.org/browse/TEIIDDES-806
Project: Teiid Designer
Issue Type: Feature Request
Components: Documentation, Editors, Transformations
Affects Versions: 7.3
Reporter: Barry LaFond
Assignee: Barry LaFond
Priority: Blocker
Fix For: 7.3
Teiid 7.3 release included changes to how Teiid processes Update queries. Teiid Designer
will need to change the Transformation Editor to accommodate these changes.
The "Select" SQL will now be "analyzed" and validated to determine
what "Update" capabilities will be enabled. The generated "Default"
queries should also be removed and NO SQL defined if "Use Default" is enabled
for Insert/Update/Delete
This is a departure from our legacy user experience, so the UI will have to be tweaked to
recognize and interpret the new validation logic and display to user whether
Insert/Update/Delete will be possible base don the Select.
One thought was decorating the I/U/D tab text with ICONS's to indicate
"Allowed" or "Disallowed"
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira