001    /**
002     * Copyright (c) 2000-2013 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            * @param tableId the table ID
252            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
253            * @return the first matching expando column
254            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
255            * @throws SystemException if a system exception occurred
256            */
257            public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First(
258                    long tableId,
259                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260                    throws com.liferay.portal.kernel.exception.SystemException,
261                            com.liferay.portlet.expando.NoSuchColumnException {
262                    return getPersistence().findByTableId_First(tableId, orderByComparator);
263            }
264    
265            /**
266            * Returns the first expando column in the ordered set where tableId = &#63;.
267            *
268            * @param tableId the table ID
269            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
270            * @return the first matching expando column, or <code>null</code> if a matching expando column could not be found
271            * @throws SystemException if a system exception occurred
272            */
273            public static com.liferay.portlet.expando.model.ExpandoColumn fetchByTableId_First(
274                    long tableId,
275                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    return getPersistence().fetchByTableId_First(tableId, orderByComparator);
278            }
279    
280            /**
281            * Returns the last expando column in the ordered set where tableId = &#63;.
282            *
283            * @param tableId the table ID
284            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
285            * @return the last matching expando column
286            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
287            * @throws SystemException if a system exception occurred
288            */
289            public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last(
290                    long tableId,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException,
293                            com.liferay.portlet.expando.NoSuchColumnException {
294                    return getPersistence().findByTableId_Last(tableId, orderByComparator);
295            }
296    
297            /**
298            * Returns the last expando column in the ordered set where tableId = &#63;.
299            *
300            * @param tableId the table ID
301            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
302            * @return the last matching expando column, or <code>null</code> if a matching expando column could not be found
303            * @throws SystemException if a system exception occurred
304            */
305            public static com.liferay.portlet.expando.model.ExpandoColumn fetchByTableId_Last(
306                    long tableId,
307                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    return getPersistence().fetchByTableId_Last(tableId, orderByComparator);
310            }
311    
312            /**
313            * Returns the expando columns before and after the current expando column in the ordered set where tableId = &#63;.
314            *
315            * @param columnId the primary key of the current expando column
316            * @param tableId the table ID
317            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
318            * @return the previous, current, and next expando column
319            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
320            * @throws SystemException if a system exception occurred
321            */
322            public static com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext(
323                    long columnId, long tableId,
324                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
325                    throws com.liferay.portal.kernel.exception.SystemException,
326                            com.liferay.portlet.expando.NoSuchColumnException {
327                    return getPersistence()
328                                       .findByTableId_PrevAndNext(columnId, tableId,
329                            orderByComparator);
330            }
331    
332            /**
333            * Returns all the expando columns that the user has permission to view where tableId = &#63;.
334            *
335            * @param tableId the table ID
336            * @return the matching expando columns that the user has permission to view
337            * @throws SystemException if a system exception occurred
338            */
339            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId(
340                    long tableId)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return getPersistence().filterFindByTableId(tableId);
343            }
344    
345            /**
346            * Returns a range of all the expando columns that the user has permission to view where tableId = &#63;.
347            *
348            * <p>
349            * 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.
350            * </p>
351            *
352            * @param tableId the table ID
353            * @param start the lower bound of the range of expando columns
354            * @param end the upper bound of the range of expando columns (not inclusive)
355            * @return the range of matching expando columns that the user has permission to view
356            * @throws SystemException if a system exception occurred
357            */
358            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId(
359                    long tableId, int start, int end)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return getPersistence().filterFindByTableId(tableId, start, end);
362            }
363    
364            /**
365            * Returns an ordered range of all the expando columns that the user has permissions to view where tableId = &#63;.
366            *
367            * <p>
368            * 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.
369            * </p>
370            *
371            * @param tableId the table ID
372            * @param start the lower bound of the range of expando columns
373            * @param end the upper bound of the range of expando columns (not inclusive)
374            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
375            * @return the ordered range of matching expando columns that the user has permission to view
376            * @throws SystemException if a system exception occurred
377            */
378            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId(
379                    long tableId, int start, int end,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return getPersistence()
383                                       .filterFindByTableId(tableId, start, end, orderByComparator);
384            }
385    
386            /**
387            * 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;.
388            *
389            * @param columnId the primary key of the current expando column
390            * @param tableId the table ID
391            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
392            * @return the previous, current, and next expando column
393            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
394            * @throws SystemException if a system exception occurred
395            */
396            public static com.liferay.portlet.expando.model.ExpandoColumn[] filterFindByTableId_PrevAndNext(
397                    long columnId, long tableId,
398                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
399                    throws com.liferay.portal.kernel.exception.SystemException,
400                            com.liferay.portlet.expando.NoSuchColumnException {
401                    return getPersistence()
402                                       .filterFindByTableId_PrevAndNext(columnId, tableId,
403                            orderByComparator);
404            }
405    
406            /**
407            * Returns all the expando columns where tableId = &#63; and name = &#63;.
408            *
409            * @param tableId the table ID
410            * @param name the name
411            * @return the matching expando columns
412            * @throws SystemException if a system exception occurred
413            */
414            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
415                    long tableId, java.lang.String name)
416                    throws com.liferay.portal.kernel.exception.SystemException {
417                    return getPersistence().findByT_N(tableId, name);
418            }
419    
420            /**
421            * Returns a range of all the expando columns where tableId = &#63; and name = &#63;.
422            *
423            * <p>
424            * 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.
425            * </p>
426            *
427            * @param tableId the table ID
428            * @param name the name
429            * @param start the lower bound of the range of expando columns
430            * @param end the upper bound of the range of expando columns (not inclusive)
431            * @return the range of matching expando columns
432            * @throws SystemException if a system exception occurred
433            */
434            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
435                    long tableId, java.lang.String name, int start, int end)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    return getPersistence().findByT_N(tableId, name, start, end);
438            }
439    
440            /**
441            * Returns an ordered range of all the expando columns where tableId = &#63; and name = &#63;.
442            *
443            * <p>
444            * 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.
445            * </p>
446            *
447            * @param tableId the table ID
448            * @param name the name
449            * @param start the lower bound of the range of expando columns
450            * @param end the upper bound of the range of expando columns (not inclusive)
451            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
452            * @return the ordered range of matching expando columns
453            * @throws SystemException if a system exception occurred
454            */
455            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
456                    long tableId, java.lang.String name, int start, int end,
457                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
458                    throws com.liferay.portal.kernel.exception.SystemException {
459                    return getPersistence()
460                                       .findByT_N(tableId, name, start, end, orderByComparator);
461            }
462    
463            /**
464            * Returns the first expando column in the ordered set where tableId = &#63; and name = &#63;.
465            *
466            * @param tableId the table ID
467            * @param name the name
468            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
469            * @return the first matching expando column
470            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
471            * @throws SystemException if a system exception occurred
472            */
473            public static com.liferay.portlet.expando.model.ExpandoColumn findByT_N_First(
474                    long tableId, java.lang.String name,
475                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
476                    throws com.liferay.portal.kernel.exception.SystemException,
477                            com.liferay.portlet.expando.NoSuchColumnException {
478                    return getPersistence().findByT_N_First(tableId, name, orderByComparator);
479            }
480    
481            /**
482            * Returns the first expando column in the ordered set where tableId = &#63; and name = &#63;.
483            *
484            * @param tableId the table ID
485            * @param name the name
486            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
487            * @return the first matching expando column, or <code>null</code> if a matching expando column could not be found
488            * @throws SystemException if a system exception occurred
489            */
490            public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N_First(
491                    long tableId, java.lang.String name,
492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493                    throws com.liferay.portal.kernel.exception.SystemException {
494                    return getPersistence()
495                                       .fetchByT_N_First(tableId, name, orderByComparator);
496            }
497    
498            /**
499            * Returns the last expando column in the ordered set where tableId = &#63; and name = &#63;.
500            *
501            * @param tableId the table ID
502            * @param name the name
503            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
504            * @return the last matching expando column
505            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
506            * @throws SystemException if a system exception occurred
507            */
508            public static com.liferay.portlet.expando.model.ExpandoColumn findByT_N_Last(
509                    long tableId, java.lang.String name,
510                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
511                    throws com.liferay.portal.kernel.exception.SystemException,
512                            com.liferay.portlet.expando.NoSuchColumnException {
513                    return getPersistence().findByT_N_Last(tableId, name, orderByComparator);
514            }
515    
516            /**
517            * Returns the last expando column in the ordered set where tableId = &#63; and name = &#63;.
518            *
519            * @param tableId the table ID
520            * @param name the name
521            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
522            * @return the last matching expando column, or <code>null</code> if a matching expando column could not be found
523            * @throws SystemException if a system exception occurred
524            */
525            public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N_Last(
526                    long tableId, java.lang.String name,
527                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
528                    throws com.liferay.portal.kernel.exception.SystemException {
529                    return getPersistence().fetchByT_N_Last(tableId, name, orderByComparator);
530            }
531    
532            /**
533            * Returns the expando columns before and after the current expando column in the ordered set where tableId = &#63; and name = &#63;.
534            *
535            * @param columnId the primary key of the current expando column
536            * @param tableId the table ID
537            * @param name the name
538            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
539            * @return the previous, current, and next expando column
540            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
541            * @throws SystemException if a system exception occurred
542            */
543            public static com.liferay.portlet.expando.model.ExpandoColumn[] findByT_N_PrevAndNext(
544                    long columnId, long tableId, java.lang.String name,
545                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
546                    throws com.liferay.portal.kernel.exception.SystemException,
547                            com.liferay.portlet.expando.NoSuchColumnException {
548                    return getPersistence()
549                                       .findByT_N_PrevAndNext(columnId, tableId, name,
550                            orderByComparator);
551            }
552    
553            /**
554            * Returns all the expando columns where tableId = &#63; and name = any &#63;.
555            *
556            * <p>
557            * 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.
558            * </p>
559            *
560            * @param tableId the table ID
561            * @param names the names
562            * @return the matching expando columns
563            * @throws SystemException if a system exception occurred
564            */
565            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
566                    long tableId, java.lang.String[] names)
567                    throws com.liferay.portal.kernel.exception.SystemException {
568                    return getPersistence().findByT_N(tableId, names);
569            }
570    
571            /**
572            * Returns a range of all the expando columns where tableId = &#63; and name = any &#63;.
573            *
574            * <p>
575            * 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.
576            * </p>
577            *
578            * @param tableId the table ID
579            * @param names the names
580            * @param start the lower bound of the range of expando columns
581            * @param end the upper bound of the range of expando columns (not inclusive)
582            * @return the range of matching expando columns
583            * @throws SystemException if a system exception occurred
584            */
585            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
586                    long tableId, java.lang.String[] names, int start, int end)
587                    throws com.liferay.portal.kernel.exception.SystemException {
588                    return getPersistence().findByT_N(tableId, names, start, end);
589            }
590    
591            /**
592            * Returns an ordered range of all the expando columns where tableId = &#63; and name = any &#63;.
593            *
594            * <p>
595            * 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.
596            * </p>
597            *
598            * @param tableId the table ID
599            * @param names the names
600            * @param start the lower bound of the range of expando columns
601            * @param end the upper bound of the range of expando columns (not inclusive)
602            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
603            * @return the ordered range of matching expando columns
604            * @throws SystemException if a system exception occurred
605            */
606            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
607                    long tableId, java.lang.String[] names, int start, int end,
608                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
609                    throws com.liferay.portal.kernel.exception.SystemException {
610                    return getPersistence()
611                                       .findByT_N(tableId, names, start, end, orderByComparator);
612            }
613    
614            /**
615            * Returns all the expando columns that the user has permission to view where tableId = &#63; and name = &#63;.
616            *
617            * @param tableId the table ID
618            * @param name the name
619            * @return the matching expando columns that the user has permission to view
620            * @throws SystemException if a system exception occurred
621            */
622            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
623                    long tableId, java.lang.String name)
624                    throws com.liferay.portal.kernel.exception.SystemException {
625                    return getPersistence().filterFindByT_N(tableId, name);
626            }
627    
628            /**
629            * Returns a range of all the expando columns that the user has permission to view where tableId = &#63; and name = &#63;.
630            *
631            * <p>
632            * 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.
633            * </p>
634            *
635            * @param tableId the table ID
636            * @param name the name
637            * @param start the lower bound of the range of expando columns
638            * @param end the upper bound of the range of expando columns (not inclusive)
639            * @return the range of matching expando columns that the user has permission to view
640            * @throws SystemException if a system exception occurred
641            */
642            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
643                    long tableId, java.lang.String name, int start, int end)
644                    throws com.liferay.portal.kernel.exception.SystemException {
645                    return getPersistence().filterFindByT_N(tableId, name, start, end);
646            }
647    
648            /**
649            * Returns an ordered range of all the expando columns that the user has permissions to view where tableId = &#63; and name = &#63;.
650            *
651            * <p>
652            * 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.
653            * </p>
654            *
655            * @param tableId the table ID
656            * @param name the name
657            * @param start the lower bound of the range of expando columns
658            * @param end the upper bound of the range of expando columns (not inclusive)
659            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
660            * @return the ordered range of matching expando columns that the user has permission to view
661            * @throws SystemException if a system exception occurred
662            */
663            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
664                    long tableId, java.lang.String name, int start, int end,
665                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
666                    throws com.liferay.portal.kernel.exception.SystemException {
667                    return getPersistence()
668                                       .filterFindByT_N(tableId, name, start, end, orderByComparator);
669            }
670    
671            /**
672            * 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;.
673            *
674            * @param columnId the primary key of the current expando column
675            * @param tableId the table ID
676            * @param name the name
677            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
678            * @return the previous, current, and next expando column
679            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
680            * @throws SystemException if a system exception occurred
681            */
682            public static com.liferay.portlet.expando.model.ExpandoColumn[] filterFindByT_N_PrevAndNext(
683                    long columnId, long tableId, java.lang.String name,
684                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
685                    throws com.liferay.portal.kernel.exception.SystemException,
686                            com.liferay.portlet.expando.NoSuchColumnException {
687                    return getPersistence()
688                                       .filterFindByT_N_PrevAndNext(columnId, tableId, name,
689                            orderByComparator);
690            }
691    
692            /**
693            * Returns all the expando columns that the user has permission to view where tableId = &#63; and name = any &#63;.
694            *
695            * @param tableId the table ID
696            * @param names the names
697            * @return the matching expando columns that the user has permission to view
698            * @throws SystemException if a system exception occurred
699            */
700            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
701                    long tableId, java.lang.String[] names)
702                    throws com.liferay.portal.kernel.exception.SystemException {
703                    return getPersistence().filterFindByT_N(tableId, names);
704            }
705    
706            /**
707            * Returns a range of all the expando columns that the user has permission to view where tableId = &#63; and name = any &#63;.
708            *
709            * <p>
710            * 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.
711            * </p>
712            *
713            * @param tableId the table ID
714            * @param names the names
715            * @param start the lower bound of the range of expando columns
716            * @param end the upper bound of the range of expando columns (not inclusive)
717            * @return the range of matching expando columns that the user has permission to view
718            * @throws SystemException if a system exception occurred
719            */
720            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
721                    long tableId, java.lang.String[] names, int start, int end)
722                    throws com.liferay.portal.kernel.exception.SystemException {
723                    return getPersistence().filterFindByT_N(tableId, names, start, end);
724            }
725    
726            /**
727            * Returns an ordered range of all the expando columns that the user has permission to view where tableId = &#63; and name = any &#63;.
728            *
729            * <p>
730            * 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.
731            * </p>
732            *
733            * @param tableId the table ID
734            * @param names the names
735            * @param start the lower bound of the range of expando columns
736            * @param end the upper bound of the range of expando columns (not inclusive)
737            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
738            * @return the ordered range of matching expando columns that the user has permission to view
739            * @throws SystemException if a system exception occurred
740            */
741            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
742                    long tableId, java.lang.String[] names, int start, int end,
743                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
744                    throws com.liferay.portal.kernel.exception.SystemException {
745                    return getPersistence()
746                                       .filterFindByT_N(tableId, names, start, end,
747                            orderByComparator);
748            }
749    
750            /**
751            * Returns all the expando columns.
752            *
753            * @return the expando columns
754            * @throws SystemException if a system exception occurred
755            */
756            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll()
757                    throws com.liferay.portal.kernel.exception.SystemException {
758                    return getPersistence().findAll();
759            }
760    
761            /**
762            * Returns a range of all the expando columns.
763            *
764            * <p>
765            * 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.
766            * </p>
767            *
768            * @param start the lower bound of the range of expando columns
769            * @param end the upper bound of the range of expando columns (not inclusive)
770            * @return the range of expando columns
771            * @throws SystemException if a system exception occurred
772            */
773            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
774                    int start, int end)
775                    throws com.liferay.portal.kernel.exception.SystemException {
776                    return getPersistence().findAll(start, end);
777            }
778    
779            /**
780            * Returns an ordered range of all the expando columns.
781            *
782            * <p>
783            * 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.
784            * </p>
785            *
786            * @param start the lower bound of the range of expando columns
787            * @param end the upper bound of the range of expando columns (not inclusive)
788            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
789            * @return the ordered range of expando columns
790            * @throws SystemException if a system exception occurred
791            */
792            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
793                    int start, int end,
794                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
795                    throws com.liferay.portal.kernel.exception.SystemException {
796                    return getPersistence().findAll(start, end, orderByComparator);
797            }
798    
799            /**
800            * Removes all the expando columns where tableId = &#63; from the database.
801            *
802            * @param tableId the table ID
803            * @throws SystemException if a system exception occurred
804            */
805            public static void removeByTableId(long tableId)
806                    throws com.liferay.portal.kernel.exception.SystemException {
807                    getPersistence().removeByTableId(tableId);
808            }
809    
810            /**
811            * Removes all the expando columns where tableId = &#63; and name = &#63; from the database.
812            *
813            * @param tableId the table ID
814            * @param name the name
815            * @throws SystemException if a system exception occurred
816            */
817            public static void removeByT_N(long tableId, java.lang.String name)
818                    throws com.liferay.portal.kernel.exception.SystemException {
819                    getPersistence().removeByT_N(tableId, name);
820            }
821    
822            /**
823            * Removes all the expando columns from the database.
824            *
825            * @throws SystemException if a system exception occurred
826            */
827            public static void removeAll()
828                    throws com.liferay.portal.kernel.exception.SystemException {
829                    getPersistence().removeAll();
830            }
831    
832            /**
833            * Returns the number of expando columns where tableId = &#63;.
834            *
835            * @param tableId the table ID
836            * @return the number of matching expando columns
837            * @throws SystemException if a system exception occurred
838            */
839            public static int countByTableId(long tableId)
840                    throws com.liferay.portal.kernel.exception.SystemException {
841                    return getPersistence().countByTableId(tableId);
842            }
843    
844            /**
845            * Returns the number of expando columns that the user has permission to view where tableId = &#63;.
846            *
847            * @param tableId the table ID
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 filterCountByTableId(long tableId)
852                    throws com.liferay.portal.kernel.exception.SystemException {
853                    return getPersistence().filterCountByTableId(tableId);
854            }
855    
856            /**
857            * Returns the number of expando columns where tableId = &#63; and name = &#63;.
858            *
859            * @param tableId the table ID
860            * @param name the name
861            * @return the number of matching expando columns
862            * @throws SystemException if a system exception occurred
863            */
864            public static int countByT_N(long tableId, java.lang.String name)
865                    throws com.liferay.portal.kernel.exception.SystemException {
866                    return getPersistence().countByT_N(tableId, name);
867            }
868    
869            /**
870            * Returns the number of expando columns where tableId = &#63; and name = any &#63;.
871            *
872            * @param tableId the table ID
873            * @param names the names
874            * @return the number of matching expando columns
875            * @throws SystemException if a system exception occurred
876            */
877            public static int countByT_N(long tableId, java.lang.String[] names)
878                    throws com.liferay.portal.kernel.exception.SystemException {
879                    return getPersistence().countByT_N(tableId, names);
880            }
881    
882            /**
883            * Returns the number of expando columns that the user has permission to view where tableId = &#63; and name = &#63;.
884            *
885            * @param tableId the table ID
886            * @param name the name
887            * @return the number of matching expando columns that the user has permission to view
888            * @throws SystemException if a system exception occurred
889            */
890            public static int filterCountByT_N(long tableId, java.lang.String name)
891                    throws com.liferay.portal.kernel.exception.SystemException {
892                    return getPersistence().filterCountByT_N(tableId, name);
893            }
894    
895            /**
896            * Returns the number of expando columns that the user has permission to view where tableId = &#63; and name = any &#63;.
897            *
898            * @param tableId the table ID
899            * @param names the names
900            * @return the number of matching expando columns that the user has permission to view
901            * @throws SystemException if a system exception occurred
902            */
903            public static int filterCountByT_N(long tableId, java.lang.String[] names)
904                    throws com.liferay.portal.kernel.exception.SystemException {
905                    return getPersistence().filterCountByT_N(tableId, names);
906            }
907    
908            /**
909            * Returns the number of expando columns.
910            *
911            * @return the number of expando columns
912            * @throws SystemException if a system exception occurred
913            */
914            public static int countAll()
915                    throws com.liferay.portal.kernel.exception.SystemException {
916                    return getPersistence().countAll();
917            }
918    
919            public static ExpandoColumnPersistence getPersistence() {
920                    if (_persistence == null) {
921                            _persistence = (ExpandoColumnPersistence)PortalBeanLocatorUtil.locate(ExpandoColumnPersistence.class.getName());
922    
923                            ReferenceRegistry.registerReference(ExpandoColumnUtil.class,
924                                    "_persistence");
925                    }
926    
927                    return _persistence;
928            }
929    
930            /**
931             * @deprecated
932             */
933            public void setPersistence(ExpandoColumnPersistence persistence) {
934            }
935    
936            private static ExpandoColumnPersistence _persistence;
937    }