Klasse ParcelOfferSettingsRepository

java.lang.Object
de.delinkedde.areashopreborn.persistence.ParcelOfferSettingsRepository

public final class ParcelOfferSettingsRepository extends Object
Stores commercial draft values independently from active listing journals.
  • Konstruktordetails

    • ParcelOfferSettingsRepository

      public ParcelOfferSettingsRepository(Database database)
      Creates the settings repository.
      Parameter:
      database - database connection provider
  • Methodendetails

    • find

      public Optional<ParcelOfferSettings> find(UUID regionId) throws SQLException
      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

      public void setSalePrice(UUID regionId, BigDecimal price) throws SQLException
      Stores the prepared initial-sale price without changing rental values.
      Parameter:
      regionId - parcel identifier
      price - sale price
      Löst aus:
      SQLException - when persistence fails
    • setRentalPrice

      public void setRentalPrice(UUID regionId, BigDecimal price) throws SQLException
      Stores the prepared rental price without changing sale values.
      Parameter:
      regionId - parcel identifier
      price - price per period
      Löst aus:
      SQLException - when persistence fails
    • setRentalPeriod

      public void setRentalPeriod(UUID regionId, Duration period) throws SQLException
      Stores the prepared billable rental period.
      Parameter:
      regionId - parcel identifier
      period - positive period
      Löst aus:
      SQLException - when persistence fails