attribute.java
来自「一个简单的数据库」· Java 代码 · 共 55 行
JAVA
55 行
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package database;import java.io.*;/** * * @author outlaw */public class Attribute implements Serializable{ String name; String type; String tbName; boolean isKey; boolean isUnique; public Attribute(String name,String type,String tbName){ this.name=name; this.type=type; this.tbName=tbName; isKey=false; isUnique=false; } public Attribute(String name,String type,boolean isKey,boolean isUnique){ this.name=name; this.type=type; this.isKey=isKey; this.isUnique=isUnique; } public void setIsKey(boolean isKey){ this.isKey=isKey; } public void setIsUnique(boolean isUnique){ this.isUnique=isUnique; } public boolean isKey() { return isKey; } public boolean isUnique() { return isUnique; } public String getName() { return name; } public String getType() { return type; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?