company logo

Create new project

Creating the sample project differs slightly under Linux and Windows. In any case, the project should be called Sample in order to be compatible with the subsequent steps. The way to install the sample under Linux and Windows is described in the corresponding topic below.

In order to create a new project, CreateProject may be called, which allocates project resources in a local directory. Project resources created are configuration (ini) files and procedures for running different ODABA tools. Following procedures will be generated to the project directory:

  • OShell.sh - shell for examining databases
  • OSI.sh - running ODABA script file
  • ODL.sh - running database definition script (ODL file)
  • ClassEditor.sh - starting ODE ClassEditor tool
  • Designer.sh - starting ODE GUI designer
  • Terminus.sh - starting ODE terminology builder

Under MS Windows, instead of .sh extension .cmd is used. In addition, a configuration file for running the tools mentioned above has been generated in the project's root directory.

  • ode.ini - configuration file for ODE and command line tools

The configuration file contains database locations and application setting in appropriate sections. In the example below, the configuration file for a LINUX project is shown. The configuration file for Windows differs in file locations, only. When creating a project with the name "Sample", some script files are copied to the project sub directory Sample/osi:

  • Sample.odl - sample database schema definition (ODL file)
  • Sample.osi - ODABA script file for generating test data
  • Sample.osh - OShelll script for evaluating generated data

In order to build the sample database, one may call ODL.sh for defining the Sample database schema, OSI.sh for creating Sample test data in a test database Sample.dat and OShell.sh for evaluating test data. Running the complete program up to test data generation takes not longer than 3 minutes.

Details for each step are explained in the subsequent topics.

; generated confiruration file - linux

[SYSTEM]

DICTIONARY=/usr/local/share/odaba/ode.sys

; GUI framework (ODE) section - ODE tools

[code]

ODABA_ROOT=/usr/local/

SYSDB=/usr/local/share/odaba/ode.sys

RESDB=/usr/local/share/odaba/ode.dev

DATDB=/home/testuser/odaba/Sample/Sample.dev

TRACE=/home/testuser/odaba/Sample/

PLATFORM_INDEPENDENT=YES

NET=YES

SYSAPPL=YES

ONLINE_VERSION=YES

PROJECT_DLL=Designer

CTXI_DLL=AdkCtxi

; OShell section

[OShell]

ODABA_ROOT=/usr/local/

DSC_Language=English

DefaultEncoding=ASCII

TRACE=/home/testuser/odaba/Sample/

; data source section for resource database

[Sample_dev]

DICTIONARY=/usr/local/share/odaba/ode.sys

RESOURCES=/usr/local/share/odaba/ode.dev

DATABASE=/home/testuser/odaba/Sample/Sample.dev

PLATFORM_INDEPENDENT=YES

NET=YES

ACCESS_MODE=Write

ONLINE_VERSION=YES

; data source section for application database

[Sample_dat]

DICTIONARY=/home/testuser/odaba/Sample/Sample.dev

DATABASE=/home/testuser/odaba/Sample/Sample.dat

PLATFORM_INDEPENDENT=YES

NET=YES

ACCESS_MODE=Write

ONLINE_VERSION=YES