📄 table.java
字号:
package com.tanghan.db;
import java.util.*;
import java.io.Serializable;
public class Table implements Serializable{
private String tableName = "";
private List fieldList = null;
public Table(String tableName){
this.tableName = tableName;
}
/**
* Gets the tableName
* @return Returns a String
*/
public String getTableName() {
return tableName;
}
/**
* Sets the tableName
* @param tableName The tableName to set
*/
public void setTableName(String tableName) {
this.tableName = tableName;
}
/**
* Gets the fieldList
* @return Returns a List
*/
public List getFieldList() {
return fieldList;
}
/**
* Sets the fieldList
* @param fieldList The fieldList to set
*/
public void setFieldList(List fieldList) {
this.fieldList = fieldList;
}
public void addField(Field field){
fieldList.add(field);
}
public void remove(Field field){
fieldList.remove(field);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -