All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.handyplus.lib.db.param.FieldInfoParam Maven / Gradle / Ivy

The newest version!
package cn.handyplus.lib.db.param;

import cn.handyplus.lib.db.enums.IndexEnum;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * 字段信息
 *
 * @author handy
 * @since 1.4.8
 */
@Data
@Builder
public class FieldInfoParam implements Serializable {

    private static final long serialVersionUID = -674837862935503141L;
    /**
     * 数据库字段名
     */
    private String fieldName;

    /**
     * 字段真实名
     */
    private String fieldRealName;

    /**
     * 字段类型
     */
    private String fieldType;

    /**
     * 字段注释
     */
    private String fieldComment;

    /**
     * 字段是否可为null
     * sqlite NotNull 必须有默认值
     */
    private Boolean fieldNotNull;

    /**
     * 字段默认值
     *
     * @since 1.8.6
     */
    private String fieldDefault;

    /**
     * 字段坐标
     */
    private Integer fieldIndex;

    /**
     * 字段长度 大于16383会使用TEXT类型进行存储
     */
    private Integer fieldLength;

    /**
     * 字段索引
     *
     * @since 1.9.6
     */
    private IndexEnum indexEnum;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy