@Override
	public CPDefinitionLocalization findByPrimaryKey(Serializable primaryKey)
		throws NoSuchCPDefinitionLocalizationException {
		CPDefinitionLocalization cpDefinitionLocalization = fetchByPrimaryKey(primaryKey);

		if (cpDefinitionLocalization == null) {
			if (_log.isDebugEnabled()) {
				_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
			}

			throw new NoSuchCPDefinitionLocalizationException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
				primaryKey);
		}

		return cpDefinitionLocalization;
	}
@ Override public CPDefinitionLocalization findByPrimaryKey ( Serializable primaryKey ) throws NoSuchCPDefinitionLocalizationException { CPDefinitionLocalization cpDefinitionLocalization = fetchByPrimaryKey ( primaryKey ) ; if ( cpDefinitionLocalization == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchCPDefinitionLocalizationException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return cpDefinitionLocalization ; }
Returns the cp definition localization with the primary key or throws a {@link com.liferay.portal.kernel.exception.NoSuchModelException} if it could not be found.

@param primaryKey the primary key of the cp definition localization
@return the cp definition localization
@throws NoSuchCPDefinitionLocalizationException if a cp definition localization with the primary key could not be found