company logo

Property :: setType - Set type for weak-typed collection

Before creating a new instance for a weak-typed collection, the type of the instance to be inserted has to be set in the property handle. The type of instance to be created is passed as type name in sTypeName . This setting might be reset when reading the next instance in the collection.

The type passed in sTypeName must inherit from the type defined for the property handle ( typeDefinition() ).

The function throws an exception, when an invalid type name has been passed or when the property handle is not valid or does not refer to a weak-typed collection.

Implementation details

Property  :: setType ( odaba::String &sTypeName )
  • sTypeName - Type name

    The type name is the name of a data type (usually) defined in the database. The type name might be passed as simple identifier or as scoped name with preceding namespace names separated by double colon '::'.

    In order to pass no type name, an empty string ( String() ) may be passed.