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