Class PremiumList

    • Constructor Detail

      • PremiumList

        public PremiumList()
    • Method Detail

      • getCurrency

        public getCurrency()
        Returns the CurrencyUnit used for this list.
      • getLabelsToPrices

        public<java.lang.String,​java.math.BigDecimal> getLabelsToPrices()
        Returns a Map of domain labels to prices.

        Note that this is lazily loaded and thus will throw a LazyInitializationException if used outside the transaction in which the given entity was loaded. You generally should not be using this anyway as it's inefficient to load all of the PremiumEntry rows if you don't need them. To check prices, use PremiumListSqlDao.getPremiumPrice(java.lang.String, java.lang.String) instead.

      • getBloomFilter

        public<java.lang.String> getBloomFilter()
        Returns a Bloom filter to determine whether a label might be premium, or is definitely not.

        If the domain label might be premium, then the next step is to check for the existence of a corresponding row in the PremiumListEntry table. Otherwise, we know for sure it's not premium, and no DB load is required.