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.kernel.exception.SystemException;
43
44 public com.liferay.portal.model.Company updateImpl(
45 com.liferay.portal.model.Company company, boolean merge)
46 throws com.liferay.portal.kernel.exception.SystemException;
47
48 public com.liferay.portal.model.Company findByPrimaryKey(long companyId)
49 throws com.liferay.portal.NoSuchCompanyException,
50 com.liferay.portal.kernel.exception.SystemException;
51
52 public com.liferay.portal.model.Company fetchByPrimaryKey(long companyId)
53 throws com.liferay.portal.kernel.exception.SystemException;
54
55 public com.liferay.portal.model.Company findByWebId(java.lang.String webId)
56 throws com.liferay.portal.NoSuchCompanyException,
57 com.liferay.portal.kernel.exception.SystemException;
58
59 public com.liferay.portal.model.Company fetchByWebId(java.lang.String webId)
60 throws com.liferay.portal.kernel.exception.SystemException;
61
62 public com.liferay.portal.model.Company fetchByWebId(
63 java.lang.String webId, boolean retrieveFromCache)
64 throws com.liferay.portal.kernel.exception.SystemException;
65
66 public com.liferay.portal.model.Company findByVirtualHost(
67 java.lang.String virtualHost)
68 throws com.liferay.portal.NoSuchCompanyException,
69 com.liferay.portal.kernel.exception.SystemException;
70
71 public com.liferay.portal.model.Company fetchByVirtualHost(
72 java.lang.String virtualHost)
73 throws com.liferay.portal.kernel.exception.SystemException;
74
75 public com.liferay.portal.model.Company fetchByVirtualHost(
76 java.lang.String virtualHost, boolean retrieveFromCache)
77 throws com.liferay.portal.kernel.exception.SystemException;
78
79 public com.liferay.portal.model.Company findByMx(java.lang.String mx)
80 throws com.liferay.portal.NoSuchCompanyException,
81 com.liferay.portal.kernel.exception.SystemException;
82
83 public com.liferay.portal.model.Company fetchByMx(java.lang.String mx)
84 throws com.liferay.portal.kernel.exception.SystemException;
85
86 public com.liferay.portal.model.Company fetchByMx(java.lang.String mx,
87 boolean retrieveFromCache)
88 throws com.liferay.portal.kernel.exception.SystemException;
89
90 public com.liferay.portal.model.Company findByLogoId(long logoId)
91 throws com.liferay.portal.NoSuchCompanyException,
92 com.liferay.portal.kernel.exception.SystemException;
93
94 public com.liferay.portal.model.Company fetchByLogoId(long logoId)
95 throws com.liferay.portal.kernel.exception.SystemException;
96
97 public com.liferay.portal.model.Company fetchByLogoId(long logoId,
98 boolean retrieveFromCache)
99 throws com.liferay.portal.kernel.exception.SystemException;
100
101 public java.util.List<com.liferay.portal.model.Company> findBySystem(
102 boolean system)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 public java.util.List<com.liferay.portal.model.Company> findBySystem(
106 boolean system, int start, int end)
107 throws com.liferay.portal.kernel.exception.SystemException;
108
109 public java.util.List<com.liferay.portal.model.Company> findBySystem(
110 boolean system, int start, int end,
111 com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.kernel.exception.SystemException;
113
114 public com.liferay.portal.model.Company findBySystem_First(boolean system,
115 com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.NoSuchCompanyException,
117 com.liferay.portal.kernel.exception.SystemException;
118
119 public com.liferay.portal.model.Company findBySystem_Last(boolean system,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.NoSuchCompanyException,
122 com.liferay.portal.kernel.exception.SystemException;
123
124 public com.liferay.portal.model.Company[] findBySystem_PrevAndNext(
125 long companyId, boolean system,
126 com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.NoSuchCompanyException,
128 com.liferay.portal.kernel.exception.SystemException;
129
130 public java.util.List<com.liferay.portal.model.Company> findAll()
131 throws com.liferay.portal.kernel.exception.SystemException;
132
133 public java.util.List<com.liferay.portal.model.Company> findAll(int start,
134 int end) throws com.liferay.portal.kernel.exception.SystemException;
135
136 public java.util.List<com.liferay.portal.model.Company> findAll(int start,
137 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.kernel.exception.SystemException;
139
140 public void removeByWebId(java.lang.String webId)
141 throws com.liferay.portal.NoSuchCompanyException,
142 com.liferay.portal.kernel.exception.SystemException;
143
144 public void removeByVirtualHost(java.lang.String virtualHost)
145 throws com.liferay.portal.NoSuchCompanyException,
146 com.liferay.portal.kernel.exception.SystemException;
147
148 public void removeByMx(java.lang.String mx)
149 throws com.liferay.portal.NoSuchCompanyException,
150 com.liferay.portal.kernel.exception.SystemException;
151
152 public void removeByLogoId(long logoId)
153 throws com.liferay.portal.NoSuchCompanyException,
154 com.liferay.portal.kernel.exception.SystemException;
155
156 public void removeBySystem(boolean system)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 public void removeAll()
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162 public int countByWebId(java.lang.String webId)
163 throws com.liferay.portal.kernel.exception.SystemException;
164
165 public int countByVirtualHost(java.lang.String virtualHost)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 public int countByMx(java.lang.String mx)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 public int countByLogoId(long logoId)
172 throws com.liferay.portal.kernel.exception.SystemException;
173
174 public int countBySystem(boolean system)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177 public int countAll()
178 throws com.liferay.portal.kernel.exception.SystemException;
179 }