update
Updates a CartographicBoundary object and its associated regions in the database using a transaction.
This method first converts the CartographicBoundary object to a CartographicBoundaryEntity and updates the database entry identified by the CartographicBoundary's ID. It then uses the same ID as a foreign key to update the associated regions using a separate method (updateRegions
).
Parameters
the CartographicBoundary object with updated data and its associated regions.
Update a CartographicBoundaryEntity into the database
This method is intended for Room to handle basic update operations. For update a CartographicBoundary, use update(cartographicBoundary: CartographicBoundary)
instead.
Update a RegionEntity in the database
This method is intended for Room to handle basic insert operations. For update a CartographicBoundary, use update(cartographicBoundary: CartographicBoundary)
instead.
Update a PolygonEntity in the database
This method is intended for Room to handle basic insert operations. For update a CartographicBoundary, use update(cartographicBoundary: CartographicBoundary)
instead.