Apache ShardingSphere 5.0.0 Documentmainstream database connection pools according to business scenarios. // Configure actual data sources MapdataSourceMap = new HashMap<>(); // Configure the first data source HikariDataSource ShardingSphereDataSourceFactory implements the stan‐ dard JDBC DataSource interface. // Build data source map Map dataSourceMap = // ... // Build rule configurations Collection hereDataSourceFactory implements the standard JDBC DataSource interface. // Build data source map Map dataSourceMap = // ... // Build rule configurations Collection 0 码力 | 403 页 | 3.15 MB | 1 年前3
Apache ShardingSphere 5.1.1 DocumentData Source ShardingSphere‐JDBC Java API consists of schema name, mode configuration, data source map, rule configurations and properties. The ShardingSphereDataSource created by ShardingSphereDataSourceFactory "foo_schema"; // Indicate logic schema name ModeConfiguration modeConfig = ... // Build mode configuration MapdataSourceMap = ... // Build actual data sources Collection connection pool is HikariCP, which can be replaced with other database drivers and connection pools. Map dataSourceMap = new HashMap<>(); // Configure the 1st data source HikariDataSource 0 码力 | 458 页 | 3.43 MB | 1 年前3
Apache ShardingSphere 5.1.2 DocumentData Source ShardingSphere‐JDBC Java API consists of schema name, mode configuration, data source map, rule configurations and properties. The ShardingSphereDataSource created by ShardingSphereDataSourceFactory "foo_schema"; // Indicate logic schema name ModeConfiguration modeConfig = ... // Build mode configuration MapdataSourceMap = ... // Build actual data sources Collection refer to the class org.apache.shardingsphere. infra.datasource.pool.creator.DataSourcePoolCreator. Map dataSourceMap = new HashMap<>(); // Configure the 1st data source HikariDataSource 0 码力 | 503 页 | 3.66 MB | 1 年前3
Mybatis 3.3.0 中文用户指南? MyBatis 是支持定制化 SQL、存储过程以及高级映射的优秀的持久层框架。MyBatis 避免了几乎所有的 JDBC 代码和手动设置参数以 及获取结果集。MyBatis 可以对配置和原生Map使用简单的 XML 或注解,将接口和 Java 的 POJOs(Plain Old Java Objects,普通的 Java对象)映射成数据库中的记录。 帮助改进文档 帮助改进文档... 不管 xmltags.XMLDynamicLanguageDriver callSettersOnNulls 指定当结果集中值 为 null 的时候是否 调用映射对象的 setter(map 对象 时为 put)方法,这 对于有 Map.keySet() 依赖 或 null 值初始化的 时候是有用的。注 意基本类型(int、 boolean等)是不 能设置成 null 的。 true | false false float Float boolean Boolean date Date decimal BigDecimal bigdecimal BigDecimal object Object map Map hashmap HashMap list List arraylist ArrayList collection Collection iterator Iterator typeHandlers0 码力 | 98 页 | 2.03 MB | 1 年前3
MyBatis 框架尚硅谷 java 研究院版本:V 1.0重新包装成一个 Map 传入。Map 的 key 是 param1, param2,或者 0,1…,值就是参数的值 3) 命名参数 为参数使用@Param 起一个名字,MyBatis 就会将这些参数封装进 map 中,key 就是我 们自己指定的名字 4) POJO 当这些参数属于我们业务 POJO 时,我们直接传递 POJO 5) Map 我们也可以封装多个参数为 map,直接传递 6) 6) Collection/Array 会被 MyBatis 封装成一个 map 传入, Collection 对应的 key 是 collection,Array 对应的 key 是 array. 如果确定是 List 集合,key 还可以是 list.select paramCount == 1) { return args[names.firstKey()]; } else { final Map param = new ParamMap 0 码力 | 44 页 | 926.54 KB | 1 年前3
Apache ShardingSphere 5.2.0 DocumentYAML Format ShardingSphere‐JDBC YAML file consists of database name, mode configuration, data source map, rule configurations and properties. Note: The example connection pool is HikariCP, which can be Data Source ShardingSphere‐JDBC Java API consists of database name, mode configuration, data source map, rule configurations and properties. The ShardingSphereDataSource created by ShardingSphereDataSourceFactory "foo_schema"; // Indicate logic database name ModeConfiguration modeConfig = ... // Build mode configuration MapdataSourceMap = ... // Build actual data sources Collection 0 码力 | 483 页 | 4.27 MB | 1 年前3
Apache ShardingSphere 5.2.1 DocumentYAML Format ShardingSphere‐JDBC YAML file consists of database name, mode configuration, data source map, rule configurations and properties. Note: The example connection pool is HikariCP, which can be Data Source ShardingSphere‐JDBC Java API consists of database name, mode configuration, data source map, rule configurations and properties. The ShardingSphereDataSource created by ShardingSphereDataSourceFactory "foo_schema"; // Indicate logic database name ModeConfiguration modeConfig = ... // Build mode configuration MapdataSourceMap = ... // Build actual data sources Collection 0 码力 | 523 页 | 4.51 MB | 1 年前3
Apache ShardingSphere 中文文档 5.0.0user_id 取模分库, 且根据 order_id 取模分表的 2 库 2 表的配置。 注:示例的数据库连接池为 HikariCP,可根据业务场景更换为其他主流数据库连接池。 // 配置真实数据源 MapdataSourceMap = new HashMap<>(); // 配置第 1 个数据源 HikariDataSource dataSource1 = ShardingSphereDataSourceFactory 工厂创建的 ShardingSphereDataSource 实现自 JDBC 的标准接 口 DataSource。 // 构建数据源 Map dataSourceMap = // ... // 构建配置规则 Collection configurations taSourceFactory 工厂创建的 GovernanceShardingSphereData‐ Source 实现自 JDBC 的标准接口 DataSource。 // 构建数据源 Map dataSourceMap = // ... // 构建配置规则 Collection configurations 0 码力 | 385 页 | 4.26 MB | 1 年前3
Apache ShardingSphere 5.0.0-alpha Documentcolumn. Apache Shard‐ 3.6. Encryption 91 Apache ShardingSphere document, v5.0.0-beta ingSphere can map this logical column and the ciphertext column in the underlying data table. So the encryption configuration mainstream database connection pools according to business scenarios. // Configure actual data sources MapdataSourceMap = new HashMap<>(); // Configure the first data source HikariDataSource ShardingSphereDataSourceFactory implements the stan‐ dard JDBC DataSource interface. // Build data source map Map dataSourceMap = // ... // Build rule configurations Collection 0 码力 | 311 页 | 2.09 MB | 1 年前3
Apache ShardingSphere v5.5.0 documentYAML Format ShardingSphere‐JDBC YAML file consists of database name, mode configuration, data source map, rule configurations and properties. Note: The example connection pool is HikariCP, which can be Data Source ShardingSphere‐JDBC Java API consists of database name, mode configuration, data source map, rule configurations and properties. The ShardingSphereDataSource created by ShardingSphereDataSourceFactory "foo_schema"; // Indicate logic database name ModeConfiguration modeConfig = ... // Build mode configuration MapdataSourceMap = ... // Build actual data sources Collection 0 码力 | 602 页 | 3.85 MB | 1 年前3
共 26 条
- 1
- 2
- 3













