• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to test ACID rules in DB using JDBC

 
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 157
1
Android MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ice is for people that are not already cool. Chill with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic