Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 6th, 2003, 12:52 AM
Digi Digi is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 2 Digi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Select For update with Lock

How can I check the row that has been seleted with lock options before?

Reply With Quote
  #2  
Old September 6th, 2003, 10:08 AM
CsoTor CsoTor is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 3 CsoTor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Set Firebird transaction params
isc_tpb_nowait

and wach exception isc_lock_conflict (SQLCODE -901 )

Reply With Quote
  #3  
Old December 4th, 2004, 11:34 AM
ynoc ynoc is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 2 ynoc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by CsoTor
Set Firebird transaction params
isc_tpb_nowait

and wach exception isc_lock_conflict (SQLCODE -901 )


how is this done in java?

I user the following code to connect to my DB
Code:
private java.sql.Connection          firebird_connection = null;

        try
        {
            firebird_connection = DriverManager.getConnection(databaseURL, username,userpass);
            firebird_connection.setAutoCommit(false);
            firebird_connection.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);
        }
        catch (java.sql.SQLException e) 
        {
            System.out.println(e.getMessage());
            return false;
        }        

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Select For update with Lock


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT