CPD Results
The following document contains the results of PMD's CPD 6.13.0.
Duplications
File |
Line |
fr/paris/lutece/plugins/workflow/modules/extendrating/business/UpdateTaskStateResourceQueueDAO.java |
89 |
fr/paris/lutece/plugins/workflow/modules/extendrating/business/UpdateTaskStateResourceQueueDAO.java |
237 |
daoUtil.setInt( 1, nId );
daoUtil.executeQuery( );
UpdateTaskStateResourceQueue updateTaskStateResourceQueue = null;
if ( daoUtil.next( ) )
{
int nIndex = 0;
updateTaskStateResourceQueue = new UpdateTaskStateResourceQueue( );
updateTaskStateResourceQueue.setIdResource( daoUtil.getInt( ++nIndex ) );
updateTaskStateResourceQueue.setIdTask( daoUtil.getInt( ++nIndex ) );
updateTaskStateResourceQueue.setResourceType( daoUtil.getString( ++nIndex ) );
updateTaskStateResourceQueue.setInitialStateChange( daoUtil.getBoolean( ++nIndex ) );
updateTaskStateResourceQueue.setIdInitialState( daoUtil.getInt( ++nIndex ) );
updateTaskStateResourceQueue.setIdExternalParent( daoUtil.getInt( ++nIndex ) );
updateTaskStateResourceQueue.setIdWorkflow( daoUtil.getInt( ++nIndex ) );
}
daoUtil.free( );
return updateTaskStateResourceQueue;
}
}
/**
* {@inheritDoc }
*/
@Override
public void delete( int nIdResource, int nIdTask ) |
File |
Line |
fr/paris/lutece/plugins/workflow/modules/extendrating/business/UpdateTaskStateResourceQueueDAO.java |
171 |
fr/paris/lutece/plugins/workflow/modules/extendrating/business/UpdateTaskStateResourceQueueDAO.java |
203 |
try ( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL_ACTIVED ) )
{
daoUtil.executeQuery( );
while ( daoUtil.next( ) )
{
int nIndex = 0;
UpdateTaskStateResourceQueue updateTaskStateResourceQueue = new UpdateTaskStateResourceQueue( );
updateTaskStateResourceQueue.setIdResource( daoUtil.getInt( ++nIndex ) );
updateTaskStateResourceQueue.setIdTask( daoUtil.getInt( ++nIndex ) );
updateTaskStateResourceQueue.setResourceType( daoUtil.getString( ++nIndex ) );
updateTaskStateResourceQueue.setInitialStateChange( daoUtil.getBoolean( ++nIndex ) );
updateTaskStateResourceQueue.setIdInitialState( daoUtil.getInt( ++nIndex ) );
updateTaskStateResourceQueue.setIdExternalParent( daoUtil.getInt( ++nIndex ) );
updateTaskStateResourceQueue.setIdWorkflow( daoUtil.getInt( ++nIndex ) );
listUpdateResourceQueues.add( updateTaskStateResourceQueue );
}
daoUtil.free( );
return listUpdateResourceQueues;
}
}
/**
* {@inheritDoc }
*/
@Override
public List<UpdateTaskStateResourceQueue> selectAllDisabled( ) |
File |
Line |
fr/paris/lutece/plugins/workflow/modules/extendrating/business/UpdateTaskStateResourceQueueDAO.java |
89 |
fr/paris/lutece/plugins/workflow/modules/extendrating/business/UpdateTaskStateResourceQueueDAO.java |
237 |
fr/paris/lutece/plugins/workflow/modules/extendrating/business/UpdateTaskStateResourceQueueDAO.java |
279 |
daoUtil.setInt( 1, nId );
daoUtil.executeQuery( );
UpdateTaskStateResourceQueue updateTaskStateResourceQueue = null;
if ( daoUtil.next( ) )
{
int nIndex = 0;
updateTaskStateResourceQueue = new UpdateTaskStateResourceQueue( );
updateTaskStateResourceQueue.setIdResource( daoUtil.getInt( ++nIndex ) );
updateTaskStateResourceQueue.setIdTask( daoUtil.getInt( ++nIndex ) );
updateTaskStateResourceQueue.setResourceType( daoUtil.getString( ++nIndex ) );
updateTaskStateResourceQueue.setInitialStateChange( daoUtil.getBoolean( ++nIndex ) );
updateTaskStateResourceQueue.setIdInitialState( daoUtil.getInt( ++nIndex ) );
updateTaskStateResourceQueue.setIdExternalParent( daoUtil.getInt( ++nIndex ) );
updateTaskStateResourceQueue.setIdWorkflow( daoUtil.getInt( ++nIndex ) );
}
daoUtil.free( );
return updateTaskStateResourceQueue;
}
} |
File |
Line |
fr/paris/lutece/plugins/workflow/modules/extendrating/business/UpdateTaskStateResourceQueueDAO.java |
65 |
fr/paris/lutece/plugins/workflow/modules/extendrating/business/UpdateTaskStateResourceQueueDAO.java |
145 |
try ( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_INSERT ) )
{
int nIndex = 0;
daoUtil.setInt( ++nIndex, updateTaskStateResourceQueue.getIdResource( ) );
daoUtil.setInt( ++nIndex, updateTaskStateResourceQueue.getIdTask( ) );
daoUtil.setString( ++nIndex, updateTaskStateResourceQueue.getResourceType( ) );
daoUtil.setBoolean( ++nIndex, updateTaskStateResourceQueue.isInitialStateChange( ) );
daoUtil.setInt( ++nIndex, updateTaskStateResourceQueue.getIdInitialState( ) );
daoUtil.setInt( ++nIndex, updateTaskStateResourceQueue.getIdExternalParent( ) );
daoUtil.setInt( ++nIndex, updateTaskStateResourceQueue.getIdWorkflow( ) );
daoUtil.executeUpdate( ); |