类 TableFieldInfo

  • 所有已实现的接口:
    Constants, StringPool, java.io.Serializable

    public class TableFieldInfo
    extends java.lang.Object
    implements Constants
    数据库表字段反射信息
    从以下版本开始:
    2016-09-09
    作者:
    hubin sjy willenfoo tantan
    另请参阅:
    序列化表格
    • 构造器详细资料

      • TableFieldInfo

        public TableFieldInfo​(GlobalConfig.DbConfig dbConfig,
                              TableInfo tableInfo,
                              java.lang.reflect.Field field,
                              com.baomidou.mybatisplus.annotation.TableField tableField,
                              org.apache.ibatis.reflection.Reflector reflector,
                              boolean existTableLogic,
                              boolean isOrderBy)
        全新的 存在 TableField 注解时使用的构造函数
      • TableFieldInfo

        public TableFieldInfo​(GlobalConfig.DbConfig dbConfig,
                              TableInfo tableInfo,
                              java.lang.reflect.Field field,
                              com.baomidou.mybatisplus.annotation.TableField tableField,
                              org.apache.ibatis.reflection.Reflector reflector,
                              boolean existTableLogic)
        全新的 存在 TableField 注解时使用的构造函数
      • TableFieldInfo

        public TableFieldInfo​(GlobalConfig.DbConfig dbConfig,
                              TableInfo tableInfo,
                              java.lang.reflect.Field field,
                              org.apache.ibatis.reflection.Reflector reflector,
                              boolean existTableLogic,
                              boolean isOrderBy)
        不存在 TableField 注解时, 使用的构造函数
      • TableFieldInfo

        public TableFieldInfo​(GlobalConfig.DbConfig dbConfig,
                              TableInfo tableInfo,
                              java.lang.reflect.Field field,
                              org.apache.ibatis.reflection.Reflector reflector,
                              boolean existTableLogic)
        不存在 TableField 注解时, 使用的构造函数
    • 方法详细资料

      • getInsertSqlProperty

        public java.lang.String getInsertSqlProperty​(java.lang.String prefix)
        获取 insert 时候插入值 sql 脚本片段

        insert into table (字段) values (值)

        位于 "值" 部位

      • 不生成 if 标签
返回:
sql 脚本片段
返回:
sql 脚本片段