Menu

Data types

ENGITEX

Data types

1. Arrays/lists of "simple" (value) types are:

  • int16
  • int32
  • long
  • char
  • float
  • double

2. Strings

3. The following types can be stored in OODB apart from value types:

4. Arrays of Hashtables
Hashtable[]
and lists of OODBobjects
List<OODBobject>
are supported too.

Rules

  • Hashtable[] arrays may contain hashtables with different data fields and taking different amount of memory.
  • List<OODBobject> as well as OODBobject[] are supposed to contain objects of the same class, e.g. TestComplex class from the demo example.
  • As shown in TestComplex class, an object may contain several nested objects.
  • When working via PowerShell, Hashtables are supposed to be used.
  • Generally speaking Hashtables are stored in a less compact way as compared to OODB objects and they are stored together with their data field information but do not require to know anything about the hashtable before reading it.
  • Being a "native" PowerShell class, hashtables are best suited for work from PowerShell.
  • OODB objects are stored with no "decoding"/data field information. It is required that the user has the appropriate data structure for the OODB object he intends to read. These objects are supposed to be used when working with a database from C# application.
  • Two top-level^ objects with identical names cannot be stored to OODB even if their types are different.

^ Top-level object is the one that is not nested within another object and is not an element of a list/array.


Related

Wiki: Home
Wiki: OODB as file
Wiki: OODBI
Wiki: Overview

MongoDB Logo MongoDB