001 package biz.wedoit4u.ejb.entity;
002
003 import java.util.Date;
004 import java.util.Set;
005 import javax.ejb.FinderException;
006
007 /**
008 * The <code>Local</code> interface for the entity bean representing a
009 * record in the <code>customers</code> table.
010 *
011 * <p>Accessor methods are defined for all the columns, while mutator
012 * methods are defined for all columns except the primary key column.
013 * </p>
014 *
015 * <p>Copyright 2003, Rakesh Vidyadharan</p>
016 *
017 * @author Rakesh Vidyadharan on 9<sup><small>th</small></sup> September 2003
018 * @version $Id: Customer.java,v 1.4 2004/05/26 11:42:34 rakesh Exp $
019 */
020 public interface Customer extends javax.ejb.EJBLocalObject
021 {
022 /**
023 * Return the value in the <code>customer_id</code> column.
024 *
025 * @return int - The value in the column.
026 */
027 public int getCustomerId();
028
029 /**
030 * Return the value in the <code>username</code> column.
031 *
032 * @return String - The value in the column.
033 */
034 public String getUsername();
035
036 /**
037 * Set the value in the <code>username</code> column.
038 *
039 * @param username - The value to set.
040 */
041 public void setUsername( String username );
042
043 /**
044 * Return the value in the <code>password</code> column.
045 *
046 * @return String - The value in the column.
047 */
048 public String getPassword();
049
050 /**
051 * Set the value in the <code>password</code> column.
052 *
053 * @param password - The value to set.
054 */
055 public void setPassword( String password );
056
057 /**
058 * Return the value in the <code>email</code> column.
059 *
060 * @return String - The value in the column.
061 */
062 public String getEmail();
063
064 /**
065 * Set the value in the <code>email</code> column.
066 *
067 * @param email - The value to set.
068 */
069 public void setEmail( String email );
070
071 /**
072 * Return the value in the <code>domain</code> column.
073 *
074 * @return String - The value in the column.
075 */
076 public String getDomain();
077
078 /**
079 * Set the value in the <code>domain</code> column.
080 *
081 * @param domain - The value to set.
082 */
083 public void setDomain( String domain );
084
085 /**
086 * Return the value in the <code>active</code> column.
087 *
088 * @return char - The value in the column.
089 */
090 public char getActive();
091
092 /**
093 * Set the value in the <code>active</code> column.
094 *
095 * @param active - The value to set.
096 */
097 public void setActive( char active );
098
099 /**
100 * Return the value in the <code>creation_date</code> column.
101 *
102 * @return Date - The value in the column.
103 */
104 public Date getCreationDate();
105
106 /**
107 * Set the value in the <code>creation_date</code> column.
108 *
109 * @param creationDate - The value to set.
110 */
111 public void setCreationDate( Date creationDate );
112
113 /**
114 * Return the value in the <code>activation_date</code> column.
115 *
116 * @return Date - The value in the column.
117 */
118 public Date getActivationDate();
119
120 /**
121 * Set the value in the <code>activation_date</code> column.
122 *
123 * @param activationDate - The value to set.
124 */
125 public void setActivationDate( Date activationDate );
126
127 /**
128 * Return the value in the <code>expiration_date</code> column.
129 *
130 * @return Date - The value in the column.
131 */
132 public Date getExpirationDate();
133
134 /**
135 * Set the value in the <code>expiration_date</code> column.
136 *
137 * @param expirationDate - The value to set.
138 */
139 public void setExpirationDate( Date expirationDate );
140
141 /**
142 * Return the value in the <code>customer_type_id</code> column as
143 * a reference to the {@link CustomerType} entity bean representing
144 * that value.
145 *
146 * @return CustomerType - The value in the column.
147 */
148 public CustomerType getCustomerType();
149
150 /**
151 * Set the value in the <code>customer_type_id</code> column as
152 * a represented by the reference to the {@link CustomerType} entity
153 * bean representing that value.
154 *
155 * @param type - The value to set.
156 */
157 public void setCustomerType( CustomerType type );
158
159 /**
160 * Return a <code>Set</code> of entity bean instances that represent
161 * associated records in the <code>categories</code> table.
162 *
163 * @return Set - The <code>Set</code> of {@link Category} instances
164 * that are associated with this customer.
165 */
166 public Set getCategories();
167 }