help me ... Database problem


2003-11-14 03:48:38 AM
jbuilder6
Hello,
I'm a beginer in java et Jbuilder.
Scuse me for the english I d'ont write very correctly.
I have a problem whith my program.
I read 5 files and I insert the data in the postgres Bdd
but I must commit a the end .
it's a sample methode because I have some tables to update and the files are
not the same and they are not exported table
So I write a method like this :
while DataToRead
execute queryDataSet to select my record
EditRows to modify it
set the colums for new values
post
end do
if error return by exception
rollback
else
commit
but only the last record is updated by the methode validate, and I don't
know why
I can't do a lot of update or insert and validate it a the end
if someone can help me
thanks
Titine