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.expando.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.expando.model.ExpandoColumn;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       ExpandoColumnPersistence
030     * @see       ExpandoColumnPersistenceImpl
031     * @generated
032     */
033    public class ExpandoColumnUtil {
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(ExpandoColumn expandoColumn) {
045                    getPersistence().clearCache(expandoColumn);
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<ExpandoColumn> 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<ExpandoColumn> 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<ExpandoColumn> 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 ExpandoColumn remove(ExpandoColumn expandoColumn)
088                    throws SystemException {
089                    return getPersistence().remove(expandoColumn);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static ExpandoColumn update(ExpandoColumn expandoColumn,
096                    boolean merge) throws SystemException {
097                    return getPersistence().update(expandoColumn, merge);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
102             */
103            public static ExpandoColumn update(ExpandoColumn expandoColumn,
104                    boolean merge, ServiceContext serviceContext) throws SystemException {
105                    return getPersistence().update(expandoColumn, merge, serviceContext);
106            }
107    
108            public static void cacheResult(
109                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn) {
110                    getPersistence().cacheResult(expandoColumn);
111            }
112    
113            public static void cacheResult(
114                    java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> expandoColumns) {
115                    getPersistence().cacheResult(expandoColumns);
116            }
117    
118            public static com.liferay.portlet.expando.model.ExpandoColumn create(
119                    long columnId) {
120                    return getPersistence().create(columnId);
121            }
122    
123            public static com.liferay.portlet.expando.model.ExpandoColumn remove(
124                    long columnId)
125                    throws com.liferay.portal.kernel.exception.SystemException,
126                            com.liferay.portlet.expando.NoSuchColumnException {
127                    return getPersistence().remove(columnId);
128            }
129    
130            public static com.liferay.portlet.expando.model.ExpandoColumn updateImpl(
131                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
132                    boolean merge)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return getPersistence().updateImpl(expandoColumn, merge);
135            }
136    
137            public static com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey(
138                    long columnId)
139                    throws com.liferay.portal.kernel.exception.SystemException,
140                            com.liferay.portlet.expando.NoSuchColumnException {
141                    return getPersistence().findByPrimaryKey(columnId);
142            }
143    
144            public static com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey(
145                    long columnId)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return getPersistence().fetchByPrimaryKey(columnId);
148            }
149    
150            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
151                    long tableId)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return getPersistence().findByTableId(tableId);
154            }
155    
156            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
157                    long tableId, int start, int end)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return getPersistence().findByTableId(tableId, start, end);
160            }
161    
162            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
163                    long tableId, int start, int end,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence()
167                                       .findByTableId(tableId, start, end, orderByComparator);
168            }
169    
170            public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First(
171                    long tableId,
172                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173                    throws com.liferay.portal.kernel.exception.SystemException,
174                            com.liferay.portlet.expando.NoSuchColumnException {
175                    return getPersistence().findByTableId_First(tableId, orderByComparator);
176            }
177    
178            public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last(
179                    long tableId,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.kernel.exception.SystemException,
182                            com.liferay.portlet.expando.NoSuchColumnException {
183                    return getPersistence().findByTableId_Last(tableId, orderByComparator);
184            }
185    
186            public static com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext(
187                    long columnId, long tableId,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.expando.NoSuchColumnException {
191                    return getPersistence()
192                                       .findByTableId_PrevAndNext(columnId, tableId,
193                            orderByComparator);
194            }
195    
196            public static com.liferay.portlet.expando.model.ExpandoColumn findByT_N(
197                    long tableId, java.lang.String name)
198                    throws com.liferay.portal.kernel.exception.SystemException,
199                            com.liferay.portlet.expando.NoSuchColumnException {
200                    return getPersistence().findByT_N(tableId, name);
201            }
202    
203            public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
204                    long tableId, java.lang.String name)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return getPersistence().fetchByT_N(tableId, name);
207            }
208    
209            public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
210                    long tableId, java.lang.String name, boolean retrieveFromCache)
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence().fetchByT_N(tableId, name, retrieveFromCache);
213            }
214    
215            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll()
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return getPersistence().findAll();
218            }
219    
220            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
221                    int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return getPersistence().findAll(start, end);
224            }
225    
226            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
227                    int start, int end,
228                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return getPersistence().findAll(start, end, orderByComparator);
231            }
232    
233            public static void removeByTableId(long tableId)
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    getPersistence().removeByTableId(tableId);
236            }
237    
238            public static void removeByT_N(long tableId, java.lang.String name)
239                    throws com.liferay.portal.kernel.exception.SystemException,
240                            com.liferay.portlet.expando.NoSuchColumnException {
241                    getPersistence().removeByT_N(tableId, name);
242            }
243    
244            public static void removeAll()
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    getPersistence().removeAll();
247            }
248    
249            public static int countByTableId(long tableId)
250                    throws com.liferay.portal.kernel.exception.SystemException {
251                    return getPersistence().countByTableId(tableId);
252            }
253    
254            public static int countByT_N(long tableId, java.lang.String name)
255                    throws com.liferay.portal.kernel.exception.SystemException {
256                    return getPersistence().countByT_N(tableId, name);
257            }
258    
259            public static int countAll()
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return getPersistence().countAll();
262            }
263    
264            public static ExpandoColumnPersistence getPersistence() {
265                    if (_persistence == null) {
266                            _persistence = (ExpandoColumnPersistence)PortalBeanLocatorUtil.locate(ExpandoColumnPersistence.class.getName());
267                    }
268    
269                    return _persistence;
270            }
271    
272            public void setPersistence(ExpandoColumnPersistence persistence) {
273                    _persistence = persistence;
274            }
275    
276            private static ExpandoColumnPersistence _persistence;
277    }