001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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.SocialEquityHistory;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       SocialEquityHistoryPersistence
030     * @see       SocialEquityHistoryPersistenceImpl
031     * @generated
032     */
033    public class SocialEquityHistoryUtil {
034            /**
035             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
036             */
037            public static void clearCache() {
038                    getPersistence().clearCache();
039            }
040    
041            /**
042             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
043             */
044            public static void clearCache(SocialEquityHistory socialEquityHistory) {
045                    getPersistence().clearCache(socialEquityHistory);
046            }
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
050             */
051            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052                    throws SystemException {
053                    return getPersistence().countWithDynamicQuery(dynamicQuery);
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
058             */
059            public static List<SocialEquityHistory> findWithDynamicQuery(
060                    DynamicQuery dynamicQuery) throws SystemException {
061                    return getPersistence().findWithDynamicQuery(dynamicQuery);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
066             */
067            public static List<SocialEquityHistory> findWithDynamicQuery(
068                    DynamicQuery dynamicQuery, int start, int end)
069                    throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
075             */
076            public static List<SocialEquityHistory> 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            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static SocialEquityHistory remove(
088                    SocialEquityHistory socialEquityHistory) throws SystemException {
089                    return getPersistence().remove(socialEquityHistory);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static SocialEquityHistory update(
096                    SocialEquityHistory socialEquityHistory, boolean merge)
097                    throws SystemException {
098                    return getPersistence().update(socialEquityHistory, merge);
099            }
100    
101            /**
102             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
103             */
104            public static SocialEquityHistory update(
105                    SocialEquityHistory socialEquityHistory, boolean merge,
106                    ServiceContext serviceContext) throws SystemException {
107                    return getPersistence()
108                                       .update(socialEquityHistory, merge, serviceContext);
109            }
110    
111            public static void cacheResult(
112                    com.liferay.portlet.social.model.SocialEquityHistory socialEquityHistory) {
113                    getPersistence().cacheResult(socialEquityHistory);
114            }
115    
116            public static void cacheResult(
117                    java.util.List<com.liferay.portlet.social.model.SocialEquityHistory> socialEquityHistories) {
118                    getPersistence().cacheResult(socialEquityHistories);
119            }
120    
121            public static com.liferay.portlet.social.model.SocialEquityHistory create(
122                    long equityHistoryId) {
123                    return getPersistence().create(equityHistoryId);
124            }
125    
126            public static com.liferay.portlet.social.model.SocialEquityHistory remove(
127                    long equityHistoryId)
128                    throws com.liferay.portal.kernel.exception.SystemException,
129                            com.liferay.portlet.social.NoSuchEquityHistoryException {
130                    return getPersistence().remove(equityHistoryId);
131            }
132    
133            public static com.liferay.portlet.social.model.SocialEquityHistory updateImpl(
134                    com.liferay.portlet.social.model.SocialEquityHistory socialEquityHistory,
135                    boolean merge)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return getPersistence().updateImpl(socialEquityHistory, merge);
138            }
139    
140            public static com.liferay.portlet.social.model.SocialEquityHistory findByPrimaryKey(
141                    long equityHistoryId)
142                    throws com.liferay.portal.kernel.exception.SystemException,
143                            com.liferay.portlet.social.NoSuchEquityHistoryException {
144                    return getPersistence().findByPrimaryKey(equityHistoryId);
145            }
146    
147            public static com.liferay.portlet.social.model.SocialEquityHistory fetchByPrimaryKey(
148                    long equityHistoryId)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getPersistence().fetchByPrimaryKey(equityHistoryId);
151            }
152    
153            public static java.util.List<com.liferay.portlet.social.model.SocialEquityHistory> findAll()
154                    throws com.liferay.portal.kernel.exception.SystemException {
155                    return getPersistence().findAll();
156            }
157    
158            public static java.util.List<com.liferay.portlet.social.model.SocialEquityHistory> findAll(
159                    int start, int end)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return getPersistence().findAll(start, end);
162            }
163    
164            public static java.util.List<com.liferay.portlet.social.model.SocialEquityHistory> findAll(
165                    int start, int end,
166                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    return getPersistence().findAll(start, end, orderByComparator);
169            }
170    
171            public static void removeAll()
172                    throws com.liferay.portal.kernel.exception.SystemException {
173                    getPersistence().removeAll();
174            }
175    
176            public static int countAll()
177                    throws com.liferay.portal.kernel.exception.SystemException {
178                    return getPersistence().countAll();
179            }
180    
181            public static SocialEquityHistoryPersistence getPersistence() {
182                    if (_persistence == null) {
183                            _persistence = (SocialEquityHistoryPersistence)PortalBeanLocatorUtil.locate(SocialEquityHistoryPersistence.class.getName());
184                    }
185    
186                    return _persistence;
187            }
188    
189            public void setPersistence(SocialEquityHistoryPersistence persistence) {
190                    _persistence = persistence;
191            }
192    
193            private static SocialEquityHistoryPersistence _persistence;
194    }