1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
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  /**
26   * <a href="SocialEquityAssetEntryUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       SocialEquityAssetEntryPersistence
35   * @see       SocialEquityAssetEntryPersistenceImpl
36   * @generated
37   */
38  public class SocialEquityAssetEntryUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(SocialEquityAssetEntry)
48       */
49      public static void clearCache(SocialEquityAssetEntry socialEquityAssetEntry) {
50          getPersistence().clearCache(socialEquityAssetEntry);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<SocialEquityAssetEntry> findWithDynamicQuery(
65          DynamicQuery dynamicQuery) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
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      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
80       */
81      public static SocialEquityAssetEntry remove(
82          SocialEquityAssetEntry socialEquityAssetEntry)
83          throws SystemException {
84          return getPersistence().remove(socialEquityAssetEntry);
85      }
86  
87      /**
88       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
89       */
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 }