Fork me on GitHub

CPD Results

The following document contains the results of PMD's CPD 6.13.0.

Duplications

File Line
fr/paris/lutece/plugins/forms/modules/documentproducer/business/producerconfig/ConfigProducerDAO.java 153
fr/paris/lutece/plugins/forms/modules/documentproducer/business/producerconfig/ConfigProducerDAO.java 365
        try ( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECT_CONFIG_BY_FORMS, plugin ) )
        {
            daoUtil.setInt( 1, nIdForms );
            daoUtil.executeQuery( );

            while ( daoUtil.next( ) )
            {
                ConfigProducer producerConfig = new ConfigProducer( );
                producerConfig.setIdProducerConfig( daoUtil.getInt( 1 ) );
                producerConfig.setName( daoUtil.getString( 2 ) );
                producerConfig.setIdQuestionFileName( daoUtil.getInt( 3 ) );
                producerConfig.setIdForm( nIdForms );
                producerConfig.setType( daoUtil.getString( 5 ) );
                producerConfig.setTextFileName( daoUtil.getString( 6 ) );
                producerConfig.setTypeConfigFileName( daoUtil.getString( 7 ) );
                listProducerConfig.add( producerConfig );
            }
        }

        return listProducerConfig;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public List<Integer> loadListConfigQuestion( Plugin plugin, int nIdConfig )