Fork me on GitHub

CPD Results

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

Duplications

File Line
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java 158
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java 195
        daoUtil.setInt( 1, nDbPageId );
        daoUtil.executeQuery(  );

        DbPageDatabaseSection dbPageDatabaseSection = null;

        while ( daoUtil.next(  ) )
        {
            dbPageDatabaseSection = new DbPageDatabaseSection(  );
            dbPageDatabaseSection.setId( daoUtil.getInt( 1 ) );
            dbPageDatabaseSection.setIdPage( daoUtil.getInt( 2 ) );
            dbPageDatabaseSection.setIdType( daoUtil.getString( 3 ) );
            dbPageDatabaseSection.setTemplatePath( daoUtil.getString( 4 ) );
            dbPageDatabaseSection.setColumn( daoUtil.getString( 5 ) );
            dbPageDatabaseSection.setSql( daoUtil.getString( 6 ) );
            dbPageDatabaseSection.setPool( daoUtil.getString( 7 ) );
            dbPageDatabaseSection.setTitle( daoUtil.getString( 8 ) );
            dbPageDatabaseSection.setOrder( daoUtil.getInt( 9 ) );
            dbPageDatabaseSection.setRole( daoUtil.getString( 10 ) );

            listDbPageDatabaseSections.add( dbPageDatabaseSection );
        }

        daoUtil.free(  );

        return listDbPageDatabaseSections;
    }

    /**
     * This method is used to find the sections of a dbpage
     * @param strRoleKey The role key
     * @param plugin The plugin object
     * @return Collection of DbPageDatabaseSection
     */
    public Collection<DbPageDatabaseSection> loadSectionsByRoleKey( String strRoleKey, Plugin plugin )
File Line
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java 165
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java 202
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java 273
            dbPageDatabaseSection = new DbPageDatabaseSection(  );
            dbPageDatabaseSection.setId( daoUtil.getInt( 1 ) );
            dbPageDatabaseSection.setIdPage( daoUtil.getInt( 2 ) );
            dbPageDatabaseSection.setIdType( daoUtil.getString( 3 ) );
            dbPageDatabaseSection.setTemplatePath( daoUtil.getString( 4 ) );
            dbPageDatabaseSection.setColumn( daoUtil.getString( 5 ) );
            dbPageDatabaseSection.setSql( daoUtil.getString( 6 ) );
            dbPageDatabaseSection.setPool( daoUtil.getString( 7 ) );
            dbPageDatabaseSection.setTitle( daoUtil.getString( 8 ) );
            dbPageDatabaseSection.setOrder( daoUtil.getInt( 9 ) );
            dbPageDatabaseSection.setRole( daoUtil.getString( 10 ) );

            listDbPageDatabaseSections.add( dbPageDatabaseSection );
        }

        daoUtil.free(  );

        return listDbPageDatabaseSections;
    }

    /**
     * This method is used to find the sections of a dbpage
     * @param strRoleKey The role key
     * @param plugin The plugin object
     * @return Collection of DbPageDatabaseSection
     */
    public Collection<DbPageDatabaseSection> loadSectionsByRoleKey( String strRoleKey, Plugin plugin )
File Line
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java 128
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java 163
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java 200
        if ( daoUtil.next(  ) )
        {
            dbPageDatabaseSection = new DbPageDatabaseSection(  );
            dbPageDatabaseSection.setId( daoUtil.getInt( 1 ) );
            dbPageDatabaseSection.setIdPage( daoUtil.getInt( 2 ) );
            dbPageDatabaseSection.setIdType( daoUtil.getString( 3 ) );
            dbPageDatabaseSection.setTemplatePath( daoUtil.getString( 4 ) );
            dbPageDatabaseSection.setColumn( daoUtil.getString( 5 ) );
            dbPageDatabaseSection.setSql( daoUtil.getString( 6 ) );
            dbPageDatabaseSection.setPool( daoUtil.getString( 7 ) );
            dbPageDatabaseSection.setTitle( daoUtil.getString( 8 ) );
            dbPageDatabaseSection.setOrder( daoUtil.getInt( 9 ) );
            dbPageDatabaseSection.setRole( daoUtil.getString( 10 ) );
File Line
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java 98
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java 242
        dbPageDatabaseSection.setId( newPrimaryKey( plugin ) );
        daoUtil.setInt( 1, dbPageDatabaseSection.getId(  ) );
        daoUtil.setInt( 2, dbPageDatabaseSection.getIdPage(  ) );
        daoUtil.setString( 3, dbPageDatabaseSection.getIdType(  ) );
        daoUtil.setString( 4, dbPageDatabaseSection.getTemplatePath(  ) );
        daoUtil.setString( 5, dbPageDatabaseSection.getColumn(  ) );
        daoUtil.setString( 6, dbPageDatabaseSection.getSql(  ) );
        daoUtil.setString( 7, dbPageDatabaseSection.getPool(  ) );
        daoUtil.setString( 8, dbPageDatabaseSection.getTitle(  ) );
        daoUtil.setInt( 9, dbPageDatabaseSection.getOrder(  ) );
        daoUtil.setString( 10, dbPageDatabaseSection.getRole(  ) );

        daoUtil.executeUpdate(  );
File Line
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java 130
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java 273
            dbPageDatabaseSection = new DbPageDatabaseSection(  );
            dbPageDatabaseSection.setId( daoUtil.getInt( 1 ) );
            dbPageDatabaseSection.setIdPage( daoUtil.getInt( 2 ) );
            dbPageDatabaseSection.setIdType( daoUtil.getString( 3 ) );
            dbPageDatabaseSection.setTemplatePath( daoUtil.getString( 4 ) );
            dbPageDatabaseSection.setColumn( daoUtil.getString( 5 ) );
            dbPageDatabaseSection.setSql( daoUtil.getString( 6 ) );
            dbPageDatabaseSection.setPool( daoUtil.getString( 7 ) );
            dbPageDatabaseSection.setTitle( daoUtil.getString( 8 ) );
            dbPageDatabaseSection.setOrder( daoUtil.getInt( 9 ) );
            dbPageDatabaseSection.setRole( daoUtil.getString( 10 ) );