Skip to content

hdbstructure

Ayhan Rashidov edited this page Sep 5, 2022 · 1 revision

Reusable Structures (.hdbstructure)

This object type represents a database table type.

Reference

The information on how to develop the design-time data-persistence structure model for a Kronos application.

SAP Help

https://help.sap.com/docs/SAP_HANA_PLATFORM/58d81eb4c9bc4899ba972c9fe7a1a115/4748fe6489c5472a855da05f1d10edd5.html

Example Artifact Code

table.schemaName = "DBADMIN";
table.public = false;
table.columns = [
    {name = "SCENARIO_ID";              sqlType=VARCHAR; nullable=false; length=32; },
    {name = "PERIOD_ID";                sqlType=DECIMAL; nullable=false; precision = 20; scale = 3; },
    {name = "MATERIAL_ID";              sqlType=VARCHAR; length=32; },
    {name = "DEPTH";                    sqlType=INTEGER; nullable=true; comment=""; }
];
table.primaryKey.pkcolumns = ["SCENARIO_ID"];

Sample

https://github.com/codbex/codbex-kronos/tree/main/samples/hdb-structure-simple

Modules

  • Data Structure Parser

https://github.com/codbex/codbex-kronos/tree/main/modules/engines/engine-hdb/src/main/java/com/codbex/kronos/hdb/ds/parser/hdbstructure

  • Processor

https://github.com/codbex/codbex-kronos/tree/main/modules/engines/engine-hdb/src/main/java/com/codbex/kronos/hdb/ds/processors/tabletype

Unit Tests

https://github.com/codbex/codbex-kronos/tree/main/modules/engines/engine-hdb/src/test/java/com/codbex/kronos/hdb/ds/parser/hdbstructure https://github.com/codbex/codbex-kronos/tree/main/modules/engines/engine-hdb/src/test/java/com/codbex/kronos/hdb/ds/processors/tabletype

Integration Tests

https://github.com/codbex/codbex-kronos/tree/main/integration-tests/engine-hdb/src/test/java/com/codbex/kronos/integration/tests/hdb/ds/itest/hdbstructure

Clone this wiki locally