类 MapperInterfaceTemplate
- java.lang.Object
-
- com.github.kaizen4j.mybatis.gener.template.AbstractTemplate
-
- com.github.kaizen4j.mybatis.gener.template.MapperInterfaceTemplate
-
public final class MapperInterfaceTemplate extends AbstractTemplate
Repository 模版实现- 作者:
- liuguowen
-
-
字段概要
字段 修饰符和类型 字段 说明 private static PatternLINE_PATTERNprivate static org.slf4j.Loggerlogger-
从类继承的字段 com.github.kaizen4j.mybatis.gener.template.AbstractTemplate
DEFAULT_MAPPER_STATEMENTS
-
-
构造器概要
构造器 构造器 说明 MapperInterfaceTemplate(org.apache.velocity.app.VelocityEngine velocityEngine, TypeMetadata typeMetadata)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 private StringformatLine(String sourceCode)private StringgetCustomizedMapperInterfaceMethods(Path mapperInterfaceFile)private StringgetFormatMethodSign(japa.parser.ast.body.MethodDeclaration methodDeclaration)voidrender(String templatePath)模版内容生成-
从类继承的方法 com.github.kaizen4j.mybatis.gener.template.AbstractTemplate
createIfAbsent, getTypeMetadata, getVelocityEngine
-
-
-
-
字段详细资料
-
logger
private static final org.slf4j.Logger logger
-
LINE_PATTERN
private static final Pattern LINE_PATTERN
-
-
构造器详细资料
-
MapperInterfaceTemplate
public MapperInterfaceTemplate(org.apache.velocity.app.VelocityEngine velocityEngine, TypeMetadata typeMetadata)
-
-
方法详细资料
-
render
public void render(String templatePath)
从类复制的说明:AbstractTemplate模版内容生成- 指定者:
render在类中AbstractTemplate- 参数:
templatePath- 模版路径
-
getCustomizedMapperInterfaceMethods
private String getCustomizedMapperInterfaceMethods(Path mapperInterfaceFile)
-
getFormatMethodSign
private String getFormatMethodSign(japa.parser.ast.body.MethodDeclaration methodDeclaration)
-
-