@Override
	public CPDefinitionSpecificationOptionValue findByPrimaryKey(
		Serializable primaryKey)
		throws NoSuchCPDefinitionSpecificationOptionValueException {
		CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue =
			fetchByPrimaryKey(primaryKey);

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

			throw new NoSuchCPDefinitionSpecificationOptionValueException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
				primaryKey);
		}

		return cpDefinitionSpecificationOptionValue;
	}
@ Override public CPDefinitionSpecificationOptionValue findByPrimaryKey ( Serializable primaryKey ) throws NoSuchCPDefinitionSpecificationOptionValueException { CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue = fetchByPrimaryKey ( primaryKey ) ; if ( cpDefinitionSpecificationOptionValue == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchCPDefinitionSpecificationOptionValueException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return cpDefinitionSpecificationOptionValue ; }
Returns the cp definition specification option value 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 specification option value
@return the cp definition specification option value
@throws NoSuchCPDefinitionSpecificationOptionValueException if a cp definition specification option value with the primary key could not be found