001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.model.Company;
018
019
025 public interface CompanyPersistence extends BasePersistence<Company> {
026 public void cacheResult(com.liferay.portal.model.Company company);
027
028 public void cacheResult(
029 java.util.List<com.liferay.portal.model.Company> companies);
030
031 public com.liferay.portal.model.Company create(long companyId);
032
033 public com.liferay.portal.model.Company remove(long companyId)
034 throws com.liferay.portal.NoSuchCompanyException,
035 com.liferay.portal.kernel.exception.SystemException;
036
037 public com.liferay.portal.model.Company updateImpl(
038 com.liferay.portal.model.Company company, boolean merge)
039 throws com.liferay.portal.kernel.exception.SystemException;
040
041 public com.liferay.portal.model.Company findByPrimaryKey(long companyId)
042 throws com.liferay.portal.NoSuchCompanyException,
043 com.liferay.portal.kernel.exception.SystemException;
044
045 public com.liferay.portal.model.Company fetchByPrimaryKey(long companyId)
046 throws com.liferay.portal.kernel.exception.SystemException;
047
048 public com.liferay.portal.model.Company findByWebId(java.lang.String webId)
049 throws com.liferay.portal.NoSuchCompanyException,
050 com.liferay.portal.kernel.exception.SystemException;
051
052 public com.liferay.portal.model.Company fetchByWebId(java.lang.String webId)
053 throws com.liferay.portal.kernel.exception.SystemException;
054
055 public com.liferay.portal.model.Company fetchByWebId(
056 java.lang.String webId, boolean retrieveFromCache)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059 public com.liferay.portal.model.Company findByVirtualHost(
060 java.lang.String virtualHost)
061 throws com.liferay.portal.NoSuchCompanyException,
062 com.liferay.portal.kernel.exception.SystemException;
063
064 public com.liferay.portal.model.Company fetchByVirtualHost(
065 java.lang.String virtualHost)
066 throws com.liferay.portal.kernel.exception.SystemException;
067
068 public com.liferay.portal.model.Company fetchByVirtualHost(
069 java.lang.String virtualHost, boolean retrieveFromCache)
070 throws com.liferay.portal.kernel.exception.SystemException;
071
072 public com.liferay.portal.model.Company findByMx(java.lang.String mx)
073 throws com.liferay.portal.NoSuchCompanyException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076 public com.liferay.portal.model.Company fetchByMx(java.lang.String mx)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 public com.liferay.portal.model.Company fetchByMx(java.lang.String mx,
080 boolean retrieveFromCache)
081 throws com.liferay.portal.kernel.exception.SystemException;
082
083 public com.liferay.portal.model.Company findByLogoId(long logoId)
084 throws com.liferay.portal.NoSuchCompanyException,
085 com.liferay.portal.kernel.exception.SystemException;
086
087 public com.liferay.portal.model.Company fetchByLogoId(long logoId)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 public com.liferay.portal.model.Company fetchByLogoId(long logoId,
091 boolean retrieveFromCache)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public java.util.List<com.liferay.portal.model.Company> findBySystem(
095 boolean system)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public java.util.List<com.liferay.portal.model.Company> findBySystem(
099 boolean system, int start, int end)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public java.util.List<com.liferay.portal.model.Company> findBySystem(
103 boolean system, int start, int end,
104 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portal.model.Company findBySystem_First(boolean system,
108 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109 throws com.liferay.portal.NoSuchCompanyException,
110 com.liferay.portal.kernel.exception.SystemException;
111
112 public com.liferay.portal.model.Company findBySystem_Last(boolean system,
113 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114 throws com.liferay.portal.NoSuchCompanyException,
115 com.liferay.portal.kernel.exception.SystemException;
116
117 public com.liferay.portal.model.Company[] findBySystem_PrevAndNext(
118 long companyId, boolean system,
119 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120 throws com.liferay.portal.NoSuchCompanyException,
121 com.liferay.portal.kernel.exception.SystemException;
122
123 public java.util.List<com.liferay.portal.model.Company> findAll()
124 throws com.liferay.portal.kernel.exception.SystemException;
125
126 public java.util.List<com.liferay.portal.model.Company> findAll(int start,
127 int end) throws com.liferay.portal.kernel.exception.SystemException;
128
129 public java.util.List<com.liferay.portal.model.Company> findAll(int start,
130 int end,
131 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132 throws com.liferay.portal.kernel.exception.SystemException;
133
134 public void removeByWebId(java.lang.String webId)
135 throws com.liferay.portal.NoSuchCompanyException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 public void removeByVirtualHost(java.lang.String virtualHost)
139 throws com.liferay.portal.NoSuchCompanyException,
140 com.liferay.portal.kernel.exception.SystemException;
141
142 public void removeByMx(java.lang.String mx)
143 throws com.liferay.portal.NoSuchCompanyException,
144 com.liferay.portal.kernel.exception.SystemException;
145
146 public void removeByLogoId(long logoId)
147 throws com.liferay.portal.NoSuchCompanyException,
148 com.liferay.portal.kernel.exception.SystemException;
149
150 public void removeBySystem(boolean system)
151 throws com.liferay.portal.kernel.exception.SystemException;
152
153 public void removeAll()
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 public int countByWebId(java.lang.String webId)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 public int countByVirtualHost(java.lang.String virtualHost)
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162 public int countByMx(java.lang.String mx)
163 throws com.liferay.portal.kernel.exception.SystemException;
164
165 public int countByLogoId(long logoId)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 public int countBySystem(boolean system)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 public int countAll()
172 throws com.liferay.portal.kernel.exception.SystemException;
173 }