1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.model.Company;
18
19
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
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 obc)
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 obc)
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 obc)
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 obc)
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, com.liferay.portal.kernel.util.OrderByComparator obc)
141 throws com.liferay.portal.SystemException;
142
143 public void removeByWebId(java.lang.String webId)
144 throws com.liferay.portal.NoSuchCompanyException,
145 com.liferay.portal.SystemException;
146
147 public void removeByVirtualHost(java.lang.String virtualHost)
148 throws com.liferay.portal.NoSuchCompanyException,
149 com.liferay.portal.SystemException;
150
151 public void removeByMx(java.lang.String mx)
152 throws com.liferay.portal.NoSuchCompanyException,
153 com.liferay.portal.SystemException;
154
155 public void removeByLogoId(long logoId)
156 throws com.liferay.portal.NoSuchCompanyException,
157 com.liferay.portal.SystemException;
158
159 public void removeBySystem(boolean system)
160 throws com.liferay.portal.SystemException;
161
162 public void removeAll() throws com.liferay.portal.SystemException;
163
164 public int countByWebId(java.lang.String webId)
165 throws com.liferay.portal.SystemException;
166
167 public int countByVirtualHost(java.lang.String virtualHost)
168 throws com.liferay.portal.SystemException;
169
170 public int countByMx(java.lang.String mx)
171 throws com.liferay.portal.SystemException;
172
173 public int countByLogoId(long logoId)
174 throws com.liferay.portal.SystemException;
175
176 public int countBySystem(boolean system)
177 throws com.liferay.portal.SystemException;
178
179 public int countAll() throws com.liferay.portal.SystemException;
180 }