code: public static CPDefinitionInventory findByCPDefinitionId(
  		long CPDefinitionId)
  		throws com.liferay.commerce.exception.NoSuchCPDefinitionInventoryException {
  		return getPersistence().findByCPDefinitionId(CPDefinitionId);
  	}
docs: Returns the cp definition inventory where CPDefinitionId = &#63; or throws a {@link NoSuchCPDefinitionInventoryException} if it could not be found.
  
  @param CPDefinitionId the cp definition ID
  @return the matching cp definition inventory
  @throws NoSuchCPDefinitionInventoryException if a matching cp definition inventory could not be found