Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to test ACID rules in DB using JDBC

 
Amirtharaj Chinnaraj
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I heard about the ACID (Atomicity, Consistency, Isolation, Durability) rules. i want to test weather my DB is passing these test using JDBC. How can i test this requirement? I searched some sample code in the Google , but not able to find.

thanks
Amir
 
harshvardhan ojha
Ranch Hand
Posts: 157
1
Android Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amir,
i believe ACID is the property of RDBMS not JDBC. And jdbc is just a way to connect to DB, as far as i know, JDBC can give you some guarantees over connections only but not ACID properties.
 
Amirtharaj Chinnaraj
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

JDBC can give the connection, With the connection you are doing the transaction. All the transaction should Obey the ACID rule. I am having some strategy to test this ACID rule using Java threads. But i am waiting for some gurus to respond.

 
Jayesh A Lalwani
Rancher
Posts: 2762
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a specific scenario that you want to test? or yu want to prove to yourself that the database is ACID compliant? I would just test it "by hand". And by hand I mean bring up 2 instance of a SQL client that connect to the same schema, and test by scenario. Each instance of the SQL client shold have it;s own connection and transaction. I wouldn't do it in Java.
 
Amirtharaj Chinnaraj
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lalwani,


I just want to test for myself, However i would like to test using java code (JDBC). if you have any steps.can you please share it with me or else if you have any strategy please give me some more details. i will bw much thankful

thanks
Amir
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic