ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dionisio@tinieblas.com" <dioni...@tinieblas.com>
Subject rollback
Date Fri, 16 Sep 2005 11:53:55 GMT
I needd one aclaration, i am confused.

i have this.
public void insertar(String statementName, Object parameterObject){
try{
    daoManager.startTransaction();
    insert(statementName, parameterObject);
    insert(statementName, parameterObject);
    insert(statementName, parameterObject);
    insert(statementName, parameterObject);
    daoManager.commitTransaction();
}catch(Exception e){

}finally{
	daoManager.endTransaction();
}
}
i start transaction and commit it if there is not exception
but if there is one exception into one insert the systems makes one roolback?
example if into the 3. insert there is one exception the 2 and 1 insert
rolls back?
or how can i say to rollback?

thanks



Mime
View raw message