⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractmenuitem.java

📁 实现动态加载菜单
💻 JAVA
字号:
/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Mon Dec 12 10:17:59 CST 2005 by MyEclipse Hibernate Tool.
 */
package com.Hibernate;

import java.io.Serializable;

/**
 * A class that represents a row in the menu_item table. 
 * You can customize the behavior of this class by editing the class, {@link MenuItem()}.
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractMenuItem 
    implements Serializable
{
    /** The cached hash code value for this instance.  Settting to 0 triggers re-calculation. */
    private int hashValue = 0;

    /** The composite primary key value. */
    private java.lang.Long id;

    /** The value of the simple parentName property. */
    private java.lang.String parentName;

    /** The value of the simple name property. */
    private java.lang.String name;

    /** The value of the simple title property. */
    private java.lang.String title;

    /** The value of the simple description property. */
    private java.lang.String description;

    /** The value of the simple location property. */
    private java.lang.String location;

    /** The value of the simple target property. */
    private java.lang.String target;

    /** The value of the simple onclick property. */
    private java.lang.String onclick;

    /** The value of the simple onmouseover property. */
    private java.lang.String onmouseover;

    /** The value of the simple onmouseout property. */
    private java.lang.String onmouseout;

    /** The value of the simple image property. */
    private java.lang.String image;

    /** The value of the simple altimage property. */
    private java.lang.String altimage;

    /** The value of the simple tooltip property. */
    private java.lang.String tooltip;

    /** The value of the simple roles property. */
    private java.lang.String roles;

    /** The value of the simple page property. */
    private java.lang.String page;

    /** The value of the simple width property. */
    private java.lang.String width;

    /** The value of the simple height property. */
    private java.lang.String height;

    /** The value of the simple forward property. */
    private java.lang.String forward;

    /** The value of the simple action property. */
    private java.lang.String action;

    /**
     * Simple constructor of AbstractMenuItem instances.
     */
    public AbstractMenuItem()
    {
    }

    /**
     * Constructor of AbstractMenuItem instances given a simple primary key.
     * @param id
     */
    public AbstractMenuItem(java.lang.Long id)
    {
        this.setId(id);
    }

    /**
     * Return the simple primary key value that identifies this object.
     * @return java.lang.Long
     */
    public java.lang.Long getId()
    {
        return id;
    }

    /**
     * Set the simple primary key value that identifies this object.
     * @param id
     */
    public void setId(java.lang.Long id)
    {
        this.hashValue = 0;
        this.id = id;
    }

    /**
     * Return the value of the parent_name column.
     * @return java.lang.String
     */
    public java.lang.String getParentName()
    {
        return this.parentName;
    }

    /**
     * Set the value of the parent_name column.
     * @param parentName
     */
    public void setParentName(java.lang.String parentName)
    {
        this.parentName = parentName;
    }

    /**
     * Return the value of the name column.
     * @return java.lang.String
     */
    public java.lang.String getName()
    {
        return this.name;
    }

    /**
     * Set the value of the name column.
     * @param name
     */
    public void setName(java.lang.String name)
    {
        this.name = name;
    }

    /**
     * Return the value of the title column.
     * @return java.lang.String
     */
    public java.lang.String getTitle()
    {
        return this.title;
    }

    /**
     * Set the value of the title column.
     * @param title
     */
    public void setTitle(java.lang.String title)
    {
        this.title = title;
    }

    /**
     * Return the value of the description column.
     * @return java.lang.String
     */
    public java.lang.String getDescription()
    {
        return this.description;
    }

    /**
     * Set the value of the description column.
     * @param description
     */
    public void setDescription(java.lang.String description)
    {
        this.description = description;
    }

    /**
     * Return the value of the location column.
     * @return java.lang.String
     */
    public java.lang.String getLocation()
    {
        return this.location;
    }

    /**
     * Set the value of the location column.
     * @param location
     */
    public void setLocation(java.lang.String location)
    {
        this.location = location;
    }

    /**
     * Return the value of the target column.
     * @return java.lang.String
     */
    public java.lang.String getTarget()
    {
        return this.target;
    }

    /**
     * Set the value of the target column.
     * @param target
     */
    public void setTarget(java.lang.String target)
    {
        this.target = target;
    }

    /**
     * Return the value of the onclick column.
     * @return java.lang.String
     */
    public java.lang.String getOnclick()
    {
        return this.onclick;
    }

    /**
     * Set the value of the onclick column.
     * @param onclick
     */
    public void setOnclick(java.lang.String onclick)
    {
        this.onclick = onclick;
    }

    /**
     * Return the value of the onmouseover column.
     * @return java.lang.String
     */
    public java.lang.String getOnmouseover()
    {
        return this.onmouseover;
    }

    /**
     * Set the value of the onmouseover column.
     * @param onmouseover
     */
    public void setOnmouseover(java.lang.String onmouseover)
    {
        this.onmouseover = onmouseover;
    }

    /**
     * Return the value of the onmouseout column.
     * @return java.lang.String
     */
    public java.lang.String getOnmouseout()
    {
        return this.onmouseout;
    }

    /**
     * Set the value of the onmouseout column.
     * @param onmouseout
     */
    public void setOnmouseout(java.lang.String onmouseout)
    {
        this.onmouseout = onmouseout;
    }

    /**
     * Return the value of the image column.
     * @return java.lang.String
     */
    public java.lang.String getImage()
    {
        return this.image;
    }

    /**
     * Set the value of the image column.
     * @param image
     */
    public void setImage(java.lang.String image)
    {
        this.image = image;
    }

    /**
     * Return the value of the altImage column.
     * @return java.lang.String
     */
    public java.lang.String getAltimage()
    {
        return this.altimage;
    }

    /**
     * Set the value of the altImage column.
     * @param altimage
     */
    public void setAltimage(java.lang.String altimage)
    {
        this.altimage = altimage;
    }

    /**
     * Return the value of the tooltip column.
     * @return java.lang.String
     */
    public java.lang.String getTooltip()
    {
        return this.tooltip;
    }

    /**
     * Set the value of the tooltip column.
     * @param tooltip
     */
    public void setTooltip(java.lang.String tooltip)
    {
        this.tooltip = tooltip;
    }

    /**
     * Return the value of the roles column.
     * @return java.lang.String
     */
    public java.lang.String getRoles()
    {
        return this.roles;
    }

    /**
     * Set the value of the roles column.
     * @param roles
     */
    public void setRoles(java.lang.String roles)
    {
        this.roles = roles;
    }

    /**
     * Return the value of the page column.
     * @return java.lang.String
     */
    public java.lang.String getPage()
    {
        return this.page;
    }

    /**
     * Set the value of the page column.
     * @param page
     */
    public void setPage(java.lang.String page)
    {
        this.page = page;
    }

    /**
     * Return the value of the width column.
     * @return java.lang.String
     */
    public java.lang.String getWidth()
    {
        return this.width;
    }

    /**
     * Set the value of the width column.
     * @param width
     */
    public void setWidth(java.lang.String width)
    {
        this.width = width;
    }

    /**
     * Return the value of the height column.
     * @return java.lang.String
     */
    public java.lang.String getHeight()
    {
        return this.height;
    }

    /**
     * Set the value of the height column.
     * @param height
     */
    public void setHeight(java.lang.String height)
    {
        this.height = height;
    }

    /**
     * Return the value of the forward column.
     * @return java.lang.String
     */
    public java.lang.String getForward()
    {
        return this.forward;
    }

    /**
     * Set the value of the forward column.
     * @param forward
     */
    public void setForward(java.lang.String forward)
    {
        this.forward = forward;
    }

    /**
     * Return the value of the action column.
     * @return java.lang.String
     */
    public java.lang.String getAction()
    {
        return this.action;
    }

    /**
     * Set the value of the action column.
     * @param action
     */
    public void setAction(java.lang.String action)
    {
        this.action = action;
    }

    /**
     * Implementation of the equals comparison on the basis of equality of the primary key values.
     * @param rhs
     * @return boolean
     */
    public boolean equals(Object rhs)
    {
        if (rhs == null)
            return false;
        if (! (rhs instanceof MenuItem))
            return false;
        MenuItem that = (MenuItem) rhs;
        if (this.getId() == null || that.getId() == null)
            return false;
        return (this.getId().equals(that.getId()));
    }

    /**
     * Implementation of the hashCode method conforming to the Bloch pattern with
     * the exception of array properties (these are very unlikely primary key types).
     * @return int
     */
    public int hashCode()
    {
        if (this.hashValue == 0)
        {
            int result = 17;
            int idValue = this.getId() == null ? 0 : this.getId().hashCode();
            result = result * 37 + idValue;
            this.hashValue = result;
        }
        return this.hashValue;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -