1
14
15 package com.liferay.portlet.social.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20
21 import com.liferay.portlet.social.model.SocialEquityAssetEntry;
22
23 import java.util.List;
24
25
38 public class SocialEquityAssetEntryUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(SocialEquityAssetEntry socialEquityAssetEntry) {
50 getPersistence().clearCache(socialEquityAssetEntry);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<SocialEquityAssetEntry> findWithDynamicQuery(
65 DynamicQuery dynamicQuery) throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<SocialEquityAssetEntry> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static SocialEquityAssetEntry remove(
82 SocialEquityAssetEntry socialEquityAssetEntry)
83 throws SystemException {
84 return getPersistence().remove(socialEquityAssetEntry);
85 }
86
87
90 public static SocialEquityAssetEntry update(
91 SocialEquityAssetEntry socialEquityAssetEntry, boolean merge)
92 throws SystemException {
93 return getPersistence().update(socialEquityAssetEntry, merge);
94 }
95
96 public static void cacheResult(
97 com.liferay.portlet.social.model.SocialEquityAssetEntry socialEquityAssetEntry) {
98 getPersistence().cacheResult(socialEquityAssetEntry);
99 }
100
101 public static void cacheResult(
102 java.util.List<com.liferay.portlet.social.model.SocialEquityAssetEntry> socialEquityAssetEntries) {
103 getPersistence().cacheResult(socialEquityAssetEntries);
104 }
105
106 public static com.liferay.portlet.social.model.SocialEquityAssetEntry create(
107 long equityAssetEntryId) {
108 return getPersistence().create(equityAssetEntryId);
109 }
110
111 public static com.liferay.portlet.social.model.SocialEquityAssetEntry remove(
112 long equityAssetEntryId)
113 throws com.liferay.portal.kernel.exception.SystemException,
114 com.liferay.portlet.social.NoSuchEquityAssetEntryException {
115 return getPersistence().remove(equityAssetEntryId);
116 }
117
118 public static com.liferay.portlet.social.model.SocialEquityAssetEntry updateImpl(
119 com.liferay.portlet.social.model.SocialEquityAssetEntry socialEquityAssetEntry,
120 boolean merge)
121 throws com.liferay.portal.kernel.exception.SystemException {
122 return getPersistence().updateImpl(socialEquityAssetEntry, merge);
123 }
124
125 public static com.liferay.portlet.social.model.SocialEquityAssetEntry findByPrimaryKey(
126 long equityAssetEntryId)
127 throws com.liferay.portal.kernel.exception.SystemException,
128 com.liferay.portlet.social.NoSuchEquityAssetEntryException {
129 return getPersistence().findByPrimaryKey(equityAssetEntryId);
130 }
131
132 public static com.liferay.portlet.social.model.SocialEquityAssetEntry fetchByPrimaryKey(
133 long equityAssetEntryId)
134 throws com.liferay.portal.kernel.exception.SystemException {
135 return getPersistence().fetchByPrimaryKey(equityAssetEntryId);
136 }
137
138 public static com.liferay.portlet.social.model.SocialEquityAssetEntry findByAssetEntryId(
139 long assetEntryId)
140 throws com.liferay.portal.kernel.exception.SystemException,
141 com.liferay.portlet.social.NoSuchEquityAssetEntryException {
142 return getPersistence().findByAssetEntryId(assetEntryId);
143 }
144
145 public static com.liferay.portlet.social.model.SocialEquityAssetEntry fetchByAssetEntryId(
146 long assetEntryId)
147 throws com.liferay.portal.kernel.exception.SystemException {
148 return getPersistence().fetchByAssetEntryId(assetEntryId);
149 }
150
151 public static com.liferay.portlet.social.model.SocialEquityAssetEntry fetchByAssetEntryId(
152 long assetEntryId, boolean retrieveFromCache)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getPersistence()
155 .fetchByAssetEntryId(assetEntryId, retrieveFromCache);
156 }
157
158 public static java.util.List<com.liferay.portlet.social.model.SocialEquityAssetEntry> findAll()
159 throws com.liferay.portal.kernel.exception.SystemException {
160 return getPersistence().findAll();
161 }
162
163 public static java.util.List<com.liferay.portlet.social.model.SocialEquityAssetEntry> findAll(
164 int start, int end)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence().findAll(start, end);
167 }
168
169 public static java.util.List<com.liferay.portlet.social.model.SocialEquityAssetEntry> findAll(
170 int start, int end,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence().findAll(start, end, orderByComparator);
174 }
175
176 public static void removeByAssetEntryId(long assetEntryId)
177 throws com.liferay.portal.kernel.exception.SystemException,
178 com.liferay.portlet.social.NoSuchEquityAssetEntryException {
179 getPersistence().removeByAssetEntryId(assetEntryId);
180 }
181
182 public static void removeAll()
183 throws com.liferay.portal.kernel.exception.SystemException {
184 getPersistence().removeAll();
185 }
186
187 public static int countByAssetEntryId(long assetEntryId)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getPersistence().countByAssetEntryId(assetEntryId);
190 }
191
192 public static int countAll()
193 throws com.liferay.portal.kernel.exception.SystemException {
194 return getPersistence().countAll();
195 }
196
197 public static SocialEquityAssetEntryPersistence getPersistence() {
198 if (_persistence == null) {
199 _persistence = (SocialEquityAssetEntryPersistence)PortalBeanLocatorUtil.locate(SocialEquityAssetEntryPersistence.class.getName());
200 }
201
202 return _persistence;
203 }
204
205 public void setPersistence(SocialEquityAssetEntryPersistence persistence) {
206 _persistence = persistence;
207 }
208
209 private static SocialEquityAssetEntryPersistence _persistence;
210 }