Menu.java~88~
资源名称:shihua.rar [点击查看]
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:4k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- package com.chinacannel.entity;
- import java.io.*;
- import com.chinacannel.common.*;
- import com.chinacannel.xlchemical.service.*;
- import org.apache.commons.lang.builder.*;
- import org.apache.commons.logging.*;
- import java.util.Date;
- public class Menu implements Serializable {
- private CommonDAO dao = new CommonDAO();
- private static Log log = LogFactory.getLog(InformationService.class);
- private Long men_ID;
- private String men_Name;
- private Long men_Superior = new Long(0);
- private Long men_Type;
- private Long men_Default;
- private String men_Language;
- private String men_Url;
- private Image image;
- private Long men_Index;
- private Long men_Order;
- private String men_DefaultName;
- private String men_Key;
- private Date men_Time;
- public boolean equals(Object other) {
- if (!(other instanceof Menu))
- return false;
- Menu castOther = (Menu) other;
- return new EqualsBuilder()
- .append(this.getMen_ID(), castOther.getMen_ID())
- .isEquals();
- }
- public int hashCode() {
- return new HashCodeBuilder()
- .append(getMen_ID())
- .toHashCode();
- }
- public Long getMen_Default() {
- return men_Default;
- }
- public Long getMen_ID() {
- return men_ID;
- }
- public String getMen_Language() {
- return men_Language;
- }
- public Long getMen_Superior() {
- return men_Superior;
- }
- public Long getMen_Type() {
- return men_Type;
- }
- public String getMen_Url() {
- return men_Url;
- }
- public Image getImage() {
- return image;
- }
- public Long getMen_Index() {
- return men_Index;
- }
- public String getMen_Name() {
- return men_Name;
- }
- public Long getMen_Order() {
- return men_Order;
- }
- public String getMen_DefaultName() {
- if (this.getMen_Default().equals(new Long(1))) {
- try {
- DefaultColumn dc = (DefaultColumn) dao.loadOneObjectBySQL(
- "from DefaultColumn as dc where dc.def_ID='" +
- this.getMen_Name() + "'");
- this.men_DefaultName = dc.getDef_Name();
- } catch (DAOException ex) {
- log.error(ex.getMessage(), ex);
- return null;
- }
- } else {
- this.men_DefaultName = this.getMen_Name();
- }
- return men_DefaultName;
- }
- public String getMen_Key() {
- return men_Key;
- }
- public void setMen_Default(Long men_Default) {
- this.men_Default = men_Default;
- }
- public void setMen_ID(Long men_ID) {
- this.men_ID = men_ID;
- }
- public void setMen_Language(String men_Language) {
- this.men_Language = men_Language;
- }
- public void setMen_Superior(Long men_Superior) {
- this.men_Superior = men_Superior;
- }
- public void setMen_Type(Long men_Type) {
- this.men_Type = men_Type;
- }
- public void setMen_Url(String men_Url) {
- this.men_Url = men_Url;
- }
- public void setImage(Image image) {
- this.image = image;
- }
- public void setMen_Index(Long men_Index) {
- this.men_Index = men_Index;
- }
- public void setMen_Name(String men_Name) {
- this.men_Name = men_Name;
- }
- public void setMen_Order(Long men_Order) {
- this.men_Order = men_Order;
- }
- public void setMen_Key(String men_Key) {
- this.men_Key = men_Key;
- }
- }