001    /**
002     * Copyright (c) 2000-2012 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.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.expando.model.ExpandoColumn;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the expando column service. This utility wraps {@link ExpandoColumnPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see ExpandoColumnPersistence
037     * @see ExpandoColumnPersistenceImpl
038     * @generated
039     */
040    public class ExpandoColumnUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(ExpandoColumn expandoColumn) {
058                    getPersistence().clearCache(expandoColumn);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<ExpandoColumn> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<ExpandoColumn> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<ExpandoColumn> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
099             */
100            public static ExpandoColumn update(ExpandoColumn expandoColumn,
101                    boolean merge) throws SystemException {
102                    return getPersistence().update(expandoColumn, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static ExpandoColumn update(ExpandoColumn expandoColumn,
109                    boolean merge, ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(expandoColumn, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the expando column in the entity cache if it is enabled.
115            *
116            * @param expandoColumn the expando column
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn) {
120                    getPersistence().cacheResult(expandoColumn);
121            }
122    
123            /**
124            * Caches the expando columns in the entity cache if it is enabled.
125            *
126            * @param expandoColumns the expando columns
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> expandoColumns) {
130                    getPersistence().cacheResult(expandoColumns);
131            }
132    
133            /**
134            * Creates a new expando column with the primary key. Does not add the expando column to the database.
135            *
136            * @param columnId the primary key for the new expando column
137            * @return the new expando column
138            */
139            public static com.liferay.portlet.expando.model.ExpandoColumn create(
140                    long columnId) {
141                    return getPersistence().create(columnId);
142            }
143    
144            /**
145            * Removes the expando column with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param columnId the primary key of the expando column
148            * @return the expando column that was removed
149            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public static com.liferay.portlet.expando.model.ExpandoColumn remove(
153                    long columnId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.expando.NoSuchColumnException {
156                    return getPersistence().remove(columnId);
157            }
158    
159            public static com.liferay.portlet.expando.model.ExpandoColumn updateImpl(
160                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
161                    boolean merge)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().updateImpl(expandoColumn, merge);
164            }
165    
166            /**
167            * Returns the expando column with the primary key or throws a {@link com.liferay.portlet.expando.NoSuchColumnException} if it could not be found.
168            *
169            * @param columnId the primary key of the expando column
170            * @return the expando column
171            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public static com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey(
175                    long columnId)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.expando.NoSuchColumnException {
178                    return getPersistence().findByPrimaryKey(columnId);
179            }
180    
181            /**
182            * Returns the expando column with the primary key or returns <code>null</code> if it could not be found.
183            *
184            * @param columnId the primary key of the expando column
185            * @return the expando column, or <code>null</code> if a expando column with the primary key could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public static com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey(
189                    long columnId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return getPersistence().fetchByPrimaryKey(columnId);
192            }
193    
194            /**
195            * Returns all the expando columns where tableId = &#63;.
196            *
197            * @param tableId the table ID
198            * @return the matching expando columns
199            * @throws SystemException if a system exception occurred
200            */
201            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
202                    long tableId)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByTableId(tableId);
205            }
206    
207            /**
208            * Returns a range of all the expando columns where tableId = &#63;.
209            *
210            * <p>
211            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
212            * </p>
213            *
214            * @param tableId the table ID
215            * @param start the lower bound of the range of expando columns
216            * @param end the upper bound of the range of expando columns (not inclusive)
217            * @return the range of matching expando columns
218            * @throws SystemException if a system exception occurred
219            */
220            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
221                    long tableId, int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return getPersistence().findByTableId(tableId, start, end);
224            }
225    
226            /**
227            * Returns an ordered range of all the expando columns where tableId = &#63;.
228            *
229            * <p>
230            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
231            * </p>
232            *
233            * @param tableId the table ID
234            * @param start the lower bound of the range of expando columns
235            * @param end the upper bound of the range of expando columns (not inclusive)
236            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
237            * @return the ordered range of matching expando columns
238            * @throws SystemException if a system exception occurred
239            */
240            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
241                    long tableId, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence()
245                                       .findByTableId(tableId, start, end, orderByComparator);
246            }
247    
248            /**
249            * Returns the first expando column in the ordered set where tableId = &#63;.
250            *
251            * <p>
252            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
253            * </p>
254            *
255            * @param tableId the table ID
256            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
257            * @return the first matching expando column
258            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
259            * @throws SystemException if a system exception occurred
260            */
261            public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First(
262                    long tableId,
263                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264                    throws com.liferay.portal.kernel.exception.SystemException,
265                            com.liferay.portlet.expando.NoSuchColumnException {
266                    return getPersistence().findByTableId_First(tableId, orderByComparator);
267            }
268    
269            /**
270            * Returns the last expando column in the ordered set where tableId = &#63;.
271            *
272            * <p>
273            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
274            * </p>
275            *
276            * @param tableId the table ID
277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
278            * @return the last matching expando column
279            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
280            * @throws SystemException if a system exception occurred
281            */
282            public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last(
283                    long tableId,
284                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
285                    throws com.liferay.portal.kernel.exception.SystemException,
286                            com.liferay.portlet.expando.NoSuchColumnException {
287                    return getPersistence().findByTableId_Last(tableId, orderByComparator);
288            }
289    
290            /**
291            * Returns the expando columns before and after the current expando column in the ordered set where tableId = &#63;.
292            *
293            * <p>
294            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
295            * </p>
296            *
297            * @param columnId the primary key of the current expando column
298            * @param tableId the table ID
299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
300            * @return the previous, current, and next expando column
301            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public static com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext(
305                    long columnId, long tableId,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException,
308                            com.liferay.portlet.expando.NoSuchColumnException {
309                    return getPersistence()
310                                       .findByTableId_PrevAndNext(columnId, tableId,
311                            orderByComparator);
312            }
313    
314            /**
315            * Returns all the expando columns that the user has permission to view where tableId = &#63;.
316            *
317            * @param tableId the table ID
318            * @return the matching expando columns that the user has permission to view
319            * @throws SystemException if a system exception occurred
320            */
321            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId(
322                    long tableId)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    return getPersistence().filterFindByTableId(tableId);
325            }
326    
327            /**
328            * Returns a range of all the expando columns that the user has permission to view where tableId = &#63;.
329            *
330            * <p>
331            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
332            * </p>
333            *
334            * @param tableId the table ID
335            * @param start the lower bound of the range of expando columns
336            * @param end the upper bound of the range of expando columns (not inclusive)
337            * @return the range of matching expando columns that the user has permission to view
338            * @throws SystemException if a system exception occurred
339            */
340            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId(
341                    long tableId, int start, int end)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    return getPersistence().filterFindByTableId(tableId, start, end);
344            }
345    
346            /**
347            * Returns an ordered range of all the expando columns that the user has permissions to view where tableId = &#63;.
348            *
349            * <p>
350            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
351            * </p>
352            *
353            * @param tableId the table ID
354            * @param start the lower bound of the range of expando columns
355            * @param end the upper bound of the range of expando columns (not inclusive)
356            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
357            * @return the ordered range of matching expando columns that the user has permission to view
358            * @throws SystemException if a system exception occurred
359            */
360            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId(
361                    long tableId, int start, int end,
362                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return getPersistence()
365                                       .filterFindByTableId(tableId, start, end, orderByComparator);
366            }
367    
368            /**
369            * Returns the expando columns before and after the current expando column in the ordered set of expando columns that the user has permission to view where tableId = &#63;.
370            *
371            * @param columnId the primary key of the current expando column
372            * @param tableId the table ID
373            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
374            * @return the previous, current, and next expando column
375            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
376            * @throws SystemException if a system exception occurred
377            */
378            public static com.liferay.portlet.expando.model.ExpandoColumn[] filterFindByTableId_PrevAndNext(
379                    long columnId, long tableId,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException,
382                            com.liferay.portlet.expando.NoSuchColumnException {
383                    return getPersistence()
384                                       .filterFindByTableId_PrevAndNext(columnId, tableId,
385                            orderByComparator);
386            }
387    
388            /**
389            * Returns all the expando columns where tableId = &#63; and name = &#63;.
390            *
391            * @param tableId the table ID
392            * @param name the name
393            * @return the matching expando columns
394            * @throws SystemException if a system exception occurred
395            */
396            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
397                    long tableId, java.lang.String name)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return getPersistence().findByT_N(tableId, name);
400            }
401    
402            /**
403            * Returns a range of all the expando columns where tableId = &#63; and name = &#63;.
404            *
405            * <p>
406            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
407            * </p>
408            *
409            * @param tableId the table ID
410            * @param name the name
411            * @param start the lower bound of the range of expando columns
412            * @param end the upper bound of the range of expando columns (not inclusive)
413            * @return the range of matching expando columns
414            * @throws SystemException if a system exception occurred
415            */
416            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
417                    long tableId, java.lang.String name, int start, int end)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    return getPersistence().findByT_N(tableId, name, start, end);
420            }
421    
422            /**
423            * Returns an ordered range of all the expando columns where tableId = &#63; and name = &#63;.
424            *
425            * <p>
426            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
427            * </p>
428            *
429            * @param tableId the table ID
430            * @param name the name
431            * @param start the lower bound of the range of expando columns
432            * @param end the upper bound of the range of expando columns (not inclusive)
433            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
434            * @return the ordered range of matching expando columns
435            * @throws SystemException if a system exception occurred
436            */
437            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
438                    long tableId, java.lang.String name, int start, int end,
439                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
440                    throws com.liferay.portal.kernel.exception.SystemException {
441                    return getPersistence()
442                                       .findByT_N(tableId, name, start, end, orderByComparator);
443            }
444    
445            /**
446            * Returns the first expando column in the ordered set where tableId = &#63; and name = &#63;.
447            *
448            * <p>
449            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
450            * </p>
451            *
452            * @param tableId the table ID
453            * @param name the name
454            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
455            * @return the first matching expando column
456            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
457            * @throws SystemException if a system exception occurred
458            */
459            public static com.liferay.portlet.expando.model.ExpandoColumn findByT_N_First(
460                    long tableId, java.lang.String name,
461                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
462                    throws com.liferay.portal.kernel.exception.SystemException,
463                            com.liferay.portlet.expando.NoSuchColumnException {
464                    return getPersistence().findByT_N_First(tableId, name, orderByComparator);
465            }
466    
467            /**
468            * Returns the last expando column in the ordered set where tableId = &#63; and name = &#63;.
469            *
470            * <p>
471            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
472            * </p>
473            *
474            * @param tableId the table ID
475            * @param name the name
476            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
477            * @return the last matching expando column
478            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
479            * @throws SystemException if a system exception occurred
480            */
481            public static com.liferay.portlet.expando.model.ExpandoColumn findByT_N_Last(
482                    long tableId, java.lang.String name,
483                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
484                    throws com.liferay.portal.kernel.exception.SystemException,
485                            com.liferay.portlet.expando.NoSuchColumnException {
486                    return getPersistence().findByT_N_Last(tableId, name, orderByComparator);
487            }
488    
489            /**
490            * Returns the expando columns before and after the current expando column in the ordered set where tableId = &#63; and name = &#63;.
491            *
492            * <p>
493            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
494            * </p>
495            *
496            * @param columnId the primary key of the current expando column
497            * @param tableId the table ID
498            * @param name the name
499            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
500            * @return the previous, current, and next expando column
501            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
502            * @throws SystemException if a system exception occurred
503            */
504            public static com.liferay.portlet.expando.model.ExpandoColumn[] findByT_N_PrevAndNext(
505                    long columnId, long tableId, java.lang.String name,
506                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
507                    throws com.liferay.portal.kernel.exception.SystemException,
508                            com.liferay.portlet.expando.NoSuchColumnException {
509                    return getPersistence()
510                                       .findByT_N_PrevAndNext(columnId, tableId, name,
511                            orderByComparator);
512            }
513    
514            /**
515            * Returns all the expando columns where tableId = &#63; and name = any &#63;.
516            *
517            * <p>
518            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
519            * </p>
520            *
521            * @param tableId the table ID
522            * @param names the names
523            * @return the matching expando columns
524            * @throws SystemException if a system exception occurred
525            */
526            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
527                    long tableId, java.lang.String[] names)
528                    throws com.liferay.portal.kernel.exception.SystemException {
529                    return getPersistence().findByT_N(tableId, names);
530            }
531    
532            /**
533            * Returns a range of all the expando columns where tableId = &#63; and name = any &#63;.
534            *
535            * <p>
536            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
537            * </p>
538            *
539            * @param tableId the table ID
540            * @param names the names
541            * @param start the lower bound of the range of expando columns
542            * @param end the upper bound of the range of expando columns (not inclusive)
543            * @return the range of matching expando columns
544            * @throws SystemException if a system exception occurred
545            */
546            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
547                    long tableId, java.lang.String[] names, int start, int end)
548                    throws com.liferay.portal.kernel.exception.SystemException {
549                    return getPersistence().findByT_N(tableId, names, start, end);
550            }
551    
552            /**
553            * Returns an ordered range of all the expando columns where tableId = &#63; and name = any &#63;.
554            *
555            * <p>
556            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
557            * </p>
558            *
559            * @param tableId the table ID
560            * @param names the names
561            * @param start the lower bound of the range of expando columns
562            * @param end the upper bound of the range of expando columns (not inclusive)
563            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
564            * @return the ordered range of matching expando columns
565            * @throws SystemException if a system exception occurred
566            */
567            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
568                    long tableId, java.lang.String[] names, int start, int end,
569                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
570                    throws com.liferay.portal.kernel.exception.SystemException {
571                    return getPersistence()
572                                       .findByT_N(tableId, names, start, end, orderByComparator);
573            }
574    
575            /**
576            * Returns all the expando columns that the user has permission to view where tableId = &#63; and name = &#63;.
577            *
578            * @param tableId the table ID
579            * @param name the name
580            * @return the matching expando columns that the user has permission to view
581            * @throws SystemException if a system exception occurred
582            */
583            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
584                    long tableId, java.lang.String name)
585                    throws com.liferay.portal.kernel.exception.SystemException {
586                    return getPersistence().filterFindByT_N(tableId, name);
587            }
588    
589            /**
590            * Returns a range of all the expando columns that the user has permission to view where tableId = &#63; and name = &#63;.
591            *
592            * <p>
593            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
594            * </p>
595            *
596            * @param tableId the table ID
597            * @param name the name
598            * @param start the lower bound of the range of expando columns
599            * @param end the upper bound of the range of expando columns (not inclusive)
600            * @return the range of matching expando columns that the user has permission to view
601            * @throws SystemException if a system exception occurred
602            */
603            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
604                    long tableId, java.lang.String name, int start, int end)
605                    throws com.liferay.portal.kernel.exception.SystemException {
606                    return getPersistence().filterFindByT_N(tableId, name, start, end);
607            }
608    
609            /**
610            * Returns an ordered range of all the expando columns that the user has permissions to view where tableId = &#63; and name = &#63;.
611            *
612            * <p>
613            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
614            * </p>
615            *
616            * @param tableId the table ID
617            * @param name the name
618            * @param start the lower bound of the range of expando columns
619            * @param end the upper bound of the range of expando columns (not inclusive)
620            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
621            * @return the ordered range of matching expando columns that the user has permission to view
622            * @throws SystemException if a system exception occurred
623            */
624            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
625                    long tableId, java.lang.String name, int start, int end,
626                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
627                    throws com.liferay.portal.kernel.exception.SystemException {
628                    return getPersistence()
629                                       .filterFindByT_N(tableId, name, start, end, orderByComparator);
630            }
631    
632            /**
633            * Returns the expando columns before and after the current expando column in the ordered set of expando columns that the user has permission to view where tableId = &#63; and name = &#63;.
634            *
635            * @param columnId the primary key of the current expando column
636            * @param tableId the table ID
637            * @param name the name
638            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
639            * @return the previous, current, and next expando column
640            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
641            * @throws SystemException if a system exception occurred
642            */
643            public static com.liferay.portlet.expando.model.ExpandoColumn[] filterFindByT_N_PrevAndNext(
644                    long columnId, long tableId, java.lang.String name,
645                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
646                    throws com.liferay.portal.kernel.exception.SystemException,
647                            com.liferay.portlet.expando.NoSuchColumnException {
648                    return getPersistence()
649                                       .filterFindByT_N_PrevAndNext(columnId, tableId, name,
650                            orderByComparator);
651            }
652    
653            /**
654            * Returns all the expando columns that the user has permission to view where tableId = &#63; and name = any &#63;.
655            *
656            * @param tableId the table ID
657            * @param names the names
658            * @return the matching expando columns that the user has permission to view
659            * @throws SystemException if a system exception occurred
660            */
661            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
662                    long tableId, java.lang.String[] names)
663                    throws com.liferay.portal.kernel.exception.SystemException {
664                    return getPersistence().filterFindByT_N(tableId, names);
665            }
666    
667            /**
668            * Returns a range of all the expando columns that the user has permission to view where tableId = &#63; and name = any &#63;.
669            *
670            * <p>
671            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
672            * </p>
673            *
674            * @param tableId the table ID
675            * @param names the names
676            * @param start the lower bound of the range of expando columns
677            * @param end the upper bound of the range of expando columns (not inclusive)
678            * @return the range of matching expando columns that the user has permission to view
679            * @throws SystemException if a system exception occurred
680            */
681            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
682                    long tableId, java.lang.String[] names, int start, int end)
683                    throws com.liferay.portal.kernel.exception.SystemException {
684                    return getPersistence().filterFindByT_N(tableId, names, start, end);
685            }
686    
687            /**
688            * Returns an ordered range of all the expando columns that the user has permission to view where tableId = &#63; and name = any &#63;.
689            *
690            * <p>
691            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
692            * </p>
693            *
694            * @param tableId the table ID
695            * @param names the names
696            * @param start the lower bound of the range of expando columns
697            * @param end the upper bound of the range of expando columns (not inclusive)
698            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
699            * @return the ordered range of matching expando columns that the user has permission to view
700            * @throws SystemException if a system exception occurred
701            */
702            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
703                    long tableId, java.lang.String[] names, int start, int end,
704                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
705                    throws com.liferay.portal.kernel.exception.SystemException {
706                    return getPersistence()
707                                       .filterFindByT_N(tableId, names, start, end,
708                            orderByComparator);
709            }
710    
711            /**
712            * Returns all the expando columns.
713            *
714            * @return the expando columns
715            * @throws SystemException if a system exception occurred
716            */
717            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll()
718                    throws com.liferay.portal.kernel.exception.SystemException {
719                    return getPersistence().findAll();
720            }
721    
722            /**
723            * Returns a range of all the expando columns.
724            *
725            * <p>
726            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
727            * </p>
728            *
729            * @param start the lower bound of the range of expando columns
730            * @param end the upper bound of the range of expando columns (not inclusive)
731            * @return the range of expando columns
732            * @throws SystemException if a system exception occurred
733            */
734            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
735                    int start, int end)
736                    throws com.liferay.portal.kernel.exception.SystemException {
737                    return getPersistence().findAll(start, end);
738            }
739    
740            /**
741            * Returns an ordered range of all the expando columns.
742            *
743            * <p>
744            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
745            * </p>
746            *
747            * @param start the lower bound of the range of expando columns
748            * @param end the upper bound of the range of expando columns (not inclusive)
749            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
750            * @return the ordered range of expando columns
751            * @throws SystemException if a system exception occurred
752            */
753            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
754                    int start, int end,
755                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
756                    throws com.liferay.portal.kernel.exception.SystemException {
757                    return getPersistence().findAll(start, end, orderByComparator);
758            }
759    
760            /**
761            * Removes all the expando columns where tableId = &#63; from the database.
762            *
763            * @param tableId the table ID
764            * @throws SystemException if a system exception occurred
765            */
766            public static void removeByTableId(long tableId)
767                    throws com.liferay.portal.kernel.exception.SystemException {
768                    getPersistence().removeByTableId(tableId);
769            }
770    
771            /**
772            * Removes all the expando columns where tableId = &#63; and name = &#63; from the database.
773            *
774            * @param tableId the table ID
775            * @param name the name
776            * @throws SystemException if a system exception occurred
777            */
778            public static void removeByT_N(long tableId, java.lang.String name)
779                    throws com.liferay.portal.kernel.exception.SystemException {
780                    getPersistence().removeByT_N(tableId, name);
781            }
782    
783            /**
784            * Removes all the expando columns from the database.
785            *
786            * @throws SystemException if a system exception occurred
787            */
788            public static void removeAll()
789                    throws com.liferay.portal.kernel.exception.SystemException {
790                    getPersistence().removeAll();
791            }
792    
793            /**
794            * Returns the number of expando columns where tableId = &#63;.
795            *
796            * @param tableId the table ID
797            * @return the number of matching expando columns
798            * @throws SystemException if a system exception occurred
799            */
800            public static int countByTableId(long tableId)
801                    throws com.liferay.portal.kernel.exception.SystemException {
802                    return getPersistence().countByTableId(tableId);
803            }
804    
805            /**
806            * Returns the number of expando columns that the user has permission to view where tableId = &#63;.
807            *
808            * @param tableId the table ID
809            * @return the number of matching expando columns that the user has permission to view
810            * @throws SystemException if a system exception occurred
811            */
812            public static int filterCountByTableId(long tableId)
813                    throws com.liferay.portal.kernel.exception.SystemException {
814                    return getPersistence().filterCountByTableId(tableId);
815            }
816    
817            /**
818            * Returns the number of expando columns where tableId = &#63; and name = &#63;.
819            *
820            * @param tableId the table ID
821            * @param name the name
822            * @return the number of matching expando columns
823            * @throws SystemException if a system exception occurred
824            */
825            public static int countByT_N(long tableId, java.lang.String name)
826                    throws com.liferay.portal.kernel.exception.SystemException {
827                    return getPersistence().countByT_N(tableId, name);
828            }
829    
830            /**
831            * Returns the number of expando columns where tableId = &#63; and name = any &#63;.
832            *
833            * @param tableId the table ID
834            * @param names the names
835            * @return the number of matching expando columns
836            * @throws SystemException if a system exception occurred
837            */
838            public static int countByT_N(long tableId, java.lang.String[] names)
839                    throws com.liferay.portal.kernel.exception.SystemException {
840                    return getPersistence().countByT_N(tableId, names);
841            }
842    
843            /**
844            * Returns the number of expando columns that the user has permission to view where tableId = &#63; and name = &#63;.
845            *
846            * @param tableId the table ID
847            * @param name the name
848            * @return the number of matching expando columns that the user has permission to view
849            * @throws SystemException if a system exception occurred
850            */
851            public static int filterCountByT_N(long tableId, java.lang.String name)
852                    throws com.liferay.portal.kernel.exception.SystemException {
853                    return getPersistence().filterCountByT_N(tableId, name);
854            }
855    
856            /**
857            * Returns the number of expando columns that the user has permission to view where tableId = &#63; and name = any &#63;.
858            *
859            * @param tableId the table ID
860            * @param names the names
861            * @return the number of matching expando columns that the user has permission to view
862            * @throws SystemException if a system exception occurred
863            */
864            public static int filterCountByT_N(long tableId, java.lang.String[] names)
865                    throws com.liferay.portal.kernel.exception.SystemException {
866                    return getPersistence().filterCountByT_N(tableId, names);
867            }
868    
869            /**
870            * Returns the number of expando columns.
871            *
872            * @return the number of expando columns
873            * @throws SystemException if a system exception occurred
874            */
875            public static int countAll()
876                    throws com.liferay.portal.kernel.exception.SystemException {
877                    return getPersistence().countAll();
878            }
879    
880            public static ExpandoColumnPersistence getPersistence() {
881                    if (_persistence == null) {
882                            _persistence = (ExpandoColumnPersistence)PortalBeanLocatorUtil.locate(ExpandoColumnPersistence.class.getName());
883    
884                            ReferenceRegistry.registerReference(ExpandoColumnUtil.class,
885                                    "_persistence");
886                    }
887    
888                    return _persistence;
889            }
890    
891            public void setPersistence(ExpandoColumnPersistence persistence) {
892                    _persistence = persistence;
893    
894                    ReferenceRegistry.registerReference(ExpandoColumnUtil.class,
895                            "_persistence");
896            }
897    
898            private static ExpandoColumnPersistence _persistence;
899    }