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/myfiles/business/database/MyFileBlobDAO.java 110
fr/paris/lutece/plugins/myfiles/business/database/MyFileBlobDAO.java 139
        daoUtil.setInt( 1, nKey );
        daoUtil.executeQuery( );
        MyFileBlob myFileBlob = null;

        if ( daoUtil.next( ) )
        {
            myFileBlob = new MyFileBlob( );
            int nIndex = 1;

            myFileBlob.setId( daoUtil.getInt( nIndex++ ) );
            myFileBlob.setBucketNameId( daoUtil.getString( nIndex++ ) );
            myFileBlob.setContentType( daoUtil.getString( nIndex++ ) );
            myFileBlob.setSize( daoUtil.getInt( nIndex++ ) );
            myFileBlob.setName( daoUtil.getString( nIndex++ ) );
            myFileBlob.setInputstream( daoUtil.getBinaryStream( nIndex++ ) );
        }

        daoUtil.free( );
        return myFileBlob;
    }

    /**
     * {@inheritDoc }
     */
    @Override
    public MyFileBlob loadByName( String strNameBucket, String strNameFile, Plugin plugin )