II.2.4 Management of Units
Units are associated to the database, and to all the entities stored in the database. The units associated
to the stored entities are independent of each other, and of the database units.
The “ClaDb” class defines several methods for the management of units:
- “getDbUnits” returns a Hash containing the definition of units associated to the database.
- “setDbUnits” has a Hash argument and sets the units associated to the database. The
method does not modify anything else to the CLA entities stored in the database.
- “setUnitsAllEntities” has a Hash argument and sets the units associated to the database
and all the CLA entities stored in the database.
- “setUnitsAllMaterials” has a Hash argument and sets the units associated to all the
ClaMat entities stored in the database.
- “setUnitsAllLaminates” has a Hash argument and sets the units associated to all the
ClaLam entities stored in the database.
- “setUnitsAllLoads” has a Hash argument and sets the units associated to all the ClaLoad
entities stored in the database.
- “changeUnitsAllEntities” has a Hash argument and changes the units associated to the
database and all the CLA entities stored in the database.
- “changeUnitsAllMaterials” has a Hash argument and changes the units associated to all
the ClaMat entities stored in the database.
- “changeUnitsAllLaminates” has a Hash argument and changes the units associated to all
the ClaLam entities stored in the database.
- “changeUnitsAllLoads’ has a Hash argument and changes the units associated to all the
ClaLoad entities stored in the database.
The Hash arguments or return values mentioned above have String keys and values as explained in
section II.1.13. The difference between the “setUnits” and “changeUnits” methods is also explained
in the same section.