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