public class MapperFiler extends AbstractFiler
comment, fluent, klassName, packageName| 构造器和说明 |
|---|
MapperFiler(FluentEntity fluentEntity) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
build(com.squareup.javapoet.TypeSpec.Builder spec) |
static String |
getClassName(FluentClassName fluentEntity) |
static String |
getMapperName(FluentEntity fluentEntity)
返回对应的Mapper Bean名称
|
static String |
getPackageName(FluentClassName fluentEntity) |
protected boolean |
isInterface()
是否接口类
|
protected com.squareup.javapoet.MethodSpec |
m_mapping()
protected boolean hasPrimary()
|
protected void |
staticImport(com.squareup.javapoet.JavaFile.Builder spec) |
public MapperFiler(FluentEntity fluentEntity)
public static String getClassName(FluentClassName fluentEntity)
public static String getPackageName(FluentClassName fluentEntity)
protected void staticImport(com.squareup.javapoet.JavaFile.Builder spec)
staticImport 在类中 AbstractFilerprotected void build(com.squareup.javapoet.TypeSpec.Builder spec)
build 在类中 AbstractFilerprotected com.squareup.javapoet.MethodSpec m_mapping()
AbstractFilerm_mapping 在类中 AbstractFilerpublic static String getMapperName(FluentEntity fluentEntity)
fluentEntity - 实体原数据protected boolean isInterface()
AbstractFilerisInterface 在类中 AbstractFilerCopyright © 2021. All rights reserved.