insert
Insert a CartographicBoundaryEntity into the database.
This method is intended for Room to handle basic insert operations. For insert a CartographicBoundary, use insert(cartographicBoundary: CartographicBoundary)
instead.
Insert a RegionEntity into the database
This method is intended for Room to handle basic insert operations. For insert a CartographicBoundary, use insert(cartographicBoundary: CartographicBoundary)
instead.
Insert a PolygonEntity into the database
This method is intended for Room to handle basic insert operations. For insert a CartographicBoundary, use insert(cartographicBoundary: CartographicBoundary)
instead.
Inserts a CartographicBoundary object and its associated regions into the database using a transaction.
This method first converts the CartographicBoundary object to a CartographicBoundaryEntity and inserts it into the database. It then retrieves the generated ID and uses it as a foreign key to insert the associated regions using a separate method (insertRegions
).
Parameters
the CartographicBoundary object to insert along with its associated regions.