synchronizing DB updating in servlet

hi,

i'd like to the know what code I should synchronize when updating my database. I currently just have the lock as follows in a servlet:

synchronized(this){

statement.executeUpdate();

}

but i'm wondering if this is enough and if i should synchronize my

statement.setString(x, x)

calls?

thanks

[488 byte] By [mvance213] at [2007-9-19]
# 1
Only one object at a time may access the synchronized block, so that will work fine.
wbracken at 2007-7-4 > top of java,Enterprise & Remote Computing,Web Tier APIs...