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.SocialEquityAssetEntry;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       SocialEquityAssetEntryPersistence
030     * @see       SocialEquityAssetEntryPersistenceImpl
031     * @generated
032     */
033    public class SocialEquityAssetEntryUtil {
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(SocialEquityAssetEntry socialEquityAssetEntry) {
045                    getPersistence().clearCache(socialEquityAssetEntry);
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<SocialEquityAssetEntry> 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<SocialEquityAssetEntry> 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<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            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static SocialEquityAssetEntry remove(
088                    SocialEquityAssetEntry socialEquityAssetEntry)
089                    throws SystemException {
090                    return getPersistence().remove(socialEquityAssetEntry);
091            }
092    
093            /**
094             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
095             */
096            public static SocialEquityAssetEntry update(
097                    SocialEquityAssetEntry socialEquityAssetEntry, boolean merge)
098                    throws SystemException {
099                    return getPersistence().update(socialEquityAssetEntry, merge);
100            }
101    
102            /**
103             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
104             */
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    }