@Override
	public CPDefinitionVirtualSetting findByPrimaryKey(Serializable primaryKey)
		throws NoSuchCPDefinitionVirtualSettingException {
		CPDefinitionVirtualSetting cpDefinitionVirtualSetting = fetchByPrimaryKey(primaryKey);

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

			throw new NoSuchCPDefinitionVirtualSettingException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
				primaryKey);
		}

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