lib/src/main/java/edu/utexas/tacc/tapis/files/lib/dao/transfers/FileTransfersDAO.java
public TransferTaskParent updateTransferTaskParentSize(@NotNull TransferTask task, Long newBytes) throws DAOException {
        RowProcessor rowProcessor = new TransferTaskParentRowProcessor();
        try (Connection connection = HikariConnectionPool.getConnection()) {
            BeanHandler<TransferTaskParent> handler = new BeanHandler<>(TransferTaskParent.class, rowProcessor);
            String stmt = FileTransfersDAOStatements.UPDATE_PARENT_TASK_SIZE;
            QueryRunner runner = new QueryRunner();
            TransferTaskParent updatedTask = runner.query(connection, stmt, handler,
                newBytes,
                task.getId());
            return updatedTask;
        } catch (SQLException ex) {
            throw new DAOException(Utils.getMsg("FILES_TXFR_DAO_ERR1", task.getTenantId(), task.getUsername(),
                  "updateTransferTaskParentSize", task.getId(), task.getUuid(), ex.getMessage()), ex);
        }
    }
/**
     * This method is used to increment the total size of the transfer. As the directory
     * is recursively walked, we will add the size of the files to the current total.
     *
     * @param task
     * @param newBytes The size in bytes to be added to the total size of the transfer
     */
This method is used to increment the total size of the transfer. As the directory
is recursively walked, we will add the size of the files to the current total.

@param task
@param newBytes The size in bytes to be added to the total size of the transfer
This method is used to increment the total size of the transfer . As the directory is recursively walked we will add the size of the files to the current total . @param task @param newBytes The size in bytes to be added to the total size of the transfer
public TransferTaskParent updateTransferTaskParentSize(@NotNull TransferTask task, Long newBytes) throws DAOException {
        RowProcessor rowProcessor = new TransferTaskParentRowProcessor();
        try (Connection connection = HikariConnectionPool.getConnection()) {
            BeanHandler<TransferTaskParent> handler = new BeanHandler<>(TransferTaskParent.class, rowProcessor);
            String stmt = FileTransfersDAOStatements.UPDATE_PARENT_TASK_SIZE;
            QueryRunner runner = new QueryRunner();
            TransferTaskParent updatedTask = runner.query(connection, stmt, handler,
                newBytes,
                task.getId());
            return updatedTask;
        } catch (SQLException ex) {
            throw new DAOException(Utils.getMsg("FILES_TXFR_DAO_ERR1", task.getTenantId(), task.getUsername(),
                  "updateTransferTaskParentSize", task.getId(), task.getUuid(), ex.getMessage()), ex);
        }
    }
public TransferTaskParent updateTransferTaskParentSize ( @ NotNull TransferTask task , Long newBytes ) throws DAOException { RowProcessor rowProcessor = new TransferTaskParentRowProcessor ( ) ; try ( Connection connection = HikariConnectionPool . getConnection ( ) ) { BeanHandler < TransferTaskParent > handler = new BeanHandler < > ( TransferTaskParent . class , rowProcessor ) ; String stmt = FileTransfersDAOStatements . UPDATE_PARENT_TASK_SIZE ; QueryRunner runner = new QueryRunner ( ) ; TransferTaskParent updatedTask = runner . query ( connection , stmt , handler , newBytes , task . getId ( ) ) ; return updatedTask ; } catch ( SQLException ex ) { throw new DAOException ( Utils . getMsg ( "FILES_TXFR_DAO_ERR1" , task . getTenantId ( ) , task . getUsername ( ) , "updateTransferTaskParentSize" , task . getId ( ) , task . getUuid ( ) , ex . getMessage ( ) ) , ex ) ; } }
This method is used to increment the total size of the transfer.
This method is used to increment the total size of the transfer .