| 接口 | 说明 |
|---|---|
| IAtom |
IAtom support transaction of database.
|
| IBean |
IBean 标记型接口.
|
| ICallback |
ICallback provide a JDBC Connection if you need it or the active record plugin can not satisfy you requirement.
|
| 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 进行配置
|
| 类 | 说明 |
|---|---|
| ActiveRecordPlugin |
ActiveRecord plugin.
|
| 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
例子:
model.template("find", 123).find();
|
| Db |
Db.
|
| DbKit |
DbKit
|
| DbPro |
DbPro.
|
| DbTemplate |
DbTemplate
例子:
Db.template("find", 123).find();
|
| JavaType |
JavaType.
|
| Model<M extends Model> |
Model.
|
| ModelBuilder |
ModelBuilder.
|
| OrderedFieldContainerFactory |
用于支持查询出来的字段次序与 select a, b, c...
|
| Page<T> |
Page is the result of Model.paginate(......) or Db.paginate(......)
|
| PageSqlKit |
PageSqlKit
|
| Record |
Record
|
| RecordBuilder |
RecordBuilder.
|
| SqlPara |
SqlPara
封装查询使用的 sql 与参数,主要用于 getSqlPara(...)
|
| 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.
|
| 异常错误 | 说明 |
|---|---|
| ActiveRecordException |
ActiveRecordException
|
| NestedTransactionHelpException |
NestedTransactionHelpException
Notice the outer transaction that the nested transaction return false |
Copyright © 2022. All rights reserved.