001    /**
002     * Copyright (c) 2000-2013 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.bean.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 Organization service. Represents a row in the "Organization_" 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.OrganizationModelImpl} 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.OrganizationImpl}.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see Organization
033     * @see com.liferay.portal.model.impl.OrganizationImpl
034     * @see com.liferay.portal.model.impl.OrganizationModelImpl
035     * @generated
036     */
037    public interface OrganizationModel extends BaseModel<Organization> {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify or reference this interface directly. All methods that expect a organization model instance should use the {@link Organization} interface instead.
042             */
043    
044            /**
045             * Returns the primary key of this organization.
046             *
047             * @return the primary key of this organization
048             */
049            public long getPrimaryKey();
050    
051            /**
052             * Sets the primary key of this organization.
053             *
054             * @param primaryKey the primary key of this organization
055             */
056            public void setPrimaryKey(long primaryKey);
057    
058            /**
059             * Returns the organization ID of this organization.
060             *
061             * @return the organization ID of this organization
062             */
063            public long getOrganizationId();
064    
065            /**
066             * Sets the organization ID of this organization.
067             *
068             * @param organizationId the organization ID of this organization
069             */
070            public void setOrganizationId(long organizationId);
071    
072            /**
073             * Returns the company ID of this organization.
074             *
075             * @return the company ID of this organization
076             */
077            public long getCompanyId();
078    
079            /**
080             * Sets the company ID of this organization.
081             *
082             * @param companyId the company ID of this organization
083             */
084            public void setCompanyId(long companyId);
085    
086            /**
087             * Returns the parent organization ID of this organization.
088             *
089             * @return the parent organization ID of this organization
090             */
091            public long getParentOrganizationId();
092    
093            /**
094             * Sets the parent organization ID of this organization.
095             *
096             * @param parentOrganizationId the parent organization ID of this organization
097             */
098            public void setParentOrganizationId(long parentOrganizationId);
099    
100            /**
101             * Returns the tree path of this organization.
102             *
103             * @return the tree path of this organization
104             */
105            @AutoEscape
106            public String getTreePath();
107    
108            /**
109             * Sets the tree path of this organization.
110             *
111             * @param treePath the tree path of this organization
112             */
113            public void setTreePath(String treePath);
114    
115            /**
116             * Returns the name of this organization.
117             *
118             * @return the name of this organization
119             */
120            @AutoEscape
121            public String getName();
122    
123            /**
124             * Sets the name of this organization.
125             *
126             * @param name the name of this organization
127             */
128            public void setName(String name);
129    
130            /**
131             * Returns the type of this organization.
132             *
133             * @return the type of this organization
134             */
135            public String getType();
136    
137            /**
138             * Sets the type of this organization.
139             *
140             * @param type the type of this organization
141             */
142            public void setType(String type);
143    
144            /**
145             * Returns the recursable of this organization.
146             *
147             * @return the recursable of this organization
148             */
149            public boolean getRecursable();
150    
151            /**
152             * Returns <code>true</code> if this organization is recursable.
153             *
154             * @return <code>true</code> if this organization is recursable; <code>false</code> otherwise
155             */
156            public boolean isRecursable();
157    
158            /**
159             * Sets whether this organization is recursable.
160             *
161             * @param recursable the recursable of this organization
162             */
163            public void setRecursable(boolean recursable);
164    
165            /**
166             * Returns the region ID of this organization.
167             *
168             * @return the region ID of this organization
169             */
170            public long getRegionId();
171    
172            /**
173             * Sets the region ID of this organization.
174             *
175             * @param regionId the region ID of this organization
176             */
177            public void setRegionId(long regionId);
178    
179            /**
180             * Returns the country ID of this organization.
181             *
182             * @return the country ID of this organization
183             */
184            public long getCountryId();
185    
186            /**
187             * Sets the country ID of this organization.
188             *
189             * @param countryId the country ID of this organization
190             */
191            public void setCountryId(long countryId);
192    
193            /**
194             * Returns the status ID of this organization.
195             *
196             * @return the status ID of this organization
197             */
198            public int getStatusId();
199    
200            /**
201             * Sets the status ID of this organization.
202             *
203             * @param statusId the status ID of this organization
204             */
205            public void setStatusId(int statusId);
206    
207            /**
208             * Returns the comments of this organization.
209             *
210             * @return the comments of this organization
211             */
212            @AutoEscape
213            public String getComments();
214    
215            /**
216             * Sets the comments of this organization.
217             *
218             * @param comments the comments of this organization
219             */
220            public void setComments(String comments);
221    
222            public boolean isNew();
223    
224            public void setNew(boolean n);
225    
226            public boolean isCachedModel();
227    
228            public void setCachedModel(boolean cachedModel);
229    
230            public boolean isEscapedModel();
231    
232            public Serializable getPrimaryKeyObj();
233    
234            public void setPrimaryKeyObj(Serializable primaryKeyObj);
235    
236            public ExpandoBridge getExpandoBridge();
237    
238            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
239    
240            public Object clone();
241    
242            public int compareTo(Organization organization);
243    
244            public int hashCode();
245    
246            public CacheModel<Organization> toCacheModel();
247    
248            public Organization toEscapedModel();
249    
250            public Organization toUnescapedModel();
251    
252            public String toString();
253    
254            public String toXmlString();
255    }