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/htmlpage/business/HtmlPageDAO.java 129
fr/paris/lutece/plugins/htmlpage/business/HtmlPageDAO.java 242
        try ( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECT, plugin ) )
        {
            daoUtil.setInt( 1, nHtmlPageId );
            daoUtil.executeQuery( );
    
            HtmlPage htmlpage = null;
    
            if ( daoUtil.next( ) )
            {
                htmlpage = new HtmlPage( );
                htmlpage.setId( daoUtil.getInt( 1 ) );
                htmlpage.setDescription( daoUtil.getString( 2 ) );
                htmlpage.setHtmlContent( daoUtil.getString( 3 ) );
                htmlpage.setStatus( daoUtil.getInt( 4 ) );
                htmlpage.setWorkgroup( daoUtil.getString( 5 ) );
                htmlpage.setRole( daoUtil.getString( 6 ) );
                htmlpage.setDateStart( daoUtil.getTimestamp( 7 ) );
                htmlpage.setDateEnd( daoUtil.getTimestamp( 8 ) );
            }
        
            return htmlpage;
        }
    }

    /**
     * Delete a record from the table
     * 
     * @param htmlpage
     *            The HtmlPage object
     * @param plugin
     *            The plugin
     */
    public void delete( HtmlPage htmlpage, Plugin plugin )
File Line
fr/paris/lutece/plugins/htmlpage/business/HtmlPageDAO.java 208
fr/paris/lutece/plugins/htmlpage/business/HtmlPageDAO.java 276
        try ( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin ) )
        {
            daoUtil.executeQuery( );
    
            while ( daoUtil.next( ) )
            {
                HtmlPage htmlpage = new HtmlPage( );
                htmlpage.setId( daoUtil.getInt( 1 ) );
                htmlpage.setDescription( daoUtil.getString( 2 ) );
                htmlpage.setHtmlContent( daoUtil.getString( 3 ) );
                htmlpage.setStatus( daoUtil.getInt( 4 ) );
                htmlpage.setWorkgroup( daoUtil.getString( 5 ) );
                htmlpage.setRole( daoUtil.getString( 6 ) );
                htmlpage.setDateStart( daoUtil.getTimestamp( 7 ) );
                htmlpage.setDateEnd( daoUtil.getTimestamp( 8 ) );
                
                htmlpageList.add( htmlpage );
            }

            return htmlpageList;
        }
    }