39 if ( !createTransaction )
53 if ( layerIds.isEmpty() )
72 foreach (
const QString& layerId, layerIds )
85 : mConnString( connString ), mTransactionActive( false )
91 setLayerTransactionIds( 0 );
96 if ( mTransactionActive )
129 mLayers.insert( layerId );
135 if ( mTransactionActive )
141 if ( !beginTransaction( errorMsg, statementTimeout ) )
146 setLayerTransactionIds(
this );
147 mTransactionActive =
true;
153 if ( !mTransactionActive )
158 foreach (
const QString& layerid, mLayers )
167 if ( !commitTransaction( errorMsg ) )
172 setLayerTransactionIds( 0 );
173 mTransactionActive =
false;
179 if ( !mTransactionActive )
184 foreach (
const QString& layerid, mLayers )
193 if ( !rollbackTransaction( errorMsg ) )
198 setLayerTransactionIds( 0 );
199 mTransactionActive =
false;
203 void QgsTransaction::setLayerTransactionIds(
QgsTransaction* transaction )
205 foreach (
const QString& layerid, mLayers )