commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Zoetebier <john.zoeteb...@transparent.co.nz>
Subject Re: {DbUtils] Howto delete a record ?
Date Sat, 13 Dec 2003 10:10:20 GMT
On Fri, 12 Dec 2003 21:57:09 -0800 (PST), David Graham 
<grahamdavid1980@yahoo.com> wrote:

> http://jakarta.apache.org/commons/dbutils/apidocs/org/apache/commons/dbutils/QueryRunner.html#update(java.lang.String)

Thanks,
I overlooked the update methods.

-- 
John Zoetebier
Web site: http://www.transparent.co.nz

>
> David
>
> --- John Zoetebier <john.zoetebier@transparent.co.nz> wrote:
>> It seems I always have to pass a resulthandler even if I delete a
>> record.
>> For example this code:
>> ==>
>> 		try {
>> 			sql = "delete from Client where (ClientID=40)";
>> 			runner.query(conn, sql, null, rsh);
>> 		} catch (SQLException se) {
>> 			System.out.println(se.getMessage());
>> 			return;
>> 		}
>> ==>
>>
>> I have to pass ResultHandler rsh which must be non-null.
>> Why is this ?
>>
>> --
>> John Zoetebier
>> Web site: http://www.transparent.co.nz
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>
>
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message