This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

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
 
Similar Threads
Row level lock in Hibernate
setting values from action class into table UI...
Row locking using oracle database
Please help with the 3 Hardest Javascript problems in the world
How to select HTML Table elements