CPD Results
The following document contains the results of PMD's CPD 6.13.0.
Duplications
| File |
Line |
| fr/paris/lutece/plugins/filestoragetransfer/business/FileStorageTransferRequestDAO.java |
75 |
| fr/paris/lutece/plugins/filestoragetransfer/business/FileStorageTransferRequestDAO.java |
138 |
try ( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_INSERT, Statement.RETURN_GENERATED_KEYS, plugin ) )
{
int nIndex = 1;
daoUtil.setString( nIndex++, request.getSourceFileKey( ) );
daoUtil.setString( nIndex++, request.getSourceFileserviceproviderName( ) );
daoUtil.setString( nIndex++, request.getTargetFileKey( ) );
daoUtil.setString( nIndex++, request.getTargetFileserviceproviderName( ) );
daoUtil.setString( nIndex++, request.getRequestStatus( ).getValue( ) );
daoUtil.setInt( nIndex++, request.getRetryCount( ) );
daoUtil.setTimestamp( nIndex++, request.getExecutionTime( ) );
daoUtil.setTimestamp( nIndex++, request.getCreationTime( ) );
daoUtil.setString( nIndex++, request.getRequestContext( ) );
daoUtil.setString( nIndex, request.getContactMail( ) ); |
| File |
Line |
| fr/paris/lutece/plugins/filestoragetransfer/business/FileStorageTransferErrorDAO.java |
207 |
| fr/paris/lutece/plugins/filestoragetransfer/business/FileStorageTransferRequestDAO.java |
224 |
List<FileStorageTransferError> errorList = new ArrayList<>( );
StringBuilder builder = new StringBuilder( );
if ( !listIds.isEmpty( ) )
{
for ( int i = 0; i < listIds.size( ); i++ )
{
builder.append( "?," );
}
String placeHolders = builder.deleteCharAt( builder.length( ) - 1 ).toString( );
String stmt = SQL_QUERY_SELECTALL_BY_IDS + placeHolders + ")";
try ( DAOUtil daoUtil = new DAOUtil( stmt, plugin ) )
{
int index = 1;
for ( Integer n : listIds )
{
daoUtil.setInt( index++, n );
}
daoUtil.executeQuery( );
while ( daoUtil.next( ) )
{ |