The following document contains the results of PMD's CPD 6.13.0.
File | Line |
---|---|
fr/paris/lutece/plugins/searchstats/business/QueryRecordDAO.java | 145 |
fr/paris/lutece/plugins/searchstats/business/QueryRecordDAO.java | 201 |
String strSQL = buildQuery( SQL_QUERY_SELECT, clauses ); strSQL += SQL_ORDER_BY; DAOUtil daoUtil = new DAOUtil( strSQL, plugin ); // Set parameters int i = 1; for ( String strValue : parameters ) { daoUtil.setInt( i++, Integer.parseInt( strValue ) ); } daoUtil.executeQuery( ); while ( daoUtil.next( ) ) { QueryRecord queryRecord = new QueryRecord( ); queryRecord.setYear( daoUtil.getInt( 1 ) ); queryRecord.setMonth( daoUtil.getInt( 2 ) ); queryRecord.setDay( daoUtil.getInt( 3 ) ); queryRecord.setHour( daoUtil.getInt( 4 ) ); queryRecord.setQuery( daoUtil.getString( 5 ) ); listQueryRecords.add( queryRecord ); } daoUtil.free( ); return listQueryRecords; } |