001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import com.liferay.portal.kernel.annotation.AutoEscape;
018    import com.liferay.portal.service.ServiceContext;
019    
020    import com.liferay.portlet.expando.model.ExpandoBridge;
021    
022    import java.io.Serializable;
023    
024    /**
025     * The base model interface for the Company service. Represents a row in the "Company" database table, with each column mapped to a property of this class.
026     *
027     * <p>
028     * This interface and its corresponding implementation {@link com.liferay.portal.model.impl.CompanyModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portal.model.impl.CompanyImpl}.
029     * </p>
030     *
031     * <p>
032     * Never modify or reference this interface directly. All methods that expect a company model instance should use the {@link Company} interface instead.
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see Company
037     * @see com.liferay.portal.model.impl.CompanyImpl
038     * @see com.liferay.portal.model.impl.CompanyModelImpl
039     * @generated
040     */
041    public interface CompanyModel extends BaseModel<Company> {
042            /**
043             * Gets the primary key of this company.
044             *
045             * @return the primary key of this company
046             */
047            public long getPrimaryKey();
048    
049            /**
050             * Sets the primary key of this company
051             *
052             * @param pk the primary key of this company
053             */
054            public void setPrimaryKey(long pk);
055    
056            /**
057             * Gets the company id of this company.
058             *
059             * @return the company id of this company
060             */
061            public long getCompanyId();
062    
063            /**
064             * Sets the company id of this company.
065             *
066             * @param companyId the company id of this company
067             */
068            public void setCompanyId(long companyId);
069    
070            /**
071             * Gets the account id of this company.
072             *
073             * @return the account id of this company
074             */
075            public long getAccountId();
076    
077            /**
078             * Sets the account id of this company.
079             *
080             * @param accountId the account id of this company
081             */
082            public void setAccountId(long accountId);
083    
084            /**
085             * Gets the web id of this company.
086             *
087             * @return the web id of this company
088             */
089            @AutoEscape
090            public String getWebId();
091    
092            /**
093             * Sets the web id of this company.
094             *
095             * @param webId the web id of this company
096             */
097            public void setWebId(String webId);
098    
099            /**
100             * Gets the key of this company.
101             *
102             * @return the key of this company
103             */
104            @AutoEscape
105            public String getKey();
106    
107            /**
108             * Sets the key of this company.
109             *
110             * @param key the key of this company
111             */
112            public void setKey(String key);
113    
114            /**
115             * Gets the virtual host of this company.
116             *
117             * @return the virtual host of this company
118             */
119            @AutoEscape
120            public String getVirtualHost();
121    
122            /**
123             * Sets the virtual host of this company.
124             *
125             * @param virtualHost the virtual host of this company
126             */
127            public void setVirtualHost(String virtualHost);
128    
129            /**
130             * Gets the mx of this company.
131             *
132             * @return the mx of this company
133             */
134            @AutoEscape
135            public String getMx();
136    
137            /**
138             * Sets the mx of this company.
139             *
140             * @param mx the mx of this company
141             */
142            public void setMx(String mx);
143    
144            /**
145             * Gets the home u r l of this company.
146             *
147             * @return the home u r l of this company
148             */
149            @AutoEscape
150            public String getHomeURL();
151    
152            /**
153             * Sets the home u r l of this company.
154             *
155             * @param homeURL the home u r l of this company
156             */
157            public void setHomeURL(String homeURL);
158    
159            /**
160             * Gets the logo id of this company.
161             *
162             * @return the logo id of this company
163             */
164            public long getLogoId();
165    
166            /**
167             * Sets the logo id of this company.
168             *
169             * @param logoId the logo id of this company
170             */
171            public void setLogoId(long logoId);
172    
173            /**
174             * Gets the system of this company.
175             *
176             * @return the system of this company
177             */
178            public boolean getSystem();
179    
180            /**
181             * Determines whether this company is system.
182             *
183             * @return whether this company is system
184             */
185            public boolean isSystem();
186    
187            /**
188             * Sets whether this {$entity.humanName} is system.
189             *
190             * @param system the system of this company
191             */
192            public void setSystem(boolean system);
193    
194            /**
195             * Gets the max users of this company.
196             *
197             * @return the max users of this company
198             */
199            public int getMaxUsers();
200    
201            /**
202             * Sets the max users of this company.
203             *
204             * @param maxUsers the max users of this company
205             */
206            public void setMaxUsers(int maxUsers);
207    
208            /**
209             * Gets a copy of this company as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}.
210             *
211             * @return the escaped model instance
212             * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler
213             */
214            public Company toEscapedModel();
215    
216            public boolean isNew();
217    
218            public void setNew(boolean n);
219    
220            public boolean isCachedModel();
221    
222            public void setCachedModel(boolean cachedModel);
223    
224            public boolean isEscapedModel();
225    
226            public void setEscapedModel(boolean escapedModel);
227    
228            public Serializable getPrimaryKeyObj();
229    
230            public ExpandoBridge getExpandoBridge();
231    
232            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
233    
234            public Object clone();
235    
236            public int compareTo(Company company);
237    
238            public int hashCode();
239    
240            public String toString();
241    
242            public String toXmlString();
243    }