<s> '''<STR_LIT>''' <EOL> from FeatureServer . WebFeatureService . Response . TransactionSummary import TransactionSummary <EOL> from FeatureServer . WebFeatureService . Response . InsertResult import InsertResult <EOL> from FeatureServer . WebFeatureService . Response . UpdateResult import UpdateResult <EOL> from FeatureServer . WebFeatureService . Response . DeleteResult import DeleteResult <EOL> from FeatureServer . WebFeatureService . Response . ReplaceResult import ReplaceResult <EOL> class TransactionResponse ( object ) : <EOL> summary = None <EOL> insertResults = [ ] <EOL> updateResults = [ ] <EOL> replaceResults = [ ] <EOL> deleteResults = [ ] <EOL> version = '<STR_LIT>' <EOL> def setSummary ( self , summary ) : <EOL> self . summary = summary <EOL> def getSummary ( self ) : <EOL> return self . summary <EOL> def addResult ( self , actionResult ) : <EOL> if type ( actionResult ) is InsertResult : <EOL> self . addInsertResult ( actionResult ) <EOL> elif type ( actionResult ) is UpdateResult : <EOL> self . addUpdateResult ( actionResult ) <EOL> elif type ( actionResult ) is DeleteResult : <EOL> self . addDeleteResult ( actionResult ) <EOL> elif type ( actionResult ) is ReplaceResult : <EOL> self . addReplaceResult ( actionResult ) <EOL> def addInsertResult ( self , insertResult ) : <EOL> self . insertResults . append ( insertResult ) <EOL> self . getSummary ( ) . increaseInserted ( ) <EOL> def getInsertResults ( self ) : <EOL> return self . insertResults <EOL> def addUpdateResult ( self , updateResult ) : <EOL> self . updateResults . append ( updateResult ) <EOL> self . getSummary ( ) . increaseUpdated ( ) <EOL> def getUpdateResults ( self ) : <EOL> return self . updateResults <EOL> def addReplaceResult ( self , replaceResult ) : <EOL> self . replaceResults . append ( replaceResult ) <EOL> self . getSummary ( ) . increaseReplaced ( ) <EOL> def getReplaceResults ( self ) : <EOL> return self . replaceResults <EOL> def addDeleteResult ( self , deleteResult ) : <EOL> self . deleteResults . append ( deleteResult ) <EOL> self . getSummary ( ) . increaseDeleted ( ) <EOL> def getDeleteResults ( self ) : <EOL> return self . deleteResults </s>
