ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Chien <john.ch...@ncmail.net>
Subject the return result of insert, update, and delete in SqlMapClient API
Date Tue, 13 Dec 2005 13:56:09 GMT
The SqlMapClient API indicates:

public int insert(String statementName, Object parameterObject) throws 
SQLException.
public int update(String statementName, Object parameterObject) throws 
SQLException
public int delete(String statementName, Object parameterObject) throws 
SQLException

what does the return int repesent ?

the example shows

int rows = sqlMap.insert("insertProduct", product);

Does the return int represent the number of rows being inserted, updated 
or deleted ?

Is there anyway of returning the Object or the List of the rows being 
inserted, updated or deleted ?


Thanks,

John Chien

Mime
View raw message