Book a Demo

Author Topic: Generate DDL via SDK  (Read 5848 times)

Alessandro

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Generate DDL via SDK
« on: February 11, 2010, 06:23:34 am »
I would like to generate the Database DDL using via the SDK from a Java program.

I could not find any reference in the documentation nor any method in the JAR that looks like it could do the job.

Is the DDL generation supported from via the SDK?

Many thanks
Alessandro

leonlian

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Generate DDL via SDK
« Reply #1 on: March 12, 2010, 03:45:01 am »
I have the exactly same question here. Anyone can help? Thanks.

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Generate DDL via SDK
« Reply #2 on: March 12, 2010, 04:08:40 am »
Hi guys,

Though I didn't test this myself, triggering Code-Generation from the Automation Interface should do the job for DDL as well as it does for any other Language.
Look here:
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/project_2.html

Refer to the GenerateClass, GeneratePackage methods of the Project class.

HTH
Günther

leonlian

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Generate DDL via SDK
« Reply #3 on: March 12, 2010, 06:15:10 am »
Quote
Hi guys,

Though I didn't test this myself, triggering Code-Generation from the Automation Interface should do the job for DDL as well as it does for any other Language.
Look here:
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/project_2.html

Refer to the GenerateClass, GeneratePackage methods of the Project class.

HTH
Günther


i checked it out, but i cannot find any references for DDL Generation.

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Generate DDL via SDK
« Reply #4 on: March 12, 2010, 09:01:18 am »
Shouldn't be s.th. special regarding DDL there. The kind of language code ist set using the 'Language' property of the concerned package and class elements (tables I guess). The DDL code generated itself is steered using the associated code generation templates.
You select the appropriate package or table element with the calls and it should to the job.

HTH
Günther
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Generate DDL via SDK
« Reply #5 on: March 12, 2010, 09:30:57 am »
I've very sorry to say that:
a) DDL generation is not driven by code templates.
b) Unless I'm mistaken you can't perform it from the API.

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Generate DDL via SDK
« Reply #6 on: March 12, 2010, 09:59:06 am »
Oops, sorry!!
That was just a logical guess ... (but I at least mentioned it  ;) )

g.
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

leonlian

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Generate DDL via SDK
« Reply #7 on: March 12, 2010, 01:34:23 pm »
Quote
I've very sorry to say that:
a) DDL generation is not driven by code templates.
b) Unless I'm mistaken you can't perform it from the API.


We want to use an Java application to automatically generate the DDL for an EA project file (which contains a set of tables).

If the API does not work, is there any other SDK we can use to make it?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Generate DDL via SDK
« Reply #8 on: March 12, 2010, 06:36:07 pm »
I'm sorry, the API==SDK :(

You could always send a feature request to Sparx using the link on the bottom of the page.
In the meantime you'll have to, either click the appropriate options manually, or write your own UML->DLL transformation.

Geert