public class MapperFactory extends Object implements IMapperFactory
| 构造器和说明 |
|---|
MapperFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
MapperFactory |
dbType(cn.org.atool.fluent.mybatis.metadata.DbType dbType,
Class<? extends IEntity>... eClasses)
修改实体类对应的数据库类型
|
Set<IEntityMapper> |
getMappers()
返回Mapper实例列表
|
Set<IRelation> |
getRelations()
返回实体关系定义
|
MapperFactory |
initializer(IExecutor initializer)
增加环境设置脚本
|
MapperFactory |
register(String type,
IConvertor convertor)
注册PoJoHelper.toPoJo时特定类型的转换器
|
MapperFactory |
register(Type type,
IConvertor convertor)
注册PoJoHelper.toPoJo时特定类型的转换器
|
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
MapperFactory |
tableSupplier(TableDynamic tableSupplier,
Class<? extends IEntity>... eClasses)
更改实体对应的数据库表名称
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInitializers, getSessionFactories, init@Autowired
public void setApplicationContext(org.springframework.context.ApplicationContext context)
throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic Set<IEntityMapper> getMappers()
IMapperFactorygetMappers 在接口中 IMapperFactorypublic Set<IRelation> getRelations()
IMapperFactorygetRelations 在接口中 IMapperFactorypublic MapperFactory dbType(cn.org.atool.fluent.mybatis.metadata.DbType dbType, Class<? extends IEntity>... eClasses)
dbType - DbTypeeClasses - if empty 修改所有实体对应数据库类型public MapperFactory tableSupplier(TableDynamic tableSupplier, Class<? extends IEntity>... eClasses)
tableSupplier - 表名称更改器eClasses - if empty, 修改所有实体对应的表名称public MapperFactory register(Type type, IConvertor convertor)
type - 类型convertor - 类型转换器public MapperFactory register(String type, IConvertor convertor)
type - 类型convertor - 类型转换器public MapperFactory initializer(IExecutor initializer)
initializer - 环境设置Copyright © 2022. All rights reserved.