MyBatis framework for the implementation process

1. The sql statement and database configuration information stored in the profile
2. MyBatis runtime configuration information stored in the Configuration object
3. Create a SqlSession object provides properties
Configuration object 1)
2) Dirty: the true sql statement is finished transaction can submitting
false sql statement is executed to send an error transaction rollback
3) executor implementation of object:
create a statement object in the creation process
relies MapperStatement object will assign the contents of the sql placeholder
bind

4.SqlSession.commit (): At this dirty properties determine the commit and rollback according
5.SqlSession.close ();

Guess you like

Origin www.cnblogs.com/kiwi-deng/p/10954265.html