public class MybatisPluginUtil extends Object
| Constructor and Description |
|---|
MybatisPluginUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addField(org.mybatis.generator.config.Context context,
org.mybatis.generator.api.dom.java.InnerClass innerClass,
org.mybatis.generator.api.IntrospectedTable introspectedTable,
String name,
org.mybatis.generator.api.dom.java.FullyQualifiedJavaType javaType,
boolean packing)
为Example添加属性和封装
|
static void |
addField(org.mybatis.generator.config.Context context,
org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass,
org.mybatis.generator.api.IntrospectedTable introspectedTable,
String name,
org.mybatis.generator.api.dom.java.FullyQualifiedJavaType javaType,
boolean packing)
为Example添加属性和封装
|
static org.mybatis.generator.api.dom.xml.Attribute |
getAttribute(org.mybatis.generator.api.dom.xml.XmlElement xmlElement,
String name)
查询attribute
|
static List<org.mybatis.generator.api.dom.xml.XmlElement> |
getElement(org.mybatis.generator.api.dom.xml.XmlElement element,
String name)
查询element
|
public static void addField(org.mybatis.generator.config.Context context,
org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass,
org.mybatis.generator.api.IntrospectedTable introspectedTable,
String name,
org.mybatis.generator.api.dom.java.FullyQualifiedJavaType javaType,
boolean packing)
context - 上下文topLevelClass - topLevelClassintrospectedTable - introspectedTablename - 属性名javaType - 属性类packing - 是否封装get setpublic static void addField(org.mybatis.generator.config.Context context,
org.mybatis.generator.api.dom.java.InnerClass innerClass,
org.mybatis.generator.api.IntrospectedTable introspectedTable,
String name,
org.mybatis.generator.api.dom.java.FullyQualifiedJavaType javaType,
boolean packing)
context - 上下文innerClass - 类introspectedTable - introspectedTablename - 属性名javaType - java类型packing - 是否生成getsetpublic static List<org.mybatis.generator.api.dom.xml.XmlElement> getElement(org.mybatis.generator.api.dom.xml.XmlElement element, String name)
element - xml元素name - 名称public static org.mybatis.generator.api.dom.xml.Attribute getAttribute(org.mybatis.generator.api.dom.xml.XmlElement xmlElement,
String name)
xmlElement - xml元素name - 属性名Copyright © 2018. All rights reserved.