SAP PowerDesigner是否具有API? [英] Does SAP PowerDesigner have an API?

查看:203
本文介绍了SAP PowerDesigner是否具有API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PowerDesigner是否具有可调用的Java/Python等API,以便我可以以编程方式检索物理表的列和数据类型?
谷歌搜索并没有帮助我找到文档,也可能没有教程. 任何方向对我都将非常有帮助. 最好的问候.

Does PowerDesigner have an Java/Python etc. API that can be called so that I can retrieve a physical table's columns and data types programmatically?
Googling did not help me locate a documentation and possibly a tutorial. Any directions would me extremely helpful. Best regards.

推荐答案

PowerDesigner的基本API使用

The basic API for PowerDesigner uses OLE Automation.

可以从VBScript,.NET语言,PowerShell ...轻松访问此API.

This API is readily accessible from VBScript, .NET languages, PowerShell...

PowerDesigner带有一个名为pdj2com * .jar的帮助器.

PowerDesigner comes with a helper jar named pdj2com*.jar.

Java Samples子目录下应该有一个JavaProxy.doc,并带有使用此jar的说明.

You should have a JavaProxy.doc under the Java Samples sub-directory, with instructions to use this jar.

在创建面向对象模型的示例中,代码如下所示:

The code looks like this, from the example for the creation of an Object-Oriented Model:

import org.eclipse.swt.internal.ole.win32.COM;
import com.sybase.stf.powerdesigner.PdCommon.*;
import com.sybase.stf.powerdesigner.PdOOM.*;

int hr = COM.OleInitialize(0);
Application pdApp = Application.getInstance();
Model newModel = new Model(pdApp.CreateModel(PdOOM_Classes.cls_Model, "|Language=Java|Diagram=ClassDiagram"));
newModel.SetName("Customer Management");
newModel.SetCode("CustomerManagement");
com.sybase.stf.powerdesigner.PdOOM.Class newClass = new com.sybase.stf.powerdesigner.PdOOM.Class(newModel.GetClasses().CreateNew());
newClass.SetName("Customer");
newClass.SetCode("Customer");

这篇关于SAP PowerDesigner是否具有API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆