Interface | Description |
---|---|
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
|
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.
|
CaseInsensitiveContainerFactory |
CaseInsensitiveContainerFactory.
|
CaseInsensitiveContainerFactory.CaseInsensitiveMap<V> | |
CaseInsensitiveContainerFactory.CaseInsensitiveSet | |
Config | |
CPI |
Cross Package Invoking pattern for package activerecord.
|
DaoContainerFactory |
DaoContainerFactory
|
DaoContainerFactory.DaoMap<V> | |
DaoContainerFactory.DaoSet | |
Db |
Db.
|
DbKit |
DbKit
|
DbPro |
DbPro.
|
JavaType |
JavaType.
|
Model<M extends Model> |
Model.
|
ModelBuilder |
ModelBuilder.
|
ModelRecordElResolver |
ModelRecordElResolver
|
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...
|
Page<T> |
Page is the result of Model.paginate(......) or Db.paginate(......)
|
PageSqlKit |
PageSqlKit
|
Record |
Record
|
RecordBuilder |
RecordBuilder.
|
SqlPara |
SqlPara
封装查询使用的 sql 与参数,主要用于 getSqlPara(...) 返回值
|
SqlReporter |
SqlReporter.
|
Sqls | Deprecated |
Table |
Table save the table meta info like column name and column type.
|
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 © 2018. All rights reserved.