Removes all the commerce discounts where displayDate &lt; &#63; and status = &#63; from the database.

@param displayDate the display date
@param status the status
354860
@Override
	public void removeByLtD_S(Date displayDate, int status) {
		for (CommerceDiscount commerceDiscount : findByLtD_S(displayDate,
				status, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceDiscount);
		}
	}
1017276
@Override
	public void removeByCommerceDiscountId(long commerceDiscountId) {
		for (CommerceDiscountRel commerceDiscountRel : findByCommerceDiscountId(
				commerceDiscountId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceDiscountRel);
		}
	}
1121193
@Override
	public void removeByUuid(String uuid) {
		for (CommercePriceListAccountRel commercePriceListAccountRel : findByUuid(
				uuid, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commercePriceListAccountRel);
		}
	}
1086337
@Override
	public void removeByCommerceOrderId(long commerceOrderId) {
		for (CommerceOrderPayment commerceOrderPayment : findByCommerceOrderId(
				commerceOrderId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceOrderPayment);
		}
	}
654895
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceOrderNote deleteCommerceOrderNote(
		CommerceOrderNote commerceOrderNote) {
		return commerceOrderNotePersistence.remove(commerceOrderNote);
	}
809779
public static void removeByC_LtD_S(long CPDefinitionId, Date displayDate,
		int status) {
		getPersistence().removeByC_LtD_S(CPDefinitionId, displayDate, status);
	}
842050
@Override
	public void removeByCommerceShippingFixedOptionId(
		long commerceShippingFixedOptionId) {
		for (CommerceShippingFixedOptionRel commerceShippingFixedOptionRel : findByCommerceShippingFixedOptionId(
				commerceShippingFixedOptionId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(commerceShippingFixedOptionRel);
		}
	}
363397
@Override
	public void removeByG_S(long groupId, int status) {
		for (CommercePriceList commercePriceList : findByG_S(groupId, status,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commercePriceList);
		}
	}
155627
private void remove(Integer layer, Displayable displayable)
    {
        final Collection<Displayable> displayables = getLayer(layer);
        displayables.remove(displayable);
        if (displayables.isEmpty())
        {
            indexs.remove(layer);
        }
    }
672854
public static List<CPInstance> findByC_LtD_S(long CPDefinitionId,
		Date displayDate, int status) {
		return getPersistence()
				   .findByC_LtD_S(CPDefinitionId, displayDate, status);
	}
813833
void setDisplayNone(boolean displayNone) {

        if (displayNone) {
            getElement().getStyle().setDisplay(Display.NONE);
        } else {
            getElement().getStyle().clearDisplay();
        }
    }
186132
@Override
	public void removeByCommerceNotificationTemplateId(
		long commerceNotificationTemplateId) {
		for (CommerceNotificationQueueEntry commerceNotificationQueueEntry : findByCommerceNotificationTemplateId(
				commerceNotificationTemplateId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(commerceNotificationQueueEntry);
		}
	}
1321985
@Override
	public void removeByU_LtC_O(long userId, Date createDate, int orderStatus) {
		for (CommerceOrder commerceOrder : findByU_LtC_O(userId, createDate,
				orderStatus, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceOrder);
		}
	}
1277882
@Override
	public void removeByCommerceTaxMethodId(long commerceTaxMethodId) {
		for (CommerceTaxFixedRateAddressRel commerceTaxFixedRateAddressRel : findByCommerceTaxMethodId(
				commerceTaxMethodId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceTaxFixedRateAddressRel);
		}
	}
587305
public static List<CommerceDiscount> findByLtE_S(Date expirationDate,
		int status) {
		return getPersistence().findByLtE_S(expirationDate, status);
	}
946840
@Override
	public void removeByU_T(long userId, int type) {
		for (CommerceAccount commerceAccount : findByU_T(userId, type,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceAccount);
		}
	}
1209012
public final void showDate(LocalDate date) {
        requireNonNull(date);
        if (!dayPage.isHidden()) {
            selectedPage.set(getDayPage());
        } else if (!weekPage.isHidden()) {
            selectedPage.set(getWeekPage());
        } else if (!monthPage.isHidden()) {
            selectedPage.set(getMonthPage());
        } else if (!yearPage.isHidden()) {
            selectedPage.set(getYearPage());
        }

        setDate(date);
    }