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/campaign/business/PhaseDAO.java 95
fr/paris/lutece/plugins/campaign/business/PhaseDAO.java 127
            daoUtil.setInt( 1, nKey );
            daoUtil.executeQuery( );
            Phase phase = null;

            if ( daoUtil.next( ) )
            {
                phase = new Phase( );
                int nIndex = 1;

                phase.setId( daoUtil.getInt( nIndex++ ) );
                phase.setCampaignCode( daoUtil.getString( nIndex++ ) );
                phase.setStartingTimeStampDate( daoUtil.getTimestamp( nIndex++ ) );
                phase.setEndingTimeStampDate( daoUtil.getTimestamp( nIndex++ ) );
                phase.setLabel( daoUtil.getString( nIndex++ ) );
                phase.setOrderNum( daoUtil.getInt( nIndex++ ) );
                phase.setCodePhaseType( daoUtil.getString( nIndex ) );

            }

            return phase;
        }
    }

    /**
     * {@inheritDoc }
     */
    @Override
    public Phase findByCampaignCodeAndPhaseTypeCode( String campaignCode, String phaseTypeCode, Plugin plugin )
File Line
fr/paris/lutece/plugins/campaign/business/Campaign.java 68
fr/paris/lutece/plugins/campaign/business/Theme.java 74
    public int getId( )
    {
        return _nId;
    }

    /**
     * Sets the Id
     * 
     * @param nId
     *            The Id
     */
    public void setId( int nId )
    {
        _nId = nId;
    }

    /**
     * Returns the CodeCampaign
     * 
     * @return The CodeCampaign
     */
    public String getCampaignCode( )
    {
        return _strCampaignCode;
    }

    /**
     * Sets the CodeCampaign
     * 
     * @param strCodeCampaign
     *            The CodeCampaign
     */
    public void setCampaignCode( String strCampaignCode )
    {
        _strCampaignCode = strCampaignCode;
    }

    /**
     * Returns the Title
     * 
     * @return The Title
     */
    public String getTitle( )
    {
        return _strTitle;
    }

    /**
     * Sets the Title
     * 
     * @param strTitle
     *            The Title
     */
    public void setTitle( String strTitle )
    {
        _strTitle = strTitle;
    }

    /**
     * Returns the Description
     * 
     * @return The Description
     */
    public String getDescription( )
    {
        return _strDescription;
    }

    /**
     * Sets the Description
     * 
     * @param strDescription
     *            The Description
     */
    public void setDescription( String strDescription )
    {
        _strDescription = strDescription;
    }

    /**
     * Returns the Active
     * 
     * @return The Active
     */
    public boolean getActive( )
    {
        return _bActive;
    }

    /**
     * Sets the Active
     * 
     * @param bActive
     *            The Active
     */
    public void setActive( boolean bActive )
    {
        _bActive = bActive;
    }