| 类和说明 |
|---|
| ActiveRecordPlugin
ActiveRecord plugin.
|
| Config |
| DaoTemplate
DaoTemplate
例子:
model.template("find", 123).find();
|
| DbPro
DbPro.
|
| DbTemplate
DbTemplate
例子:
Db.template("find", 123).find();
|
| IContainerFactory |
| IDataSourceProvider
IDataSourceProvider
ActiveRecordPlugin constructor accept DataSourceProvider and DataSource
|
| IDbProFactory
IDbProFactory
用于自义扩展 DbPro 实现类,实现定制化功能
1:创建 DbPro 继承类: public class MyDbPro extends DbPro
2:创建 IDbProFactory 实现类:public class MyDbProFactory implements IDbProFactory,让其 getDbPro 方法 返回 MyDbPro 对象
3:配置生效: activeRecordPlugin.setDbProFactory(new MyDbProFactory())
注意:每个 ActiveRecordPlugin 对象拥有独立的 IDbProFactory 对象,多数据源使用时注意要对每个 arp 进行配置
|
| Model
Model.
|
| ModelBuilder
ModelBuilder.
|
| RecordBuilder
RecordBuilder.
|
| ReplicaActiveRecordPlugin
ActiveRecord plugin.
|
| Row
Record
|
| Table
Table save the table meta info like column name and column type.
|
| TableBuilder
TableBuilder build the mapping of model between class and table.
|
| TableMapping
TableMapping save the mapping between model class and table.
|
| 类和说明 |
|---|
| Row
Record
|
| 类和说明 |
|---|
| Config |
| Model
Model.
|
| ModelBuilder
ModelBuilder.
|
| RecordBuilder
RecordBuilder.
|
| Row
Record
|
| 类和说明 |
|---|
| Config |
| Model
Model.
|
| ModelBuilder
ModelBuilder.
|
| RecordBuilder
RecordBuilder.
|
| Row
Record
|
| Table
Table save the table meta info like column name and column type.
|
| 类和说明 |
|---|
| Config |
| 类和说明 |
|---|
| IDataSourceProvider
IDataSourceProvider
ActiveRecordPlugin constructor accept DataSourceProvider and DataSource
|
| 类和说明 |
|---|
| IDataSourceProvider
IDataSourceProvider
ActiveRecordPlugin constructor accept DataSourceProvider and DataSource
|
| 类和说明 |
|---|
| IDataSourceProvider
IDataSourceProvider
ActiveRecordPlugin constructor accept DataSourceProvider and DataSource
|
| 类和说明 |
|---|
| Row
Record
|
| 类和说明 |
|---|
| Row
Record
|
| 类和说明 |
|---|
| Row
Record
|
Copyright © 2024. All rights reserved.