Book a Demo

Author Topic: EA.Element.MetaType  (Read 5308 times)

stao

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
EA.Element.MetaType
« on: October 01, 2011, 08:57:26 pm »
Hi all
any idea how to extract the elements MetaType out of the SQL Tables?

thanks

stao

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: EA.Element.MetaType
« Reply #1 on: October 05, 2011, 06:33:09 am »
I guess you can't. Probably the Meta type is somehow computed from the object type and the stereotype.

Why do you want to read it from the tables? Just issue a rep.getelementbyid and see what the API delivers.

q.

stao

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: EA.Element.MetaType
« Reply #2 on: October 05, 2011, 08:34:30 am »
the api is too slow to use the rep.Methods

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: EA.Element.MetaType
« Reply #3 on: October 05, 2011, 07:57:05 pm »
True. But ignoring the official interface is negligent. I just go directly to the DB where the API lacks functionality.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: EA.Element.MetaType
« Reply #4 on: October 06, 2011, 09:06:26 am »
The metatype is derived from the profile not the database, so I'm afraid SQL won't help you. As qwerty says, you will need to use the Object Model in this case...
The Sparx Team
[email protected]