001    package biz.wedoit4u.ejb.entity;
002    
003    import java.util.Set;
004    import javax.ejb.FinderException;
005    
006    /**
007     * The <code>local</code> interface for the entity bean representing 
008     * a record in the <code>categories</code> table.
009     *
010     * <p>Accessor methods are defined for all the columns, while mutator
011     * methods are defined for all columns except the primary key column.
012     * </p>
013     *
014     * <p>Copyright 2003, Rakesh Vidyadharan</p>
015     *
016     * @author Rakesh Vidyadharan on 9<sup><small>th</small></sup> September 2003
017     * @version $Id: Category.java,v 1.4 2004/05/26 11:42:33 rakesh Exp $
018     */
019    public interface Category extends javax.ejb.EJBLocalObject
020    {
021      /**
022       * Return the value in the <code>category_id</code> column.
023       *
024       * @return int - The column value.
025       */
026      public int getCategoryId();
027    
028      /**
029       * Return a reference to the {@link Customer} entity bean instance
030       * that is represented by the value in the <code>customer_id</code>
031       * column.
032       *
033       * @return Customer - The appropriate entity bean instance.
034       */
035      public Customer getCustomer();
036    
037      /**
038       * Set the value in the <code>customer_id</code> column using the
039       * value represented by the instance of the {@link Customer} entity
040       * bean instance.
041       *
042       * @param customer - The appropriate entity bean instance.
043       */
044      public void setCustomer( Customer customer );
045    
046      /**
047       * Return the value in the <code>menu_name</code> column.
048       *
049       * @return String - The column value.
050       */
051      public String getMenuName();
052    
053      /**
054       * Set the value of the <code>menu_name</code> column.
055       *
056       * @param menuName - The value to set.
057       */
058      public void setMenuName( String menuName );
059    
060      /**
061       * Return the value in the <code>long_name</code> column.
062       *
063       * @return String - The column value.
064       */
065      public String getLongName();
066    
067      /**
068       * Set the value of the <code>long_name</code> column.
069       *
070       * @param longName - The value to set.
071       */
072      public void setLongName( String longName );
073    
074      /**
075       * Return the value in the <code>brief</code> column.
076       *
077       * @return String - The column value.
078       */
079      public String getBrief();
080    
081      /**
082       * Set the value of the <code>brief</code> column.
083       *
084       * @param brief - The value to set.
085       */
086      public void setBrief( String brief );
087    
088      /**
089       * Return the value in the <code>picture</code> column.
090       *
091       * @return String - The column value.
092       */
093      public String getPicture();
094    
095      /**
096       * Set the value of the <code>picture</code> column.
097       *
098       * @param picture - The value to set.
099       */
100      public void setPicture( String picture );
101    
102      /**
103       * Return the value in the <code>description</code> column.
104       *
105       * @return String - The column value.
106       */
107      public String getDescription();
108    
109      /**
110       * Set the value of the <code>description</code> column.
111       *
112       * @param description - The value to set.
113       */
114      public void setDescription( String description );
115    
116      /**
117       * Return a <code>Set</code> of {@link Content} entity bean
118       * instances that are associated with this category.
119       *
120       * @return Set - The <code>Set</code> of entity bean instances.
121       * @throws FinderException - If errors are encountered while fetching
122       *   the associated {@link Content} entity bean instances.
123       */
124      public Set getContents();
125    }