Fork me on GitHub

CPD Results

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

Duplications

File Line
fr/paris/lutece/plugins/archivagedansmarue/business/dao/impl/SignalementDAO.java 275
fr/paris/lutece/plugins/archivagedansmarue/business/dao/impl/SignalementDAO.java 318
        DAOUtil daoUtil = new DAOUtil( SQL_QUERY_INSERT_SIGNALEMENT_SIGNALEMENT, _plugin );

        try
        {
            int nIndex = 1;

            daoUtil.setInt( nIndex++, signalement.getIdSignalement( ) );
            daoUtil.setInt( nIndex++, signalement.getSuivi( ) );
            daoUtil.setTimestamp( nIndex++, formatDateSqlWithTime( signalement.getDateCreation( ) ) );
            daoUtil.setTimestamp( nIndex++, formatDateSqlWithTime( signalement.getDatePrevueTraitement( ) ) );
            daoUtil.setString( nIndex++, signalement.getCommentaire( ) );
            daoUtil.setInt( nIndex++, signalement.getAnnee( ) );
            daoUtil.setString( nIndex++, signalement.getMois( ) );
            daoUtil.setInt( nIndex++, signalement.getNumero( ) );
            daoUtil.setString( nIndex++, signalement.getPrefix( ) );
            daoUtil.setInt( nIndex++, signalement.getIdPriorite( ) );
            daoUtil.setInt( nIndex++, signalement.getIdArrondissement( ) );
            daoUtil.setInt( nIndex++, signalement.getIdTypeSignalement( ) );
            daoUtil.setInt( nIndex++, signalement.getIdSector( ) );
File Line
fr/paris/lutece/plugins/archivagedansmarue/business/dao/impl/ArchivageDAO.java 189
fr/paris/lutece/plugins/archivagedansmarue/business/dao/impl/ArchivageDAO.java 221
        DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECT_ALL );
        daoUtil.executeQuery( );

        // Pour chaque resultat retourne
        while ( daoUtil.next( ) )
        {
            Archivage archivage = new Archivage( );
            int nIndex = 1;
            archivage.setIdArchivage( daoUtil.getInt( nIndex++ ) );
            archivage.setDateDebut( daoUtil.getDate( nIndex++ ) );
            archivage.setDateFin( daoUtil.getDate( nIndex++ ) );
            archivage.setNbSignalementArchivesInit( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementInsere( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementEnErreur( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementProdInit( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementSupprime( daoUtil.getInt( nIndex++ ) );
            archivage.setDuree( daoUtil.getInt( nIndex ) );
            result.add( archivage );
        }

        daoUtil.close( );

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public List<Archivage> loadAllDesc( )
File Line
fr/paris/lutece/plugins/archivagedansmarue/business/dao/impl/SignalementDAO.java 293
fr/paris/lutece/plugins/archivagedansmarue/business/dao/impl/SignalementDAO.java 335
            daoUtil.setInt( nIndex++, signalement.getIdSector( ) );
            daoUtil.setInt( nIndex++, signalement.getIsDoublon( ) );
            daoUtil.setString( nIndex++, signalement.getToken( ) );
            daoUtil.setTimestamp( nIndex++, formatDateSqlWithTime( signalement.getServiceFaitDatePassage( ) ) );
            daoUtil.setInt( nIndex++, signalement.getFelicitations( ) );
            daoUtil.setTimestamp( nIndex++, formatDateSqlWithTime( signalement.getDateMiseSurveillance( ) ) );
            daoUtil.setTimestamp( nIndex++, formatDateSqlWithTime( signalement.getDateRejet( ) ) );
            daoUtil.setString( nIndex, signalement.getCommentaireAgentTerrain( ));

            daoUtil.executeUpdate( );
        } finally
        {
            daoUtil.close( );
        }

    }

    /**
     * {@inheritDoc}
     *
     * @throws ParseException
     */
    @Override
    public void insertSignalementWithoutSector( SignalementSelectReportData signalement ) throws SQLException, ParseException
File Line
fr/paris/lutece/plugins/archivagedansmarue/business/dao/impl/ArchivageDAO.java 165
fr/paris/lutece/plugins/archivagedansmarue/business/dao/impl/ArchivageDAO.java 196
fr/paris/lutece/plugins/archivagedansmarue/business/dao/impl/ArchivageDAO.java 228
            int nIndex = 1;
            archivage.setIdArchivage( daoUtil.getInt( nIndex++ ) );
            archivage.setDateDebut( daoUtil.getDate( nIndex++ ) );
            archivage.setDateFin( daoUtil.getDate( nIndex++ ) );
            archivage.setNbSignalementArchivesInit( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementInsere( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementEnErreur( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementProdInit( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementSupprime( daoUtil.getInt( nIndex++ ) );
            archivage.setDuree( daoUtil.getInt( nIndex ) );
File Line
fr/paris/lutece/plugins/archivagedansmarue/business/dao/impl/ArchivageDAO.java 197
fr/paris/lutece/plugins/archivagedansmarue/business/dao/impl/ArchivageDAO.java 229
fr/paris/lutece/plugins/archivagedansmarue/business/dao/impl/ArchivageDAO.java 260
            archivage.setIdArchivage( daoUtil.getInt( nIndex++ ) );
            archivage.setDateDebut( daoUtil.getDate( nIndex++ ) );
            archivage.setDateFin( daoUtil.getDate( nIndex++ ) );
            archivage.setNbSignalementArchivesInit( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementInsere( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementEnErreur( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementProdInit( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementSupprime( daoUtil.getInt( nIndex++ ) );
            archivage.setDuree( daoUtil.getInt( nIndex ) );
            result.add( archivage );
File Line
fr/paris/lutece/plugins/archivagedansmarue/business/dao/impl/ArchivageDAO.java 166
fr/paris/lutece/plugins/archivagedansmarue/business/dao/impl/ArchivageDAO.java 260
            archivage.setIdArchivage( daoUtil.getInt( nIndex++ ) );
            archivage.setDateDebut( daoUtil.getDate( nIndex++ ) );
            archivage.setDateFin( daoUtil.getDate( nIndex++ ) );
            archivage.setNbSignalementArchivesInit( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementInsere( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementEnErreur( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementProdInit( daoUtil.getInt( nIndex++ ) );
            archivage.setNbSignalementSupprime( daoUtil.getInt( nIndex++ ) );
            archivage.setDuree( daoUtil.getInt( nIndex ) );