public final class MapperTemplate extends AbstractTemplate
| 限定符和类型 | 字段和说明 |
|---|---|
private static String |
FORMATTER_STRING |
private static org.slf4j.Logger |
logger |
DEFAULT_MAPPER_STATEMENTS| 构造器和说明 |
|---|
MapperTemplate(org.apache.velocity.app.VelocityEngine velocityEngine,
TypeMetadata typeMetadata) |
| 限定符和类型 | 方法和说明 |
|---|---|
private static String |
formatMapper(String input) |
private String |
getCustomizedSqlStatements(Path mapperFile) |
void |
render(String templatePath)
模版内容生成
|
createIfAbsent, getTypeMetadata, getVelocityEnginepublic MapperTemplate(org.apache.velocity.app.VelocityEngine velocityEngine,
TypeMetadata typeMetadata)
public void render(String templatePath)
AbstractTemplaterender 在类中 AbstractTemplatetemplatePath - 模版路径private String getCustomizedSqlStatements(Path mapperFile) throws IOException, org.jdom2.JDOMException
IOExceptionorg.jdom2.JDOMExceptionCopyright © 2022. All rights reserved.