Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » DerivedTable.queryTable not setted
DerivedTable.queryTable not setted [message #649315] Tue, 18 January 2011 17:33 Go to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Hi everyone,

we are reusing the SQL EMF model created in DTP, to perform some model
transformations. I noticed that DerivedTable has an attribute called
"queryExpression". However, no one seems to be setting it (nor I could
find calls to DerivedTable.setQueryExpression(QueryExpression)

We are interested in knowing, through this model, which is the query
that defines a View, so I guessed that may be the place to get it.

Can you confirm the implementation does no set this attribute? Is there
any chance to get it into the model?

Cheers,
Víctor.
Re: DerivedTable.queryTable not setted [message #649877 is a reply to message #649315] Thu, 20 January 2011 20:03 Go to previous messageGo to next message
Brian Payton is currently offline Brian PaytonFriend
Messages: 152
Registered: July 2009
Senior Member
Take a look at the parseView method in class DerbyDdlParser in plugin
org.eclipse.datatools.connectivity.apache.derby for an example where the
setQueryExpression is getting called. Also take a look at the
DerbyCatalogView and DerbyTableLoader classes.

On 1/18/2011 9:33 AM, Víctor Roldán Betancort wrote:
> Hi everyone,
>
> we are reusing the SQL EMF model created in DTP, to perform some model
> transformations. I noticed that DerivedTable has an attribute called
> "queryExpression". However, no one seems to be setting it (nor I could
> find calls to DerivedTable.setQueryExpression(QueryExpression)
>
> We are interested in knowing, through this model, which is the query
> that defines a View, so I guessed that may be the place to get it.
>
> Can you confirm the implementation does no set this attribute? Is there
> any chance to get it into the model?
>
> Cheers,
> Víctor.
Re: DerivedTable.queryTable not setted [message #649991 is a reply to message #649877] Fri, 21 January 2011 10:25 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Thanks Brian, I'll give it a look and see if it can be used for other
connectivity implementations :)
Cheers!

Brian Payton escribió:
> Take a look at the parseView method in class DerbyDdlParser in plugin
> org.eclipse.datatools.connectivity.apache.derby for an example where the
> setQueryExpression is getting called. Also take a look at the
> DerbyCatalogView and DerbyTableLoader classes.
>
> On 1/18/2011 9:33 AM, Víctor Roldán Betancort wrote:
>> Hi everyone,
>>
>> we are reusing the SQL EMF model created in DTP, to perform some model
>> transformations. I noticed that DerivedTable has an attribute called
>> "queryExpression". However, no one seems to be setting it (nor I could
>> find calls to DerivedTable.setQueryExpression(QueryExpression)
>>
>> We are interested in knowing, through this model, which is the query
>> that defines a View, so I guessed that may be the place to get it.
>>
>> Can you confirm the implementation does no set this attribute? Is there
>> any chance to get it into the model?
>>
>> Cheers,
>> Víctor.
Previous Topic:Newbie: Problem with DSE and PostgreSQL 8.4 [SOLVED]
Next Topic:Usage of DTP - Questions
Goto Forum:
  


Current Time: Mon Nov 24 00:33:39 GMT 2014

Powered by FUDForum. Page generated in 0.02203 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software