001
014
015 package com.liferay.portlet.social.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.social.model.SocialEquityAssetEntry;
024
025 import java.util.List;
026
027
033 public class SocialEquityAssetEntryUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(SocialEquityAssetEntry socialEquityAssetEntry) {
045 getPersistence().clearCache(socialEquityAssetEntry);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<SocialEquityAssetEntry> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<SocialEquityAssetEntry> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<SocialEquityAssetEntry> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static SocialEquityAssetEntry remove(
088 SocialEquityAssetEntry socialEquityAssetEntry)
089 throws SystemException {
090 return getPersistence().remove(socialEquityAssetEntry);
091 }
092
093
096 public static SocialEquityAssetEntry update(
097 SocialEquityAssetEntry socialEquityAssetEntry, boolean merge)
098 throws SystemException {
099 return getPersistence().update(socialEquityAssetEntry, merge);
100 }
101
102
105 public static SocialEquityAssetEntry update(
106 SocialEquityAssetEntry socialEquityAssetEntry, boolean merge,
107 ServiceContext serviceContext) throws SystemException {
108 return getPersistence()
109 .update(socialEquityAssetEntry, merge, serviceContext);
110 }
111
112 public static void cacheResult(
113 com.liferay.portlet.social.model.SocialEquityAssetEntry socialEquityAssetEntry) {
114 getPersistence().cacheResult(socialEquityAssetEntry);
115 }
116
117 public static void cacheResult(
118 java.util.List<com.liferay.portlet.social.model.SocialEquityAssetEntry> socialEquityAssetEntries) {
119 getPersistence().cacheResult(socialEquityAssetEntries);
120 }
121
122 public static com.liferay.portlet.social.model.SocialEquityAssetEntry create(
123 long equityAssetEntryId) {
124 return getPersistence().create(equityAssetEntryId);
125 }
126
127 public static com.liferay.portlet.social.model.SocialEquityAssetEntry remove(
128 long equityAssetEntryId)
129 throws com.liferay.portal.kernel.exception.SystemException,
130 com.liferay.portlet.social.NoSuchEquityAssetEntryException {
131 return getPersistence().remove(equityAssetEntryId);
132 }
133
134 public static com.liferay.portlet.social.model.SocialEquityAssetEntry updateImpl(
135 com.liferay.portlet.social.model.SocialEquityAssetEntry socialEquityAssetEntry,
136 boolean merge)
137 throws com.liferay.portal.kernel.exception.SystemException {
138 return getPersistence().updateImpl(socialEquityAssetEntry, merge);
139 }
140
141 public static com.liferay.portlet.social.model.SocialEquityAssetEntry findByPrimaryKey(
142 long equityAssetEntryId)
143 throws com.liferay.portal.kernel.exception.SystemException,
144 com.liferay.portlet.social.NoSuchEquityAssetEntryException {
145 return getPersistence().findByPrimaryKey(equityAssetEntryId);
146 }
147
148 public static com.liferay.portlet.social.model.SocialEquityAssetEntry fetchByPrimaryKey(
149 long equityAssetEntryId)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getPersistence().fetchByPrimaryKey(equityAssetEntryId);
152 }
153
154 public static com.liferay.portlet.social.model.SocialEquityAssetEntry findByAssetEntryId(
155 long assetEntryId)
156 throws com.liferay.portal.kernel.exception.SystemException,
157 com.liferay.portlet.social.NoSuchEquityAssetEntryException {
158 return getPersistence().findByAssetEntryId(assetEntryId);
159 }
160
161 public static com.liferay.portlet.social.model.SocialEquityAssetEntry fetchByAssetEntryId(
162 long assetEntryId)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getPersistence().fetchByAssetEntryId(assetEntryId);
165 }
166
167 public static com.liferay.portlet.social.model.SocialEquityAssetEntry fetchByAssetEntryId(
168 long assetEntryId, boolean retrieveFromCache)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getPersistence()
171 .fetchByAssetEntryId(assetEntryId, retrieveFromCache);
172 }
173
174 public static java.util.List<com.liferay.portlet.social.model.SocialEquityAssetEntry> findAll()
175 throws com.liferay.portal.kernel.exception.SystemException {
176 return getPersistence().findAll();
177 }
178
179 public static java.util.List<com.liferay.portlet.social.model.SocialEquityAssetEntry> findAll(
180 int start, int end)
181 throws com.liferay.portal.kernel.exception.SystemException {
182 return getPersistence().findAll(start, end);
183 }
184
185 public static java.util.List<com.liferay.portlet.social.model.SocialEquityAssetEntry> findAll(
186 int start, int end,
187 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getPersistence().findAll(start, end, orderByComparator);
190 }
191
192 public static void removeByAssetEntryId(long assetEntryId)
193 throws com.liferay.portal.kernel.exception.SystemException,
194 com.liferay.portlet.social.NoSuchEquityAssetEntryException {
195 getPersistence().removeByAssetEntryId(assetEntryId);
196 }
197
198 public static void removeAll()
199 throws com.liferay.portal.kernel.exception.SystemException {
200 getPersistence().removeAll();
201 }
202
203 public static int countByAssetEntryId(long assetEntryId)
204 throws com.liferay.portal.kernel.exception.SystemException {
205 return getPersistence().countByAssetEntryId(assetEntryId);
206 }
207
208 public static int countAll()
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getPersistence().countAll();
211 }
212
213 public static SocialEquityAssetEntryPersistence getPersistence() {
214 if (_persistence == null) {
215 _persistence = (SocialEquityAssetEntryPersistence)PortalBeanLocatorUtil.locate(SocialEquityAssetEntryPersistence.class.getName());
216 }
217
218 return _persistence;
219 }
220
221 public void setPersistence(SocialEquityAssetEntryPersistence persistence) {
222 _persistence = persistence;
223 }
224
225 private static SocialEquityAssetEntryPersistence _persistence;
226 }