Fork me on GitHub

CPD Results

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

Duplications

File Line
fr/paris/lutece/plugins/chatbotrecorder/business/ScenarioDAO.java 150
fr/paris/lutece/plugins/chatbotrecorder/business/ScenarioDAO.java 178
            daoUtil.executeQuery( );
            while ( daoUtil.next( ) )
            {
                Scenario scenario = new Scenario( );
                int nIndex = 1;
                scenario.setId( daoUtil.getInt( nIndex++ ) );
                scenario.setName( daoUtil.getString( nIndex++ ) );
                scenario.setDescription( daoUtil.getString( nIndex++ ) );
                scenario.setChatBotKey( daoUtil.getString( nIndex++ ) );
                scenario.setLastRun( daoUtil.getTimestamp( nIndex++ ) );
                scenario.setStatus( daoUtil.getInt( nIndex++ ) );
                scenario.setVersion( daoUtil.getInt( nIndex++ ) );
                scenarioList.add( scenario );
            }
        }
        return scenarioList;
    }

    /**
     * {@inheritDoc }
     */
    @Override
    public List<Scenario> selectScenariosListByBotKey( String botKey, Plugin plugin )
File Line
fr/paris/lutece/plugins/chatbotrecorder/business/ReplayDAO.java 147
fr/paris/lutece/plugins/chatbotrecorder/business/ReplayDAO.java 207
            daoUtil.executeQuery( );
            while ( daoUtil.next( ) )
            {
                Replay replay = new Replay( );
                int nIndex = 1;
                replay.setId( daoUtil.getInt( nIndex++ ) );
                replay.setLastRun( daoUtil.getTimestamp( nIndex++ ) );
                replay.setStatus( daoUtil.getInt( nIndex++ ) );
                replay.setNbrErr( daoUtil.getInt( nIndex++ ) );
                replay.setIdScenario( daoUtil.getInt( nIndex++ ) );
                replay.setVersion( daoUtil.getInt( nIndex++ ) );
                replayList.add( replay );
            }
        }
        return replayList;
    }
File Line
fr/paris/lutece/plugins/chatbotrecorder/business/ConversationDAO.java 146
fr/paris/lutece/plugins/chatbotrecorder/business/ConversationDAO.java 205
            daoUtil.executeQuery( );
            while ( daoUtil.next( ) )
            {
                Conversation conversation = new Conversation( );
                int nIndex = 1;
                conversation.setId( daoUtil.getInt( nIndex++ ) );
                conversation.setUserMsg( daoUtil.getString( nIndex++ ) );
                conversation.setBotResponse( daoUtil.getString( nIndex++ ) );
                conversation.setIdScenario( daoUtil.getInt( nIndex++ ) );
                conversation.setVersion( daoUtil.getInt( nIndex++ ) );
                conversationList.add( conversation );
            }
        }
        return conversationList;
    }

    /**
     * {@inheritDoc }
     */
    @Override
    public List<Integer> selectIdConversationsList( Plugin plugin )
File Line
fr/paris/lutece/plugins/chatbotrecorder/business/ConversationDAO.java 204
fr/paris/lutece/plugins/chatbotrecorder/business/ConversationDAO.java 228
            daoUtil.setInt( 1, idScenario );
            daoUtil.executeQuery( );
            while ( daoUtil.next( ) )
            {
                Conversation conversation = new Conversation( );
                int nIndex = 1;
                conversation.setId( daoUtil.getInt( nIndex++ ) );
                conversation.setUserMsg( daoUtil.getString( nIndex++ ) );
                conversation.setBotResponse( daoUtil.getString( nIndex++ ) );
                conversation.setIdScenario( daoUtil.getInt( nIndex++ ) );
                conversation.setVersion( daoUtil.getInt( nIndex++ ) );
                conversationList.add( conversation );
            }
        }
        return conversationList;
    }

    @Override
    public List<Conversation> selectConversationsByVersion( int idScenario, int idVersion, Plugin plugin )