MYBATIS Quick GuideTABLE details.student( ID int(10) NOT NULL AUTO_INCREMENT, NAME varchar(100) NOT NULL, BRANCH varchar(255) NOT NULL, PERCENTAGE int(3) NOT NULL, PHONE int(10) NOT NULL, EMAIL varchar(255) MYSQL database − +----+-------+--------+------------+-----------+---------------+ | ID | NAME | BRANCH | PERCENTAGE | PHONE | EMAIL | +----+-------+--------+------------+-----------+---------------+ shown below − public class Student { private int id; private String name; private String branch; private int percentage; private int phone; private String email; //Setters and0 码力 | 34 页 | 301.72 KB | 1 年前3
MYBATIS Dynamic SQLCREATE TABLE details.student( ID int(10) NOT NULL AUTO_INCREMENT, NAME varchar(100) NOT NULL, BRANCH varchar(255) NOT NULL, PERCENTAGE int(3) NOT NULL, PHONE int(11) NOT NULL, EMAIL varchar(255) student; +----+----------+--------+------------+-----------+----------------------+ | ID | NAME | BRANCH | PERCENTAGE | PHONE | EMAIL | +----+----------+--------+------------+------- private String name; private String branch; private int percentage; private int phone; private String email; public Student(int id, String name, String branch, int percentage, int phone, String0 码力 | 5 页 | 69.51 KB | 1 年前3
Apache ShardingSphere 5.0.0-alpha Documentthe submitter whether the transaction can be accepted. TM can collect all the prepared results of branch transactions before submitting all of them together, which has guaran‐ teed the distributed consistency participant of global transaction is RM, which is in charge of reporting the execution results of branch transaction, and com‐ mit/rollback is executed through TC coordination. A typical lifecycle of transaction as a branch of the corresponding global transaction of XID to TC. 4. TM asks TC for commit or rollback the corresponding global transaction of XID. 5. TC drives all branch transactions under0 码力 | 311 页 | 2.09 MB | 1 年前3
Apache ShardingSphere 5.1.1 Documentthe submitter whether the transaction can be accepted. TM can collect all the prepared results of branch transactions before submitting all of them together, which has guaran‐ teed the distributed consistency `undo_log` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT 'increment id', `branch_id` BIGINT(20) NOT NULL COMMENT 'branch transaction id', `xid` VARCHAR(100) NOT NULL COMMENT 'global transaction id' DATETIME NOT NULL COMMENT 'modify datetime', PRIMARY KEY (`id`), UNIQUE KEY `ux_undo_log` (`xid`, `branch_id`) ) ENGINE = InnoDB 5.1. ShardingSphere-JDBC 147 Apache ShardingSphere document, v5.1.1 AUTO_INCREMENT0 码力 | 458 页 | 3.43 MB | 1 年前3
Apache ShardingSphere 5.2.1 Documentcommitted, in addition to passively accepting commit instructions. TM can collect the results of all branch transactions and make atomic commit at the end to ensure the strong consistency of transactions in each proxied database with the xa begin direc‐ tive, integrates TM internally for coordinating branch transactions, and performs xa commit /rollback. 3.2. Distributed Transaction 29 Apache ShardingSphere `undo_log` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT 'increment id', `branch_id` BIGINT(20) NOT NULL COMMENT 'branch transaction id', `xid` VARCHAR(100) NOT NULL COMMENT 'global transaction id'0 码力 | 523 页 | 4.51 MB | 1 年前3
Apache ShardingSphere 5.1.2 Documentthe submitter whether the transaction can be accepted. TM can collect all the prepared results of branch transactions before submitting all of them together, which has guaran‐ teed the distributed consistency `undo_log` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT 'increment id', `branch_id` BIGINT(20) NOT NULL COMMENT 'branch transaction id', `xid` VARCHAR(100) NOT NULL COMMENT 'global transaction id' DATETIME NOT NULL COMMENT 'modify datetime', PRIMARY KEY (`id`), UNIQUE KEY `ux_undo_log` (`xid`, `branch_id`) ) ENGINE = InnoDB 5.1. ShardingSphere-JDBC 151 Apache ShardingSphere document, v5.1.2 AUTO_INCREMENT0 码力 | 503 页 | 3.66 MB | 1 年前3
Apache ShardingSphere 5.2.0 Documentcommitted, in addition to passively accepting commit instructions. TM can collect the results of all branch transactions and make atomic commit at the end to ensure the strong consistency of transactions in each proxied database with the xa begin direc‐ tive, integrates TM internally for coordinating branch transactions, and performs xa commit /rollback. 3.2. Distributed Transaction 30 Apache ShardingSphere `undo_log` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT 'increment id', `branch_id` BIGINT(20) NOT NULL COMMENT 'branch transaction id', `xid` VARCHAR(100) NOT NULL COMMENT 'global transaction id'0 码力 | 483 页 | 4.27 MB | 1 年前3
Apache ShardingSphere 5.4.1 Documentcommitted, in addition to passively accepting commit instructions. TM can collect the results of all branch transactions and make atomic commit at the end to ensure the strong consistency of transactions in each proxied database with the xa begin direc‐ tive, integrates TM internally for coordinating branch transactions, and performs xa commit /rollback. Distributed transactions based on XA protocol are `undo_log` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT 'increment id', `branch_id` BIGINT(20) NOT NULL COMMENT 'branch transaction id', `xid` VARCHAR(100) NOT NULL COMMENT 'global transaction id'0 码力 | 572 页 | 3.73 MB | 1 年前3
Apache ShardingSphere v5.5.0 documentcommitted, in addition to passively accepting commit instructions. TM can collect the results of all branch transactions and make atomic commit at the end to ensure the strong consistency of transactions in each proxied database with the xa begin direc‐ tive, integrates TM internally for coordinating branch transactions, and performs xa commit /rollback. Distributed transactions based on XA protocol are content takes MySQL as an example. CREATE TABLE IF NOT EXISTS `undo_log` ( `branch_id` BIGINT NOT NULL COMMENT 'branch transaction id', `xid` VARCHAR(128) NOT NULL COMMENT 'global transaction id',0 码力 | 602 页 | 3.85 MB | 1 年前3
Apache ShardingSphere 5.0.0 Documentthe submitter whether the transaction can be accepted. TM can collect all the prepared results of branch transactions before submitting all of them together, which has guaran‐ teed the distributed consistency `undo_log` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT 'increment id', `branch_id` BIGINT(20) NOT NULL COMMENT 'branch transaction id', `xid` VARCHAR(100) NOT NULL COMMENT 'global transaction id' DATETIME NOT NULL COMMENT 'modify datetime', PRIMARY KEY (`id`), UNIQUE KEY `ux_undo_log` (`xid`, `branch_id`) ) ENGINE = InnoDB AUTO_INCREMENT = 1 DEFAULT CHARSET = utf8 COMMENT ='AT transaction mode0 码力 | 403 页 | 3.15 MB | 1 年前3
共 20 条
- 1
- 2













