moaxcp / download-magic

Automatically exported from code.google.com/p/project-penny
0 stars 0 forks source link

Make sure executeUpdates only return 1 #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the DB when executing an update insert or delete the DAO needs to make sure 
only one row is affected. If and update takes place and more than one row is 
updated a runtime exception should be thrown. This should never happen and will 
cause database integrity issues with the front end.

Original issue reported on code.google.com by moa...@gmail.com on 8 May 2012 at 7:27

GoogleCodeExporter commented 9 years ago
Also change all methods in JavaDBDownloadDAO to throw IllegalStateExceptions if 
returning false. This will make sure that the front end matches the backend at 
all times.

Original comment by moa...@gmail.com on 8 May 2012 at 10:30

GoogleCodeExporter commented 9 years ago

Original comment by moa...@gmail.com on 9 May 2012 at 12:43