table.java
来自「eclipse的hibernate插件,支持eclipse2.*版本」· Java 代码 · 共 69 行
JAVA
69 行
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() { if(fieldList==null){ fieldList = new ArrayList(0); } return fieldList; } /** * Sets the fieldList * @param fieldList The fieldList to set */ public void setFieldList(List fieldList) { int count = fieldList.size(); this.fieldList = new ArrayList(count); Field f = null; for (int i = 0; i < count; i ++){ f = (Field)fieldList.get(i); f.setFieldName(f.getFieldName().toLowerCase()); this.fieldList.add(i,f); } //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 + =
减小字号Ctrl + -
显示快捷键?