The following document contains the results of PMD's CPD 6.13.0.
| File | Line |
|---|---|
| fr/paris/lutece/plugins/elasticdata/modules/ticketing/business/TicketDAO.java | 82 |
| fr/paris/lutece/plugins/elasticdata/modules/ticketing/business/TicketDAO.java | 140 |
public Collection<DataObject> selectAllIncrementally( Plugin plugin, Timestamp lastIndexation )
{
List<Unit> units = UnitHome.findAll( );
Map<Integer, Unit> unitMap = new HashMap<>( );
for ( Unit unit : units )
{
unitMap.put( unit.getIdUnit( ), unit );
}
List<TicketCategory> categories = TicketCategoryHome.getCategorysList( );
Map<Integer, TicketCategory> catMap = new HashMap<>( );
for ( TicketCategory cat : categories )
{
catMap.put( cat.getId( ), cat );
}
List<VspRule> vspRulesList = VspRuleHome.getVspRulesList( );
List<TicketDataObject> ticketDataObjectList = new ArrayList<>( );
List<Integer> ids = new ArrayList<>( );
try ( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL_TO_INDEX_INCREMENTALLY, plugin ) ) | |