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

gu.sql2java.generator.ColumnVisibility Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
package gu.sql2java.generator;

/**
 * 字段可见度定义
 * @author guyadong
 * @since 3.32.0
 */
public enum ColumnVisibility {
	/** 默认:全可见 */DEFAULT(true,true),
	/** 只本地可见 */LOCAL(false,false),
	/** THRIFT RPC 传输时可见 */THRIFT(false,true),
	/** JSON序列化时可见 */JSON(true,false);
	/**
	 * 是否JSON序列化时可见
	 */
	public final boolean jsonVisiable;
	/**
	 * 是否THRIFT RPC 传输时可见
	 */
	public final boolean thriftVisiable;
	private ColumnVisibility(boolean jsonVisiable, boolean thriftVisiable) {
		this.jsonVisiable = jsonVisiable;
		this.thriftVisiable = thriftVisiable;
	}
	public boolean isJsonVisiable() {
		return jsonVisiable;
	}
	public boolean isThriftVisiable() {
		return thriftVisiable;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy