What are the return values for the mybatis update functions?

Kricket picture Kricket · Jan 7, 2016 · Viewed 12.7k times · Source

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?

Answer

xfx picture xfx · Jan 7, 2016

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