📄 tableinfo.java
字号:
/*
* TableInfo.java
*
* Created on 2007年6月17日, 下午11:37
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package dennis;
import java.io.Serializable;
import java.util.Collection;
/**
* 实体类 TableInfo
*
* @author Administrator
*/
public class TableInfo implements Serializable {
private String tableId;
private String tableName;
private String tableType;
private String useInfo;
private Collection<MenuInfo> menuInfoCollection;
private Collection<BookInfo> bookInfoCollection;
/** Creates a new instance of TableInfo */
public TableInfo() {
}
/**
* 使用指定的值创建 TableInfo 的新实例。
* @param tableId,TableInfo 的 tableId
*/
public TableInfo(String tableId) {
this.tableId = tableId;
}
/**
* 使用指定的值创建 TableInfo 的新实例。
* @param tableId,TableInfo 的 tableId
* @param tableName,TableInfo 的 tableName
* @param useInfo,TableInfo 的 useInfo
*/
public TableInfo(String tableId, String tableName, String useInfo) {
this.tableId = tableId;
this.tableName = tableName;
this.useInfo = useInfo;
}
/**
* 获取此 TableInfo 的 tableId。
* @return tableId
*/
public String getTableId() {
return this.tableId;
}
/**
* 将此 TableInfo 的 tableId 设置为指定的值。
* @param tableId,新建 tableId
*/
public void setTableId(String tableId) {
this.tableId = tableId;
}
/**
* 获取此 TableInfo 的 tableName。
* @return tableName
*/
public String getTableName() {
return this.tableName;
}
/**
* 将此 TableInfo 的 tableName 设置为指定的值。
* @param tableName,新建 tableName
*/
public void setTableName(String tableName) {
this.tableName = tableName;
}
/**
* 获取此 TableInfo 的 tableType。
* @return tableType
*/
public String getTableType() {
return this.tableType;
}
/**
* 将此 TableInfo 的 tableType 设置为指定的值。
* @param tableType,新建 tableType
*/
public void setTableType(String tableType) {
this.tableType = tableType;
}
/**
* 获取此 TableInfo 的 useInfo。
* @return useInfo
*/
public String getUseInfo() {
return this.useInfo;
}
/**
* 将此 TableInfo 的 useInfo 设置为指定的值。
* @param useInfo,新建 useInfo
*/
public void setUseInfo(String useInfo) {
this.useInfo = useInfo;
}
/**
* 获取此 TableInfo 的 menuInfoCollection。
* @return menuInfoCollection
*/
public Collection<MenuInfo> getMenuInfoCollection() {
return this.menuInfoCollection;
}
/**
* 将此 TableInfo 的 menuInfoCollection 设置为指定的值。
* @param menuInfoCollection,新建 menuInfoCollection
*/
public void setMenuInfoCollection(Collection<MenuInfo> menuInfoCollection) {
this.menuInfoCollection = menuInfoCollection;
}
/**
* 获取此 TableInfo 的 bookInfoCollection。
* @return bookInfoCollection
*/
public Collection<BookInfo> getBookInfoCollection() {
return this.bookInfoCollection;
}
/**
* 将此 TableInfo 的 bookInfoCollection 设置为指定的值。
* @param bookInfoCollection,新建 bookInfoCollection
*/
public void setBookInfoCollection(Collection<BookInfo> bookInfoCollection) {
this.bookInfoCollection = bookInfoCollection;
}
/**
* 返回对象的散列代码值。该实现根据此对象
* 中 id 字段计算散列代码值。
* @return 此对象的散列代码值。
*/
@Override
public int hashCode() {
int hash = 0;
hash += (this.tableId != null ? this.tableId.hashCode() : 0);
return hash;
}
/**
* 确定其他对象是否等于此 TableInfo。当且仅当
* 参数不为 null 且该参数是具有与此对象相同 id 字段值的 TableInfo 对象时,
* 结果才为 <code>true</code>。
* @param 对象,要比较的引用对象
* 如果此对象与参数相同,则 @return <code>true</code>;
* 否则为 <code>false</code>。
*/
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof TableInfo)) {
return false;
}
TableInfo other = (TableInfo)object;
if (this.tableId != other.tableId && (this.tableId == null || !this.tableId.equals(other.tableId))) return false;
return true;
}
/**
* 返回对象的字符串表示法。该实现根据 id 字段
* 构造此表示法。
* @return 对象的字符串表示法。
*/
@Override
public String toString() {
return "javaapplication5.TableInfo[tableId=" + tableId + "]";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -