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.SocialEquityHistory;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="SocialEquityHistoryUtil.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       SocialEquityHistoryPersistence
35   * @see       SocialEquityHistoryPersistenceImpl
36   * @generated
37   */
38  public class SocialEquityHistoryUtil {
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(SocialEquityHistory)
48       */
49      public static void clearCache(SocialEquityHistory socialEquityHistory) {
50          getPersistence().clearCache(socialEquityHistory);
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<SocialEquityHistory> 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<SocialEquityHistory> 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 SocialEquityHistory remove(
82          SocialEquityHistory socialEquityHistory) throws SystemException {
83          return getPersistence().remove(socialEquityHistory);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static SocialEquityHistory update(
90          SocialEquityHistory socialEquityHistory, boolean merge)
91          throws SystemException {
92          return getPersistence().update(socialEquityHistory, merge);
93      }
94  
95      public static void cacheResult(
96          com.liferay.portlet.social.model.SocialEquityHistory socialEquityHistory) {
97          getPersistence().cacheResult(socialEquityHistory);
98      }
99  
100     public static void cacheResult(
101         java.util.List<com.liferay.portlet.social.model.SocialEquityHistory> socialEquityHistories) {
102         getPersistence().cacheResult(socialEquityHistories);
103     }
104 
105     public static com.liferay.portlet.social.model.SocialEquityHistory create(
106         long equityHistoryId) {
107         return getPersistence().create(equityHistoryId);
108     }
109 
110     public static com.liferay.portlet.social.model.SocialEquityHistory remove(
111         long equityHistoryId)
112         throws com.liferay.portal.kernel.exception.SystemException,
113             com.liferay.portlet.social.NoSuchEquityHistoryException {
114         return getPersistence().remove(equityHistoryId);
115     }
116 
117     public static com.liferay.portlet.social.model.SocialEquityHistory updateImpl(
118         com.liferay.portlet.social.model.SocialEquityHistory socialEquityHistory,
119         boolean merge)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getPersistence().updateImpl(socialEquityHistory, merge);
122     }
123 
124     public static com.liferay.portlet.social.model.SocialEquityHistory findByPrimaryKey(
125         long equityHistoryId)
126         throws com.liferay.portal.kernel.exception.SystemException,
127             com.liferay.portlet.social.NoSuchEquityHistoryException {
128         return getPersistence().findByPrimaryKey(equityHistoryId);
129     }
130 
131     public static com.liferay.portlet.social.model.SocialEquityHistory fetchByPrimaryKey(
132         long equityHistoryId)
133         throws com.liferay.portal.kernel.exception.SystemException {
134         return getPersistence().fetchByPrimaryKey(equityHistoryId);
135     }
136 
137     public static java.util.List<com.liferay.portlet.social.model.SocialEquityHistory> findAll()
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence().findAll();
140     }
141 
142     public static java.util.List<com.liferay.portlet.social.model.SocialEquityHistory> findAll(
143         int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence().findAll(start, end);
146     }
147 
148     public static java.util.List<com.liferay.portlet.social.model.SocialEquityHistory> findAll(
149         int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence().findAll(start, end, orderByComparator);
153     }
154 
155     public static void removeAll()
156         throws com.liferay.portal.kernel.exception.SystemException {
157         getPersistence().removeAll();
158     }
159 
160     public static int countAll()
161         throws com.liferay.portal.kernel.exception.SystemException {
162         return getPersistence().countAll();
163     }
164 
165     public static SocialEquityHistoryPersistence getPersistence() {
166         if (_persistence == null) {
167             _persistence = (SocialEquityHistoryPersistence)PortalBeanLocatorUtil.locate(SocialEquityHistoryPersistence.class.getName());
168         }
169 
170         return _persistence;
171     }
172 
173     public void setPersistence(SocialEquityHistoryPersistence persistence) {
174         _persistence = persistence;
175     }
176 
177     private static SocialEquityHistoryPersistence _persistence;
178 }