AppSearchSchemaDeletePropagationType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Selects deletion propagation for a joinable string property.
public enum AppSearchSchemaDeletePropagationType
type AppSearchSchemaDeletePropagationType =
- Inheritance
-
AppSearchSchemaDeletePropagationType
Fields
| Name | Value | Description |
|---|---|---|
| None | 0 | Does not propagate deletion. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| PropagateFrom | 1 | Content in this string property will be used as a qualified id referring to another (parent) document, and the deletion of the referenced document will propagate to this (child) document. Please note that this propagates further. If the child document has any children that also set delete propagation type PROPAGATE_FROM for their joinable properties, then those (grandchild) documents will be deleted. Since delete propagation works between the document and the referenced document, if setting this type for delete propagation, the string property should also be qualified id joinable (i.e. having StringPropertyConfig.JOINABLE_VALUE_TYPE_QUALIFIED_ID for the joinable value type). Otherwise, throw IllegalStateException when building (see StringPropertyConfig.Builder.build). Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
Remarks
Deletion propagation can be disabled. When enabled, deleting a referenced parent also deletes children whose property contains the parent's qualified ID. This can continue through further children whose joinable properties also enable propagation.