CPD Results
The following document contains the results of PMD's CPD 5.3.5.
Duplications
File |
Line |
fr/paris/lutece/plugins/wrapper/business/WrapperDAO.java |
120 |
fr/paris/lutece/plugins/wrapper/business/WrapperDAO.java |
216 |
DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECT, plugin );
daoUtil.setInt( 1, nWrapperId );
daoUtil.executeQuery( );
Wrapper wrapper = null;
if ( daoUtil.next( ) )
{
wrapper = new Wrapper( );
wrapper.setId( daoUtil.getInt( 1 ) );
wrapper.setDescription( daoUtil.getString( 2 ) );
wrapper.setWrapperUrl( daoUtil.getString( 3 ) );
wrapper.setWrapperStyles( daoUtil.getString( 4 ) );
wrapper.setStatus( daoUtil.getInt( 5 ) );
wrapper.setWorkgroup( daoUtil.getString( 6 ) );
wrapper.setRole( daoUtil.getString( 7 ) );
}
daoUtil.free( );
return wrapper;
}
/**
* Delete a record from the table
* @param wrapper The Wrapper object
* @param plugin The plugin
*/
public void delete( Wrapper wrapper, Plugin plugin ) |
File |
Line |
fr/paris/lutece/plugins/wrapper/business/WrapperDAO.java |
187 |
fr/paris/lutece/plugins/wrapper/business/WrapperDAO.java |
248 |
DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin );
daoUtil.executeQuery( );
while ( daoUtil.next( ) )
{
Wrapper wrapper = new Wrapper( );
wrapper.setId( daoUtil.getInt( 1 ) );
wrapper.setDescription( daoUtil.getString( 2 ) );
wrapper.setWrapperUrl( daoUtil.getString( 3 ) );
wrapper.setWrapperStyles( daoUtil.getString( 4 ) );
wrapper.setStatus( daoUtil.getInt( 5 ) );
wrapper.setWorkgroup( daoUtil.getString( 6 ) );
wrapper.setRole( daoUtil.getString( 7 ) );
wrapperList.add( wrapper );
}
daoUtil.free( );
return wrapperList;
} |