update

open suspend fun update(cartographicBoundary: CartographicBoundary)

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

cartographicBoundary

the CartographicBoundary object with updated data and its associated regions.


abstract suspend fun update(cartographicBoundaryEntity: CartographicBoundaryEntity)

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.


abstract suspend fun update(regionEntity: RegionEntity)

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.


abstract suspend fun update(polygonEntity: PolygonEntity)

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.