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