Package-level declarations

Types

Link copied to clipboard

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

Link copied to clipboard

Implementation of AdministrativeUnitNameDataSource that utilizes Room Database for CRUD (Create, Read, Update, Delete) operations on AdministrativeUnitName data. This class also handles the association with GeoLocation and retrieves CartographicBoundary data for existing AdministrativeUnitNames.

Link copied to clipboard

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.

Link copied to clipboard
class CartographicBoundaryRoomDataSource @Inject constructor(cartographicBoundaryDAO: CartographicBoundaryDAO) : CartographicBoundaryDataSource

Implementation of CartographicBoundaryDataSource that utilizes Room Database for CRUD (Create, Read, Update, Delete) operations on CartographicBoundary data. This class also handles the association with Regions

Link copied to clipboard

This abstract class represents a Room database for the Fridgnet application. It provides access to various DAOs (Data Access Objects) for interacting with different database entities.

Link copied to clipboard
abstract class ImageDAO

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

Link copied to clipboard
class ImageRoomDataSource @Inject constructor(imageDAO: ImageDAO) : ImageDataSource

Implementation of ImageDataSource that utilizes Room Database for CRUD (Create, Read, Update, Delete) operations on Image data. This class also handles the association with AdministrativeUnitNames

Functions

Link copied to clipboard

Converts the AdministrativeUnitName into its corresponding entity AdministrativeUnitNameEntity using the existing ID from the AdministrativeUnitName object.

Converts the AdministrativeUnitName into its corresponding entity AdministrativeUnitNameEntity with a specified ID.

Link copied to clipboard

Converts a list of CartographicBoundaryWithRegions objects to a list of CartographicBoundary objects.

Link copied to clipboard
Link copied to clipboard

Converts a List to a List with a specified ID for association.

Link copied to clipboard

Converts a List to a List with a specified ID for association.

Link copied to clipboard
fun GeoLocation.toGeoLocationEntity(administrativeUnitNameGeoLocationsID: Long): GeoLocationEntity

Converts the GeoLocation into the GeoLocationEntity with an association to an administrative unit name.

Converts the GeoLocation into the GeoLocationEntity, optionally associating it with an image.

fun GeoLocation.toGeoLocationEntity(id: Long, geoLocationsID: Long? = null): GeoLocationEntity

Converts the GeoLocation into the GeoLocationEntity, optionally associating it with an image, and using a provided ID.

Link copied to clipboard
fun Image.toImageEntity(geoLocationID: Long): ImageEntity

Converts Image into Image Entity using the geoLocationID foreign key to associate to a geolocation

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Region.toRegionEntity(regionsID: Long, polygonID: Long): RegionEntity

Converts the Region object to a RegionEntity, specifying the foreign key relationships.

fun Region.toRegionEntity(id: Long, regionsID: Long, polygonID: Long): RegionEntity

Converts the Region object to a RegionEntity using a specified id for update purposes, and specifying the foreign key relationships.

Link copied to clipboard

Updates the subAdminArea property of the current AdministrativeUnitNameEntity to use a new value.