[
https://jira.jboss.org/jira/browse/TEIID-493?page=com.atlassian.jira.plug...
]
John Doyle commented on TEIID-493:
----------------------------------
As I see it, the general problem is that we are trying to integrate with systems that have
very different semantics from ours. But moving to a procedural semantic is not a
solution. Our procedural semantic is woefully inadequate to communicate with all but the
most trivial "Hello World" web services. Salesforce offers a query call that
is semantically equivalent to SELECT. If we modeled that as a procedure, what would the
VDB developer do with it? He would have his work cut out for him. Where's the
metadata? Create a virtual on top of it for every object in the system so that a user
knows what objects and fields he can query? And then do the same for every object for
Update, Delete, Insert, etc.
My preference is to create integrations with these systems that have the greatest
flexibility and create the best user experience. Encapsulating the behavior of the
underlying system as completely as possible within our conceptual frame is one of my
goals, and if we have to expand our concepts slightly to accomplish that, I think it's
worth it in some cases. I'm not even arguing for this individual case, just against
correctness in favor of usability.
Define a new modeling construct that can create a defaulted
parameter.
----------------------------------------------------------------------
Key: TEIID-493
URL:
https://jira.jboss.org/jira/browse/TEIID-493
Project: Teiid
Issue Type: Feature Request
Components: Query Engine
Reporter: John Doyle
Assignee: Steven Hawkins
Priority: Minor
I would like to be able to define on a physical model a defaulted parameter value for a
column, much like an access pattern with a default value. At runtime the default value
would be sent as a parameter if the user did not supply a value in the query.
The use case that brought this to mind is the Salesforce connector. Each Salesforce
object exposes a isDeleted column and since most uses of the connector do not want to see
deleted objects, the user will have to know that they need to have isDeleted=false in the
query. Having a 'defaulted access pattern' would allow us to encapsulate this SF
API leakage better.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira