aspose file tools*
The moose likes JDBC and the fly likes Row Lock and Prevent Read Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Row Lock and Prevent Read" Watch "Row Lock and Prevent Read" New topic
Author

Row Lock and Prevent Read

Rudolf Castelino
Greenhorn

Joined: Oct 30, 2002
Posts: 18
Hi

Is there any way to lock a row in a table in a way that prevents any other thread from reading the row from the table ?

Regards
Rudolf
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30776
    
157

Rudolf,
It depends on the database.

What are you trying to accomplish by preventing other users from accessing that row? Is it transaction support or something else?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Row Lock and Prevent Read