void TimetableRowGroupItemAddAction::run( Request& request ){ TimetableRowGroupItem item; item.set<StopArea>(*_stopArea); item.set<Rank>(_rank); item.set<TimetableRowGroup>(*_rowGroup); DBTransaction transaction; item.beforeCreate(transaction); TimetableRowGroupItemTableSync::Save(&item, transaction); transaction.run(); if(request.getActionWillCreateObject()) { request.setActionCreatedId(item.getKey()); } }
void SVNWorkingCopy::_importWC( bool save ){ DBTransaction transaction; _import( _path, transaction, true ); ////////////////////////////////////////////////////////////////////////// // Saving if(save) { transaction.run(); } }