Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the return values for the mybatis update functions?

We're using MyBatis 3.0.6 to work with our database.

The MyBatis generator will automatically generate 4 updateByXYZ() methods. Each of these methods returns an int.

I've been digging all over but can't find any documentation telling me what possible values are returned from these methods. Anybody know?

like image 294
Kricket Avatar asked Jan 07 '16 10:01

Kricket


1 Answers

It's the number of records affected(updated or deleted)

like image 67
xfx Avatar answered Oct 07 '22 00:10

xfx