| Interface | Description |
|---|---|
| IContainerFactory | |
| IDataSourceProvider |
IDataSourceProvider
|
| 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 进行配置
|
| Class | Description |
|---|---|
| ActiveRecordPlugin |
ActiveRecord plugin.
|
| BatchSaveFetchGeneratedKey |
Db.batchSave 支持获取生成的主键值
配置方式:
arp.setDbProFactory(configName -> new DbProBatchSaveFetchGeneratedKey(configName));
|
| CaseInsensitiveContainerFactory |
CaseInsensitiveContainerFactory.
|
| CaseInsensitiveContainerFactory.CaseInsensitiveMap<V> | |
| CaseInsensitiveContainerFactory.CaseInsensitiveSet | |
| Config | |
| CPI |
Cross Package Invoking pattern for package activerecord.
|
| DaoContainerFactory |
DaoContainerFactory
|
| DaoContainerFactory.DaoMap<V> | |
| DaoContainerFactory.DaoSet | |
| DaoTemplate<M extends Model> |
DaoTemplate
|
| Db |
Db.
|
| DbKit |
DbKit
|
| DbKit.BatchInfo | |
| DbPro |
DbPro.
|
| DbTemplate |
DbTemplate
|
| Model<M extends Model> |
Model.
|
| ModelBuilder |
ModelBuilder.
|
| NullDataSource |
NullDataSource.
|
| OneConnectionPerThread |
One Connection Per Thread for one request.
warning: can not use this interceptor with transaction feature like Tx, Db.tx(...) |
| OrderedFieldContainerFactory |
用于支持查询出来的字段次序与 select a, b, c...
|
| PageSqlKit |
PageSqlKit
|
| RecordBuilder |
RecordBuilder.
|
| ReplicaActiveRecordPlugin |
ActiveRecord plugin.
|
| Row |
Record
|
| SqlReporter |
SqlReporter.
|
| 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.
|
| Exception | Description |
|---|---|
| ActiveRecordException |
ActiveRecordException
|
| NestedTransactionHelpException |
NestedTransactionHelpException
Notice the outer transaction that the nested transaction return false |
Copyright © 2026. All rights reserved.