public static CPDefinition fetchByC_ERC(long companyId,
		String externalReferenceCode, boolean retrieveFromCache) {
		return getPersistence()
				   .fetchByC_ERC(companyId, externalReferenceCode,
			retrieveFromCache);
	}
public static CPDefinition fetchByC_ERC ( long companyId , String externalReferenceCode , boolean retrieveFromCache ) { return getPersistence ( ) . fetchByC_ERC ( companyId , externalReferenceCode , retrieveFromCache ) ; }
Returns the cp definition where companyId = &#63; and externalReferenceCode = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.

@param companyId the company ID
@param externalReferenceCode the external reference code
@param retrieveFromCache whether to retrieve from the finder cache
@return the matching cp definition, or <code>null</code> if a matching cp definition could not be found