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/uploadimage/business/OptionsDAO.java 128
fr/paris/lutece/plugins/uploadimage/business/OptionsDAO.java 288
        daoUtil.setInt( 1 , nKey );
        daoUtil.executeQuery( );

        Options options = null;

        if ( daoUtil.next( ) )
        {
            options = new Options();
            options.setId( daoUtil.getInt( 1 ) );
            options.setStrict( daoUtil.getBoolean( 2 ) );
            options.setResponsive( daoUtil.getBoolean( 3 ) );
            options.setCheckImageOrigin( daoUtil.getBoolean( 4 ) );
            options.setModal( daoUtil.getBoolean( 5 ) );
            options.setGuides( daoUtil.getBoolean( 6 ) );
            options.setHighlight( daoUtil.getBoolean( 7 ) );
            options.setBackground( daoUtil.getBoolean( 8 ) );
            options.setAutoCrop( daoUtil.getBoolean( 9 ) );
            options.setDragCrop( daoUtil.getBoolean( 10 ) );
            options.setMovable( daoUtil.getBoolean( 11 ) );
            options.setRotatable( daoUtil.getBoolean( 12 ) );
            options.setZoomable( daoUtil.getBoolean( 13 ) );
            options.setTouchDragZoom( daoUtil.getBoolean( 14 ) );
            options.setMouseWheelZoom( daoUtil.getBoolean( 15 ) );
            options.setCropBoxMovable( daoUtil.getBoolean( 16 ) );
            options.setCropBoxResizable( daoUtil.getBoolean( 17 ) );
            options.setDoubleClickToggle( daoUtil.getBoolean( 18 ) );
            options.setWidth( daoUtil.getInt( 19 ) );
            options.setHeight( daoUtil.getInt( 20 ) );
            options.setX( daoUtil.getInt( 21 ) );
            options.setY( daoUtil.getInt( 22 ) );
            options.setRatio( daoUtil.getString( 23 ) );
            options.setFieldName( daoUtil.getString( 24 ) );
        }

        daoUtil.free( );
        return options;
    }
File Line
fr/paris/lutece/plugins/uploadimage/business/OptionsDAO.java 90
fr/paris/lutece/plugins/uploadimage/business/OptionsDAO.java 184
        options.setId( newPrimaryKey( plugin ) );

        daoUtil.setInt( 1, options.getId( ) );
        daoUtil.setBoolean( 2, options.getStrict( ) );
        daoUtil.setBoolean( 3, options.getResponsive( ) );
        daoUtil.setBoolean( 4, options.getCheckImageOrigin( ) );
        daoUtil.setBoolean( 5, options.getModal( ) );
        daoUtil.setBoolean( 6, options.getGuides( ) );
        daoUtil.setBoolean( 7, options.getHighlight( ) );
        daoUtil.setBoolean( 8, options.getBackground( ) );
        daoUtil.setBoolean( 9, options.getAutoCrop( ) );
        daoUtil.setBoolean( 10, options.getDragCrop( ) );
        daoUtil.setBoolean( 11, options.getMovable( ) );
        daoUtil.setBoolean( 12, options.getRotatable( ) );
        daoUtil.setBoolean( 13, options.getZoomable( ) );
        daoUtil.setBoolean( 14, options.getTouchDragZoom( ) );
        daoUtil.setBoolean( 15, options.getMouseWheelZoom( ) );
        daoUtil.setBoolean( 16, options.getCropBoxMovable( ) );
        daoUtil.setBoolean( 17, options.getCropBoxResizable( ) );
        daoUtil.setBoolean( 18, options.getDoubleClickToggle( ) );
        daoUtil.setInt( 19, options.getWidth( ) );
        daoUtil.setInt( 20, options.getHeight( ) );
        daoUtil.setInt( 21, options.getX( ) );
        daoUtil.setInt( 22, options.getY( ) );
        daoUtil.setString( 23, options.getRatio( ) );
        daoUtil.setString( 24, options.getFieldName( ) );
        
        daoUtil.executeUpdate( );
File Line
fr/paris/lutece/plugins/uploadimage/business/OptionsDAO.java 135
fr/paris/lutece/plugins/uploadimage/business/OptionsDAO.java 228
fr/paris/lutece/plugins/uploadimage/business/OptionsDAO.java 295
            options = new Options();
            options.setId( daoUtil.getInt( 1 ) );
            options.setStrict( daoUtil.getBoolean( 2 ) );
            options.setResponsive( daoUtil.getBoolean( 3 ) );
            options.setCheckImageOrigin( daoUtil.getBoolean( 4 ) );
            options.setModal( daoUtil.getBoolean( 5 ) );
            options.setGuides( daoUtil.getBoolean( 6 ) );
            options.setHighlight( daoUtil.getBoolean( 7 ) );
            options.setBackground( daoUtil.getBoolean( 8 ) );
            options.setAutoCrop( daoUtil.getBoolean( 9 ) );
            options.setDragCrop( daoUtil.getBoolean( 10 ) );
            options.setMovable( daoUtil.getBoolean( 11 ) );
            options.setRotatable( daoUtil.getBoolean( 12 ) );
            options.setZoomable( daoUtil.getBoolean( 13 ) );
            options.setTouchDragZoom( daoUtil.getBoolean( 14 ) );
            options.setMouseWheelZoom( daoUtil.getBoolean( 15 ) );
            options.setCropBoxMovable( daoUtil.getBoolean( 16 ) );
            options.setCropBoxResizable( daoUtil.getBoolean( 17 ) );
            options.setDoubleClickToggle( daoUtil.getBoolean( 18 ) );
            options.setWidth( daoUtil.getInt( 19 ) );
            options.setHeight( daoUtil.getInt( 20 ) );
            options.setX( daoUtil.getInt( 21 ) );
            options.setY( daoUtil.getInt( 22 ) );
            options.setRatio( daoUtil.getString( 23 ) );
            options.setFieldName( daoUtil.getString( 24 ) );