com.smallaswater.easysql.orm.utils.Option Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of EasyMySQL Show documentation
Show all versions of EasyMySQL Show documentation
EasyMySQL -- MySQL tool for Nukkit
package com.smallaswater.easysql.orm.utils;
public enum Option {
PRIMARY_KEY("primary key"), // 主键 (当Entity里有 Types.ID 的字段时不能添加)
UNIQUE("unique"), // 列级定义唯一
NOT_NULL("not null"),
NULL("null"); // 可以是 null(可以覆盖掉 Types 内的 not null)
private final String sql;
Option(String sql) {
this.sql = sql;
}
@Override
public String toString() {
return sql;
}
}