CartographicBoundaryDAO

The class that serves as an interface between the app and the database for CRUD operations (Create, Read, Update, Delete) and retrieval of CartographicBoundary data, potentially including related entities.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract suspend fun insert(cartographicBoundaryEntity: CartographicBoundaryEntity): Long

Insert a CartographicBoundaryEntity into the database.

abstract suspend fun insert(polygonEntity: PolygonEntity): Long

Insert a PolygonEntity into the database

abstract suspend fun insert(regionEntity: RegionEntity): Long

Insert a RegionEntity into the database

open suspend fun insert(cartographicBoundary: CartographicBoundary)

Inserts a CartographicBoundary object and its associated regions into the database using a transaction.

Link copied to clipboard
abstract suspend fun insertGeoLocations(geoLocationEntities: List<GeoLocationEntity>): List<Long>

Insert a GeoLocationEntity into the database

Link copied to clipboard
abstract fun select(regionID: Long): Flow<CartographicBoundaryWithRegions?>

Retrieves a Flow of CartographicBoundaryEntity objects associated with a specific Region identified by its ID.

Link copied to clipboard

retrieves all the CartographicBoundaryEntities along with their regions

Retrieves a Flow of CartographicBoundaryEntity objects associated with a specific AdministrativeUnitName identified by its ID.

Link copied to clipboard
abstract suspend fun update(cartographicBoundaryEntity: CartographicBoundaryEntity)

Update a CartographicBoundaryEntity into the database

abstract suspend fun update(polygonEntity: PolygonEntity)

Update a PolygonEntity in the database

abstract suspend fun update(regionEntity: RegionEntity)

Update a RegionEntity in the database

open suspend fun update(cartographicBoundary: CartographicBoundary)

Updates a CartographicBoundary object and its associated regions in the database using a transaction.

Link copied to clipboard
abstract suspend fun updateGeoLocations(geoLocationEntities: List<GeoLocationEntity>)

Update the GeoLocations in the database