company logo

PropertyDefinition :: deleteEmpty - DELETE_EMPTY option

The option can be set for references or relationships in order to prevent instances from deletion, which do have references to other object instances. When this option is set for a reference or relationship of an instance, the instance can be deleted only, when the referenced collection is empty. When the option is set for more than one collection, all marked collections must be empty before the instance can be deleted.

When the option is set for an attribute, instances can be deleted only, when all attribute marked this way contain an empty vale

Notes:

Do never apply this option to shared base typesor when inverse relationship has been marked as dependent.

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false.

Implementation details

bool PropertyDefinition  :: deleteEmpty (  )

If the function is not called with a valid database property definition it throws an exception.