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.shopping.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.shopping.model.ShoppingItemField;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       ShoppingItemFieldPersistence
030     * @see       ShoppingItemFieldPersistenceImpl
031     * @generated
032     */
033    public class ShoppingItemFieldUtil {
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(ShoppingItemField shoppingItemField) {
045                    getPersistence().clearCache(shoppingItemField);
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<ShoppingItemField> 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<ShoppingItemField> 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<ShoppingItemField> 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 ShoppingItemField remove(ShoppingItemField shoppingItemField)
088                    throws SystemException {
089                    return getPersistence().remove(shoppingItemField);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static ShoppingItemField update(
096                    ShoppingItemField shoppingItemField, boolean merge)
097                    throws SystemException {
098                    return getPersistence().update(shoppingItemField, merge);
099            }
100    
101            /**
102             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
103             */
104            public static ShoppingItemField update(
105                    ShoppingItemField shoppingItemField, boolean merge,
106                    ServiceContext serviceContext) throws SystemException {
107                    return getPersistence().update(shoppingItemField, merge, serviceContext);
108            }
109    
110            public static void cacheResult(
111                    com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField) {
112                    getPersistence().cacheResult(shoppingItemField);
113            }
114    
115            public static void cacheResult(
116                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> shoppingItemFields) {
117                    getPersistence().cacheResult(shoppingItemFields);
118            }
119    
120            public static com.liferay.portlet.shopping.model.ShoppingItemField create(
121                    long itemFieldId) {
122                    return getPersistence().create(itemFieldId);
123            }
124    
125            public static com.liferay.portlet.shopping.model.ShoppingItemField remove(
126                    long itemFieldId)
127                    throws com.liferay.portal.kernel.exception.SystemException,
128                            com.liferay.portlet.shopping.NoSuchItemFieldException {
129                    return getPersistence().remove(itemFieldId);
130            }
131    
132            public static com.liferay.portlet.shopping.model.ShoppingItemField updateImpl(
133                    com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField,
134                    boolean merge)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return getPersistence().updateImpl(shoppingItemField, merge);
137            }
138    
139            public static com.liferay.portlet.shopping.model.ShoppingItemField findByPrimaryKey(
140                    long itemFieldId)
141                    throws com.liferay.portal.kernel.exception.SystemException,
142                            com.liferay.portlet.shopping.NoSuchItemFieldException {
143                    return getPersistence().findByPrimaryKey(itemFieldId);
144            }
145    
146            public static com.liferay.portlet.shopping.model.ShoppingItemField fetchByPrimaryKey(
147                    long itemFieldId)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return getPersistence().fetchByPrimaryKey(itemFieldId);
150            }
151    
152            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findByItemId(
153                    long itemId) throws com.liferay.portal.kernel.exception.SystemException {
154                    return getPersistence().findByItemId(itemId);
155            }
156    
157            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findByItemId(
158                    long itemId, int start, int end)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return getPersistence().findByItemId(itemId, start, end);
161            }
162    
163            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findByItemId(
164                    long itemId, int start, int end,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException {
167                    return getPersistence()
168                                       .findByItemId(itemId, start, end, orderByComparator);
169            }
170    
171            public static com.liferay.portlet.shopping.model.ShoppingItemField findByItemId_First(
172                    long itemId,
173                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174                    throws com.liferay.portal.kernel.exception.SystemException,
175                            com.liferay.portlet.shopping.NoSuchItemFieldException {
176                    return getPersistence().findByItemId_First(itemId, orderByComparator);
177            }
178    
179            public static com.liferay.portlet.shopping.model.ShoppingItemField findByItemId_Last(
180                    long itemId,
181                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182                    throws com.liferay.portal.kernel.exception.SystemException,
183                            com.liferay.portlet.shopping.NoSuchItemFieldException {
184                    return getPersistence().findByItemId_Last(itemId, orderByComparator);
185            }
186    
187            public static com.liferay.portlet.shopping.model.ShoppingItemField[] findByItemId_PrevAndNext(
188                    long itemFieldId, long itemId,
189                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190                    throws com.liferay.portal.kernel.exception.SystemException,
191                            com.liferay.portlet.shopping.NoSuchItemFieldException {
192                    return getPersistence()
193                                       .findByItemId_PrevAndNext(itemFieldId, itemId,
194                            orderByComparator);
195            }
196    
197            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findAll()
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return getPersistence().findAll();
200            }
201    
202            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findAll(
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getPersistence().findAll(start, end);
206            }
207    
208            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findAll(
209                    int start, int end,
210                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence().findAll(start, end, orderByComparator);
213            }
214    
215            public static void removeByItemId(long itemId)
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    getPersistence().removeByItemId(itemId);
218            }
219    
220            public static void removeAll()
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    getPersistence().removeAll();
223            }
224    
225            public static int countByItemId(long itemId)
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return getPersistence().countByItemId(itemId);
228            }
229    
230            public static int countAll()
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return getPersistence().countAll();
233            }
234    
235            public static ShoppingItemFieldPersistence getPersistence() {
236                    if (_persistence == null) {
237                            _persistence = (ShoppingItemFieldPersistence)PortalBeanLocatorUtil.locate(ShoppingItemFieldPersistence.class.getName());
238                    }
239    
240                    return _persistence;
241            }
242    
243            public void setPersistence(ShoppingItemFieldPersistence persistence) {
244                    _persistence = persistence;
245            }
246    
247            private static ShoppingItemFieldPersistence _persistence;
248    }