Results 1 to 5 of 5
- 05-02-2012, 12:42 PM #1
Member
- Join Date
- May 2012
- Posts
- 2
- Rep Power
- 0
- 05-02-2012, 03:38 PM #2
Re: Will setkeycolumns of cachedrowset validates duplicate entery?
Moved from New to Java
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 05-02-2012, 05:07 PM #3
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Re: Will setkeycolumns of cachedrowset validates duplicate entery?
Looking at the API there is nothing in the contract that says that the primary key must be checked before the acceptChanges is called.
I suspect this is because it is unlikely that a CachedRowSet will represent the whole contents of a table, so any check will be incomplete anyway.
So, it's implementation dependent.
Run it with whatever JDBC implementation you're using and see.
If it doesn't validate then you'll simply have to work something out around when the update/insert is done on the database.Please do not ask for code as refusal often offends.
- 05-04-2012, 12:23 PM #4
Member
- Join Date
- May 2012
- Posts
- 2
- Rep Power
- 0
Re: Will setkeycolumns of cachedrowset validates duplicate entery?
ok thanks for the reply.
Can i able to upate more than one table (multi table update) in cached row set
- 05-04-2012, 12:37 PM #5
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Re: Will setkeycolumns of cachedrowset validates duplicate entery?
I have no idea.
I suspect it first off depends on whether the database supports it (some may not), and the second whether the JDBC driver does.
Should be easy to set up a basic test of the concept.Please do not ask for code as refusal often offends.
Similar Threads
-
Compile Error: Duplicate Class.. (after package) but I don't have a duplicate class..
By JimmyD in forum Advanced JavaReplies: 5Last Post: 06-03-2012, 07:20 PM -
CachedRowSet wont update data source
By diamonddragon in forum JDBCReplies: 5Last Post: 02-10-2012, 12:00 PM -
SQL commands on a CachedRowSet completely offline?
By spikenigma in forum JDBCReplies: 3Last Post: 01-16-2012, 11:12 AM -
Duplicate table
By anilkumar_vist in forum New To JavaReplies: 3Last Post: 01-09-2010, 11:17 AM -
Sorting CachedRowset
By Sayed in forum Advanced JavaReplies: 0Last Post: 07-18-2008, 12:14 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks