001 package biz.wedoit4u.ejb.entity;
002
003 import java.util.Date;
004
005 /**
006 * The <code>Local</code> interface for the entity bean representing
007 * a record in the <code>contents</code> table.
008 *
009 * <p>Accessor methods are defined for all the columns, while mutator
010 * methods are defined for all columns except the primary key column,
011 * and the foreign 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: Content.java,v 1.2 2004/05/26 11:42:33 rakesh Exp $
018 */
019 public interface Content extends javax.ejb.EJBLocalObject
020 {
021 /**
022 * Return the value in the <code>content_id</code> column.
023 *
024 * @return int - The column value.
025 */
026 public int getContentId();
027
028 /**
029 * Return the value in the <code>category_id</code> column as a
030 * reference to the {@link Category} entity bean instance representing
031 * the value.
032 *
033 * @return Category - The appropriate entity bean instance.
034 */
035 public Category getCategory();
036
037 /**
038 * Set the value in the <code>category_id</code> column based upon the
039 * reference to the {@link Category} entity bean instance representing
040 * the value.
041 *
042 * @param category - The appropriate entity bean instance.
043 */
044 public void setCategory( Category category );
045
046 /**
047 * Return the value in the <code>title</code> column.
048 *
049 * @return String - The column value.
050 */
051 public String getTitle();
052
053 /**
054 * Set the value in the <code>title</code> column.
055 *
056 * @param title - The value to set.
057 */
058 public void setTitle( String title );
059
060 /**
061 * Return the value in the <code>brief</code> column.
062 *
063 * @return String - The column value.
064 */
065 public String getBrief();
066
067 /**
068 * Set the value in the <code>picture</code> column.
069 *
070 * @param brief - The value to set.
071 */
072 public void setBrief( String brief );
073
074 /**
075 * Return the value in the <code>picture</code> column.
076 *
077 * @return String - The column value.
078 */
079 public String getPicture();
080
081 /**
082 * Set the value in the <code>picture</code> column.
083 *
084 * @param picture - The value to set.
085 */
086 public void setPicture( String picture );
087
088 /**
089 * Return the value in the <code>picture</code> column.
090 *
091 * @return String - The column value.
092 */
093 public String getBody();
094
095 /**
096 * Set the value in the <code>picture</code> column.
097 *
098 * @param body - The value to set.
099 */
100 public void setBody( String body );
101
102 /**
103 * Return the value in the <code>creation_date</code> column.
104 *
105 * @return Date - The value in the column.
106 */
107 public Date getCreationDate();
108
109 /**
110 * Return the value in the <code>modification_date</code> column.
111 *
112 * @return Date - The value in the column.
113 */
114 public Date getModificationDate();
115
116 /**
117 * Set the value in the <code>modification_date</code> column.
118 *
119 * @param modificationDate - The value in the column.
120 */
121 public void setModificationDate( Date modificationDate );
122 }