コード例 #1
0
		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());
			}
		}
コード例 #2
0
			void SVNWorkingCopy::_importWC(
				bool save
			){

				DBTransaction transaction;

				_import(
					_path,
					transaction,
					true
				);

				//////////////////////////////////////////////////////////////////////////
				// Saving
				if(save)
				{
					transaction.run();
				}
			}