Klasse ParcelOfferSettingsRepository
java.lang.Object
de.delinkedde.areashopreborn.persistence.ParcelOfferSettingsRepository
Stores commercial draft values independently from active listing journals.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungParcelOfferSettingsRepository(Database database) Creates the settings repository. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungFinds prepared values for a parcel.voidsetRentalPeriod(UUID regionId, Duration period) Stores the prepared billable rental period.voidsetRentalPrice(UUID regionId, BigDecimal price) Stores the prepared rental price without changing sale values.voidsetSalePrice(UUID regionId, BigDecimal price) Stores the prepared initial-sale price without changing rental values.
-
Konstruktordetails
-
ParcelOfferSettingsRepository
Creates the settings repository.- Parameter:
database- database connection provider
-
-
Methodendetails
-
find
Finds prepared values for a parcel.- Parameter:
regionId- parcel identifier- Gibt zurück:
- settings when at least one row exists
- Löst aus:
SQLException- when reading fails
-
setSalePrice
Stores the prepared initial-sale price without changing rental values.- Parameter:
regionId- parcel identifierprice- sale price- Löst aus:
SQLException- when persistence fails
-
setRentalPrice
Stores the prepared rental price without changing sale values.- Parameter:
regionId- parcel identifierprice- price per period- Löst aus:
SQLException- when persistence fails
-
setRentalPeriod
Stores the prepared billable rental period.- Parameter:
regionId- parcel identifierperiod- positive period- Löst aus:
SQLException- when persistence fails
-