1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.Company;
18  
19  /**
20   * <a href="CompanyPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       CompanyPersistenceImpl
29   * @see       CompanyUtil
30   * @generated
31   */
32  public interface CompanyPersistence extends BasePersistence<Company> {
33      public void cacheResult(com.liferay.portal.model.Company company);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.Company> companies);
37  
38      public com.liferay.portal.model.Company create(long companyId);
39  
40      public com.liferay.portal.model.Company remove(long companyId)
41          throws com.liferay.portal.NoSuchCompanyException,
42              com.liferay.portal.SystemException;
43  
44      /**
45       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
46       */
47      public com.liferay.portal.model.Company update(
48          com.liferay.portal.model.Company company)
49          throws com.liferay.portal.SystemException;
50  
51      public com.liferay.portal.model.Company updateImpl(
52          com.liferay.portal.model.Company company, boolean merge)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portal.model.Company findByPrimaryKey(long companyId)
56          throws com.liferay.portal.NoSuchCompanyException,
57              com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.Company fetchByPrimaryKey(long companyId)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portal.model.Company findByWebId(java.lang.String webId)
63          throws com.liferay.portal.NoSuchCompanyException,
64              com.liferay.portal.SystemException;
65  
66      public com.liferay.portal.model.Company fetchByWebId(java.lang.String webId)
67          throws com.liferay.portal.SystemException;
68  
69      public com.liferay.portal.model.Company fetchByWebId(
70          java.lang.String webId, boolean retrieveFromCache)
71          throws com.liferay.portal.SystemException;
72  
73      public com.liferay.portal.model.Company findByVirtualHost(
74          java.lang.String virtualHost)
75          throws com.liferay.portal.NoSuchCompanyException,
76              com.liferay.portal.SystemException;
77  
78      public com.liferay.portal.model.Company fetchByVirtualHost(
79          java.lang.String virtualHost) throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portal.model.Company fetchByVirtualHost(
82          java.lang.String virtualHost, boolean retrieveFromCache)
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portal.model.Company findByMx(java.lang.String mx)
86          throws com.liferay.portal.NoSuchCompanyException,
87              com.liferay.portal.SystemException;
88  
89      public com.liferay.portal.model.Company fetchByMx(java.lang.String mx)
90          throws com.liferay.portal.SystemException;
91  
92      public com.liferay.portal.model.Company fetchByMx(java.lang.String mx,
93          boolean retrieveFromCache) throws com.liferay.portal.SystemException;
94  
95      public com.liferay.portal.model.Company findByLogoId(long logoId)
96          throws com.liferay.portal.NoSuchCompanyException,
97              com.liferay.portal.SystemException;
98  
99      public com.liferay.portal.model.Company fetchByLogoId(long logoId)
100         throws com.liferay.portal.SystemException;
101 
102     public com.liferay.portal.model.Company fetchByLogoId(long logoId,
103         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
104 
105     public java.util.List<com.liferay.portal.model.Company> findBySystem(
106         boolean system) throws com.liferay.portal.SystemException;
107 
108     public java.util.List<com.liferay.portal.model.Company> findBySystem(
109         boolean system, int start, int end)
110         throws com.liferay.portal.SystemException;
111 
112     public java.util.List<com.liferay.portal.model.Company> findBySystem(
113         boolean system, int start, int end,
114         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115         throws com.liferay.portal.SystemException;
116 
117     public com.liferay.portal.model.Company findBySystem_First(boolean system,
118         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119         throws com.liferay.portal.NoSuchCompanyException,
120             com.liferay.portal.SystemException;
121 
122     public com.liferay.portal.model.Company findBySystem_Last(boolean system,
123         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
124         throws com.liferay.portal.NoSuchCompanyException,
125             com.liferay.portal.SystemException;
126 
127     public com.liferay.portal.model.Company[] findBySystem_PrevAndNext(
128         long companyId, boolean system,
129         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130         throws com.liferay.portal.NoSuchCompanyException,
131             com.liferay.portal.SystemException;
132 
133     public java.util.List<com.liferay.portal.model.Company> findAll()
134         throws com.liferay.portal.SystemException;
135 
136     public java.util.List<com.liferay.portal.model.Company> findAll(int start,
137         int end) throws com.liferay.portal.SystemException;
138 
139     public java.util.List<com.liferay.portal.model.Company> findAll(int start,
140         int end,
141         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142         throws com.liferay.portal.SystemException;
143 
144     public void removeByWebId(java.lang.String webId)
145         throws com.liferay.portal.NoSuchCompanyException,
146             com.liferay.portal.SystemException;
147 
148     public void removeByVirtualHost(java.lang.String virtualHost)
149         throws com.liferay.portal.NoSuchCompanyException,
150             com.liferay.portal.SystemException;
151 
152     public void removeByMx(java.lang.String mx)
153         throws com.liferay.portal.NoSuchCompanyException,
154             com.liferay.portal.SystemException;
155 
156     public void removeByLogoId(long logoId)
157         throws com.liferay.portal.NoSuchCompanyException,
158             com.liferay.portal.SystemException;
159 
160     public void removeBySystem(boolean system)
161         throws com.liferay.portal.SystemException;
162 
163     public void removeAll() throws com.liferay.portal.SystemException;
164 
165     public int countByWebId(java.lang.String webId)
166         throws com.liferay.portal.SystemException;
167 
168     public int countByVirtualHost(java.lang.String virtualHost)
169         throws com.liferay.portal.SystemException;
170 
171     public int countByMx(java.lang.String mx)
172         throws com.liferay.portal.SystemException;
173 
174     public int countByLogoId(long logoId)
175         throws com.liferay.portal.SystemException;
176 
177     public int countBySystem(boolean system)
178         throws com.liferay.portal.SystemException;
179 
180     public int countAll() throws com.liferay.portal.SystemException;
181 }