天天看點

Salesforce和SAP Netweaver裡資料庫表的中繼資料設計SAP HANA

Salesforce

when you define a new application object or write some procedural code, Force.com does not create an actual table in a database or compile any code. Instead, Force.com simply stores metadata that the system’s engine can use to generate the virtual application components at runtime.

當我們在force.com裡建立新的應用對象或是編寫一些存儲過程代碼時,force.com并不會生成實體的資料庫表或者進行存儲過程代碼編譯,而是采取輕量級的操作,将對應的中繼資料寫入存儲中,這些中繼資料能通過系統引擎在運作時生成必要的實體模型。

When you need to modify or customize something about the application schema, like modify an existing field in an object, all that’s required is a simple non-blocking update to the corresponding metadata.

當我們在開發過程中需要修改應用schema對象時,在Editor裡所有的修改均為簡單的中繼資料修改,非常輕量。

ABAP

ABAP裡的一張已經存在的資料庫表,如果編輯後沒有激活,則改動對整個ABAP workbench不可見。一張新建立的表,如果沒有生成runtime object-運作時對象,則根本無法使用。

Salesforce和SAP Netweaver裡資料庫表的中繼資料設計SAP HANA
Salesforce和SAP Netweaver裡資料庫表的中繼資料設計SAP HANA
Salesforce和SAP Netweaver裡資料庫表的中繼資料設計SAP HANA

SAP HANA

和salesforce及SAP ABAP DDIC類似,看個例子。

使用SQL SELECT TOP 1000 * FROM “SAPAG3”."COMM_PRODUCT"查詢這個表的内容。

Salesforce和SAP Netweaver裡資料庫表的中繼資料設計SAP HANA
Salesforce和SAP Netweaver裡資料庫表的中繼資料設計SAP HANA
Salesforce和SAP Netweaver裡資料庫表的中繼資料設計SAP HANA