-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
chenlei2
committed
Apr 28, 2018
1 parent
e9d0467
commit a0efc42
Showing
1 changed file
with
93 additions
and
0 deletions.
There are no files selected for viewing
93 changes: 93 additions & 0 deletions
93
spring-boot-mybatis-rw/spring-boot-mybatis-rw-sample/sql/sql事务执行过程.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
// @Transactional() | ||
|
||
getAutoCommit^^^^^^^^^^^^^^^^^^^^^^^ | ||
getTargetConnection^^^^^^^^^^^^^^^^^^^^^^^ | ||
prepareStatement^^^^^^^^^^^^^^^^^^^^^^^ | ||
select | ||
|
||
id, name | ||
|
||
from students | ||
where id = ?************************ | ||
close^^^^^^^^^^^^^^^^^^^^^^^ | ||
�� | ||
getAutoCommit^^^^^^^^^^^^^^^^^^^^^^^ | ||
getTargetConnection^^^^^^^^^^^^^^^^^^^^^^^ | ||
prepareStatement^^^^^^^^^^^^^^^^^^^^^^^ | ||
update students | ||
SET name = ? | ||
where id = ?************************ | ||
close^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
|
||
|
||
@Transactional() | ||
|
||
|
||
getAutoCommit^^^^^^^^^^^^^^^^^^^^^^^ | ||
setAutoCommit^^^^^^^^^^^^^^^^^^^^^^^ | ||
false************************ | ||
getAutoCommit^^^^^^^^^^^^^^^^^^^^^^^ | ||
getTargetConnection^^^^^^^^^^^^^^^^^^^^^^^ | ||
prepareStatement^^^^^^^^^^^^^^^^^^^^^^^ | ||
select | ||
|
||
id, name | ||
|
||
from students | ||
where id = ?************************ | ||
�� | ||
getTargetConnection^^^^^^^^^^^^^^^^^^^^^^^ | ||
prepareStatement^^^^^^^^^^^^^^^^^^^^^^^ | ||
update students | ||
SET name = ? | ||
where id = ?************************ | ||
commit^^^^^^^^^^^^^^^^^^^^^^^ | ||
setAutoCommit^^^^^^^^^^^^^^^^^^^^^^^ | ||
true************************ | ||
isReadOnly^^^^^^^^^^^^^^^^^^^^^^^ | ||
close^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
|
||
|
||
@Transactional(isolation = Isolation.SERIALIZABLE, readOnly = true) | ||
|
||
|
||
setReadOnly^^^^^^^^^^^^^^^^^^^^^^^ | ||
true************************ | ||
getTransactionIsolation^^^^^^^^^^^^^^^^^^^^^^^ | ||
setTransactionIsolation^^^^^^^^^^^^^^^^^^^^^^^ | ||
8************************ | ||
getAutoCommit^^^^^^^^^^^^^^^^^^^^^^^ | ||
setAutoCommit^^^^^^^^^^^^^^^^^^^^^^^ | ||
false************************ | ||
getAutoCommit^^^^^^^^^^^^^^^^^^^^^^^ | ||
getTargetConnection^^^^^^^^^^^^^^^^^^^^^^^ | ||
prepareStatement^^^^^^^^^^^^^^^^^^^^^^^ | ||
select | ||
|
||
id, name | ||
|
||
from students | ||
where id = ?************************ | ||
�� | ||
getTargetConnection^^^^^^^^^^^^^^^^^^^^^^^ | ||
prepareStatement^^^^^^^^^^^^^^^^^^^^^^^ | ||
update students | ||
SET name = ? | ||
where id = ?************************ | ||
2018-04-27 22:13:52.312 INFO 8904 --- [nio-8080-exec-1] o.s.b.f.xml.XmlBeanDefinitionReader : Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml] | ||
2018-04-27 22:13:52.337 INFO 8904 --- [nio-8080-exec-1] o.s.jdbc.support.SQLErrorCodesFactory : SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase, Hana] | ||
getMetaData^^^^^^^^^^^^^^^^^^^^^^^ | ||
rollback^^^^^^^^^^^^^^^^^^^^^^^ | ||
setAutoCommit^^^^^^^^^^^^^^^^^^^^^^^ | ||
true************************ | ||
setTransactionIsolation^^^^^^^^^^^^^^^^^^^^^^^ | ||
2************************ | ||
isReadOnly^^^^^^^^^^^^^^^^^^^^^^^ | ||
setReadOnly^^^^^^^^^^^^^^^^^^^^^^^ | ||
false************************ | ||
close^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
|
||
|