Returns all the cp instances where CPDefinitionId = &#63; and displayDate &lt; &#63; and status = &#63;.

@param CPDefinitionId the cp definition ID
@param displayDate the display date
@param status the status
@return the matching cp instances
3529
@Override
	public List<CPInstance> findByC_LtD_S(long CPDefinitionId,
		Date displayDate, int status) {
		return findByC_LtD_S(CPDefinitionId, displayDate, status,
			QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
870673
@Override
	public List<CPDefinition> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
572523
public static com.liferay.commerce.model.CPDefinitionInventory createCPDefinitionInventory(
		long CPDefinitionInventoryId) {
		return getService().createCPDefinitionInventory(CPDefinitionInventoryId);
	}
1203368
@Override
	public List<CPDefinitionSpecificationOptionValue> findByGroupId(
		long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1303799
@Override
	public void cacheResult(List<CPDefinition> cpDefinitions) {
		for (CPDefinition cpDefinition : cpDefinitions) {
			if (entityCache.getResult(
						CPDefinitionModelImpl.ENTITY_CACHE_ENABLED,
						CPDefinitionImpl.class, cpDefinition.getPrimaryKey()) == null) {
				cacheResult(cpDefinition);
			}
			else {
				cpDefinition.resetOriginalValues();
			}
		}
	}
156845
@Override
	public List<CPDisplayLayout> getCPDisplayLayoutsByUuidAndCompanyId(
		String uuid, long companyId) {
		return cpDisplayLayoutPersistence.findByUuid_C(uuid, companyId);
	}
809408
@Override
	public List<CPDefinitionSpecificationOptionValue> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1142784
public static long getDayDifference(Date startDate, Date endDate) {
		long startTime = startDate.getTime();
		long endTime = endDate.getTime();
		long diffTime = endTime - startTime;
		long diffDays = TimeUnit.MILLISECONDS.toDays(diffTime);
		return diffDays;
	}
735691
@Override
	public List<CPDefinitionOptionValueRel> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
192805
@Override
	public com.liferay.commerce.product.model.CPDisplayLayout createCPDisplayLayout(
		long CPDisplayLayoutId) {
		return _cpDisplayLayoutLocalService.createCPDisplayLayout(CPDisplayLayoutId);
	}
921027
@Override
	public List<CPDisplayLayout> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
501864
@Override
	public void removeByCPDefinitionId(long CPDefinitionId) {
		for (CPDefinitionOptionRel cpDefinitionOptionRel : findByCPDefinitionId(
				CPDefinitionId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionOptionRel);
		}
	}
542226
@Override
	public List<CPDefinitionOptionValueRel> findByCPDefinitionOptionRelId(
		long CPDefinitionOptionRelId) {
		return findByCPDefinitionOptionRelId(CPDefinitionOptionRelId,
			QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
83297
public static com.liferay.commerce.product.model.CPDisplayLayout createCPDisplayLayout(
		long CPDisplayLayoutId) {
		return getService().createCPDisplayLayout(CPDisplayLayoutId);
	}
1314684
@Override
	public List<CPDefinitionLink> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
310169
@Override
	@Transactional(enabled = false)
	public CPDisplayLayout createCPDisplayLayout(long CPDisplayLayoutId) {
		return cpDisplayLayoutPersistence.create(CPDisplayLayoutId);
	}
1106641
@Override
	public com.liferay.commerce.product.model.CPDefinition fetchCPDefinitionByUuidAndGroupId(
		String uuid, long groupId) {
		return _cpDefinitionLocalService.fetchCPDefinitionByUuidAndGroupId(uuid,
			groupId);
	}