001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.expando.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.exception.SystemException;
022    import com.liferay.portal.kernel.util.OrderByComparator;
023    import com.liferay.portal.kernel.util.ReferenceRegistry;
024    import com.liferay.portal.service.ServiceContext;
025    
026    import com.liferay.portlet.expando.model.ExpandoColumn;
027    
028    import java.util.List;
029    
030    /**
031     * 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.
032     *
033     * <p>
034     * Caching information and settings can be found in <code>portal.properties</code>
035     * </p>
036     *
037     * @author Brian Wing Shun Chan
038     * @see ExpandoColumnPersistence
039     * @see ExpandoColumnPersistenceImpl
040     * @generated
041     */
042    @ProviderType
043    public class ExpandoColumnUtil {
044            /*
045             * NOTE FOR DEVELOPERS:
046             *
047             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
048             */
049    
050            /**
051             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
052             */
053            public static void clearCache() {
054                    getPersistence().clearCache();
055            }
056    
057            /**
058             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
059             */
060            public static void clearCache(ExpandoColumn expandoColumn) {
061                    getPersistence().clearCache(expandoColumn);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
066             */
067            public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
068                    throws SystemException {
069                    return getPersistence().countWithDynamicQuery(dynamicQuery);
070            }
071    
072            /**
073             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
074             */
075            public static List<ExpandoColumn> findWithDynamicQuery(
076                    DynamicQuery dynamicQuery) throws SystemException {
077                    return getPersistence().findWithDynamicQuery(dynamicQuery);
078            }
079    
080            /**
081             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
082             */
083            public static List<ExpandoColumn> findWithDynamicQuery(
084                    DynamicQuery dynamicQuery, int start, int end)
085                    throws SystemException {
086                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
087            }
088    
089            /**
090             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
091             */
092            public static List<ExpandoColumn> findWithDynamicQuery(
093                    DynamicQuery dynamicQuery, int start, int end,
094                    OrderByComparator orderByComparator) throws SystemException {
095                    return getPersistence()
096                                       .findWithDynamicQuery(dynamicQuery, start, end,
097                            orderByComparator);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
102             */
103            public static ExpandoColumn update(ExpandoColumn expandoColumn)
104                    throws SystemException {
105                    return getPersistence().update(expandoColumn);
106            }
107    
108            /**
109             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
110             */
111            public static ExpandoColumn update(ExpandoColumn expandoColumn,
112                    ServiceContext serviceContext) throws SystemException {
113                    return getPersistence().update(expandoColumn, serviceContext);
114            }
115    
116            /**
117            * Returns all the expando columns where tableId = &#63;.
118            *
119            * @param tableId the table ID
120            * @return the matching expando columns
121            * @throws SystemException if a system exception occurred
122            */
123            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
124                    long tableId)
125                    throws com.liferay.portal.kernel.exception.SystemException {
126                    return getPersistence().findByTableId(tableId);
127            }
128    
129            /**
130            * Returns a range of all the expando columns where tableId = &#63;.
131            *
132            * <p>
133            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
134            * </p>
135            *
136            * @param tableId the table ID
137            * @param start the lower bound of the range of expando columns
138            * @param end the upper bound of the range of expando columns (not inclusive)
139            * @return the range of matching expando columns
140            * @throws SystemException if a system exception occurred
141            */
142            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
143                    long tableId, int start, int end)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return getPersistence().findByTableId(tableId, start, end);
146            }
147    
148            /**
149            * Returns an ordered range of all the expando columns where tableId = &#63;.
150            *
151            * <p>
152            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
153            * </p>
154            *
155            * @param tableId the table ID
156            * @param start the lower bound of the range of expando columns
157            * @param end the upper bound of the range of expando columns (not inclusive)
158            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
159            * @return the ordered range of matching expando columns
160            * @throws SystemException if a system exception occurred
161            */
162            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
163                    long tableId, int start, int end,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence()
167                                       .findByTableId(tableId, start, end, orderByComparator);
168            }
169    
170            /**
171            * Returns the first expando column in the ordered set where tableId = &#63;.
172            *
173            * @param tableId the table ID
174            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
175            * @return the first matching expando column
176            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
177            * @throws SystemException if a system exception occurred
178            */
179            public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First(
180                    long tableId,
181                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182                    throws com.liferay.portal.kernel.exception.SystemException,
183                            com.liferay.portlet.expando.NoSuchColumnException {
184                    return getPersistence().findByTableId_First(tableId, orderByComparator);
185            }
186    
187            /**
188            * Returns the first expando column in the ordered set where tableId = &#63;.
189            *
190            * @param tableId the table ID
191            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
192            * @return the first matching expando column, or <code>null</code> if a matching expando column could not be found
193            * @throws SystemException if a system exception occurred
194            */
195            public static com.liferay.portlet.expando.model.ExpandoColumn fetchByTableId_First(
196                    long tableId,
197                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return getPersistence().fetchByTableId_First(tableId, orderByComparator);
200            }
201    
202            /**
203            * Returns the last expando column in the ordered set where tableId = &#63;.
204            *
205            * @param tableId the table ID
206            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
207            * @return the last matching expando column
208            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
209            * @throws SystemException if a system exception occurred
210            */
211            public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last(
212                    long tableId,
213                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214                    throws com.liferay.portal.kernel.exception.SystemException,
215                            com.liferay.portlet.expando.NoSuchColumnException {
216                    return getPersistence().findByTableId_Last(tableId, orderByComparator);
217            }
218    
219            /**
220            * Returns the last expando column in the ordered set where tableId = &#63;.
221            *
222            * @param tableId the table ID
223            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
224            * @return the last matching expando column, or <code>null</code> if a matching expando column could not be found
225            * @throws SystemException if a system exception occurred
226            */
227            public static com.liferay.portlet.expando.model.ExpandoColumn fetchByTableId_Last(
228                    long tableId,
229                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return getPersistence().fetchByTableId_Last(tableId, orderByComparator);
232            }
233    
234            /**
235            * Returns the expando columns before and after the current expando column in the ordered set where tableId = &#63;.
236            *
237            * @param columnId the primary key of the current expando column
238            * @param tableId the table ID
239            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
240            * @return the previous, current, and next expando column
241            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
242            * @throws SystemException if a system exception occurred
243            */
244            public static com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext(
245                    long columnId, long tableId,
246                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247                    throws com.liferay.portal.kernel.exception.SystemException,
248                            com.liferay.portlet.expando.NoSuchColumnException {
249                    return getPersistence()
250                                       .findByTableId_PrevAndNext(columnId, tableId,
251                            orderByComparator);
252            }
253    
254            /**
255            * Returns all the expando columns that the user has permission to view where tableId = &#63;.
256            *
257            * @param tableId the table ID
258            * @return the matching expando columns that the user has permission to view
259            * @throws SystemException if a system exception occurred
260            */
261            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId(
262                    long tableId)
263                    throws com.liferay.portal.kernel.exception.SystemException {
264                    return getPersistence().filterFindByTableId(tableId);
265            }
266    
267            /**
268            * Returns a range of all the expando columns that the user has permission to view where tableId = &#63;.
269            *
270            * <p>
271            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
272            * </p>
273            *
274            * @param tableId the table ID
275            * @param start the lower bound of the range of expando columns
276            * @param end the upper bound of the range of expando columns (not inclusive)
277            * @return the range of matching expando columns that the user has permission to view
278            * @throws SystemException if a system exception occurred
279            */
280            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId(
281                    long tableId, int start, int end)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    return getPersistence().filterFindByTableId(tableId, start, end);
284            }
285    
286            /**
287            * Returns an ordered range of all the expando columns that the user has permissions to view where tableId = &#63;.
288            *
289            * <p>
290            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
291            * </p>
292            *
293            * @param tableId the table ID
294            * @param start the lower bound of the range of expando columns
295            * @param end the upper bound of the range of expando columns (not inclusive)
296            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
297            * @return the ordered range of matching expando columns that the user has permission to view
298            * @throws SystemException if a system exception occurred
299            */
300            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId(
301                    long tableId, int start, int end,
302                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
303                    throws com.liferay.portal.kernel.exception.SystemException {
304                    return getPersistence()
305                                       .filterFindByTableId(tableId, start, end, orderByComparator);
306            }
307    
308            /**
309            * 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;.
310            *
311            * @param columnId the primary key of the current expando column
312            * @param tableId the table ID
313            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
314            * @return the previous, current, and next expando column
315            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
316            * @throws SystemException if a system exception occurred
317            */
318            public static com.liferay.portlet.expando.model.ExpandoColumn[] filterFindByTableId_PrevAndNext(
319                    long columnId, long tableId,
320                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
321                    throws com.liferay.portal.kernel.exception.SystemException,
322                            com.liferay.portlet.expando.NoSuchColumnException {
323                    return getPersistence()
324                                       .filterFindByTableId_PrevAndNext(columnId, tableId,
325                            orderByComparator);
326            }
327    
328            /**
329            * Removes all the expando columns where tableId = &#63; from the database.
330            *
331            * @param tableId the table ID
332            * @throws SystemException if a system exception occurred
333            */
334            public static void removeByTableId(long tableId)
335                    throws com.liferay.portal.kernel.exception.SystemException {
336                    getPersistence().removeByTableId(tableId);
337            }
338    
339            /**
340            * Returns the number of expando columns where tableId = &#63;.
341            *
342            * @param tableId the table ID
343            * @return the number of matching expando columns
344            * @throws SystemException if a system exception occurred
345            */
346            public static int countByTableId(long tableId)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    return getPersistence().countByTableId(tableId);
349            }
350    
351            /**
352            * Returns the number of expando columns that the user has permission to view where tableId = &#63;.
353            *
354            * @param tableId the table ID
355            * @return the number of matching expando columns that the user has permission to view
356            * @throws SystemException if a system exception occurred
357            */
358            public static int filterCountByTableId(long tableId)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return getPersistence().filterCountByTableId(tableId);
361            }
362    
363            /**
364            * Returns all the expando columns where tableId = &#63; and name = any &#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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
368            * </p>
369            *
370            * @param tableId the table ID
371            * @param names the names
372            * @return the matching expando columns
373            * @throws SystemException if a system exception occurred
374            */
375            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
376                    long tableId, java.lang.String[] names)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    return getPersistence().findByT_N(tableId, names);
379            }
380    
381            /**
382            * Returns a range of all the expando columns where tableId = &#63; and name = any &#63;.
383            *
384            * <p>
385            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
386            * </p>
387            *
388            * @param tableId the table ID
389            * @param names the names
390            * @param start the lower bound of the range of expando columns
391            * @param end the upper bound of the range of expando columns (not inclusive)
392            * @return the range of matching expando columns
393            * @throws SystemException if a system exception occurred
394            */
395            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
396                    long tableId, java.lang.String[] names, int start, int end)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return getPersistence().findByT_N(tableId, names, start, end);
399            }
400    
401            /**
402            * Returns an ordered range of all the expando columns where tableId = &#63; and name = any &#63;.
403            *
404            * <p>
405            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
406            * </p>
407            *
408            * @param tableId the table ID
409            * @param names the names
410            * @param start the lower bound of the range of expando columns
411            * @param end the upper bound of the range of expando columns (not inclusive)
412            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
413            * @return the ordered range of matching expando columns
414            * @throws SystemException if a system exception occurred
415            */
416            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
417                    long tableId, java.lang.String[] names, int start, int end,
418                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return getPersistence()
421                                       .findByT_N(tableId, names, start, end, orderByComparator);
422            }
423    
424            /**
425            * Returns the expando column where tableId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.expando.NoSuchColumnException} if it could not be found.
426            *
427            * @param tableId the table ID
428            * @param name the name
429            * @return the matching expando column
430            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
431            * @throws SystemException if a system exception occurred
432            */
433            public static com.liferay.portlet.expando.model.ExpandoColumn findByT_N(
434                    long tableId, java.lang.String name)
435                    throws com.liferay.portal.kernel.exception.SystemException,
436                            com.liferay.portlet.expando.NoSuchColumnException {
437                    return getPersistence().findByT_N(tableId, name);
438            }
439    
440            /**
441            * Returns the expando column where tableId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
442            *
443            * @param tableId the table ID
444            * @param name the name
445            * @return the matching expando column, or <code>null</code> if a matching expando column could not be found
446            * @throws SystemException if a system exception occurred
447            */
448            public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
449                    long tableId, java.lang.String name)
450                    throws com.liferay.portal.kernel.exception.SystemException {
451                    return getPersistence().fetchByT_N(tableId, name);
452            }
453    
454            /**
455            * Returns the expando column where tableId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
456            *
457            * @param tableId the table ID
458            * @param name the name
459            * @param retrieveFromCache whether to use the finder cache
460            * @return the matching expando column, or <code>null</code> if a matching expando column could not be found
461            * @throws SystemException if a system exception occurred
462            */
463            public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
464                    long tableId, java.lang.String name, boolean retrieveFromCache)
465                    throws com.liferay.portal.kernel.exception.SystemException {
466                    return getPersistence().fetchByT_N(tableId, name, retrieveFromCache);
467            }
468    
469            /**
470            * Removes the expando column where tableId = &#63; and name = &#63; from the database.
471            *
472            * @param tableId the table ID
473            * @param name the name
474            * @return the expando column that was removed
475            * @throws SystemException if a system exception occurred
476            */
477            public static com.liferay.portlet.expando.model.ExpandoColumn removeByT_N(
478                    long tableId, java.lang.String name)
479                    throws com.liferay.portal.kernel.exception.SystemException,
480                            com.liferay.portlet.expando.NoSuchColumnException {
481                    return getPersistence().removeByT_N(tableId, name);
482            }
483    
484            /**
485            * Returns the number of expando columns where tableId = &#63; and name = &#63;.
486            *
487            * @param tableId the table ID
488            * @param name the name
489            * @return the number of matching expando columns
490            * @throws SystemException if a system exception occurred
491            */
492            public static int countByT_N(long tableId, java.lang.String name)
493                    throws com.liferay.portal.kernel.exception.SystemException {
494                    return getPersistence().countByT_N(tableId, name);
495            }
496    
497            /**
498            * Returns the number of expando columns where tableId = &#63; and name = any &#63;.
499            *
500            * @param tableId the table ID
501            * @param names the names
502            * @return the number of matching expando columns
503            * @throws SystemException if a system exception occurred
504            */
505            public static int countByT_N(long tableId, java.lang.String[] names)
506                    throws com.liferay.portal.kernel.exception.SystemException {
507                    return getPersistence().countByT_N(tableId, names);
508            }
509    
510            /**
511            * Returns the number of expando columns that the user has permission to view where tableId = &#63; and name = &#63;.
512            *
513            * @param tableId the table ID
514            * @param name the name
515            * @return the number of matching expando columns that the user has permission to view
516            * @throws SystemException if a system exception occurred
517            */
518            public static int filterCountByT_N(long tableId, java.lang.String name)
519                    throws com.liferay.portal.kernel.exception.SystemException {
520                    return getPersistence().filterCountByT_N(tableId, name);
521            }
522    
523            /**
524            * Returns the number of expando columns that the user has permission to view where tableId = &#63; and name = any &#63;.
525            *
526            * @param tableId the table ID
527            * @param names the names
528            * @return the number of matching expando columns that the user has permission to view
529            * @throws SystemException if a system exception occurred
530            */
531            public static int filterCountByT_N(long tableId, java.lang.String[] names)
532                    throws com.liferay.portal.kernel.exception.SystemException {
533                    return getPersistence().filterCountByT_N(tableId, names);
534            }
535    
536            /**
537            * Caches the expando column in the entity cache if it is enabled.
538            *
539            * @param expandoColumn the expando column
540            */
541            public static void cacheResult(
542                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn) {
543                    getPersistence().cacheResult(expandoColumn);
544            }
545    
546            /**
547            * Caches the expando columns in the entity cache if it is enabled.
548            *
549            * @param expandoColumns the expando columns
550            */
551            public static void cacheResult(
552                    java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> expandoColumns) {
553                    getPersistence().cacheResult(expandoColumns);
554            }
555    
556            /**
557            * Creates a new expando column with the primary key. Does not add the expando column to the database.
558            *
559            * @param columnId the primary key for the new expando column
560            * @return the new expando column
561            */
562            public static com.liferay.portlet.expando.model.ExpandoColumn create(
563                    long columnId) {
564                    return getPersistence().create(columnId);
565            }
566    
567            /**
568            * Removes the expando column with the primary key from the database. Also notifies the appropriate model listeners.
569            *
570            * @param columnId the primary key of the expando column
571            * @return the expando column that was removed
572            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
573            * @throws SystemException if a system exception occurred
574            */
575            public static com.liferay.portlet.expando.model.ExpandoColumn remove(
576                    long columnId)
577                    throws com.liferay.portal.kernel.exception.SystemException,
578                            com.liferay.portlet.expando.NoSuchColumnException {
579                    return getPersistence().remove(columnId);
580            }
581    
582            public static com.liferay.portlet.expando.model.ExpandoColumn updateImpl(
583                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
584                    throws com.liferay.portal.kernel.exception.SystemException {
585                    return getPersistence().updateImpl(expandoColumn);
586            }
587    
588            /**
589            * Returns the expando column with the primary key or throws a {@link com.liferay.portlet.expando.NoSuchColumnException} if it could not be found.
590            *
591            * @param columnId the primary key of the expando column
592            * @return the expando column
593            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
594            * @throws SystemException if a system exception occurred
595            */
596            public static com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey(
597                    long columnId)
598                    throws com.liferay.portal.kernel.exception.SystemException,
599                            com.liferay.portlet.expando.NoSuchColumnException {
600                    return getPersistence().findByPrimaryKey(columnId);
601            }
602    
603            /**
604            * Returns the expando column with the primary key or returns <code>null</code> if it could not be found.
605            *
606            * @param columnId the primary key of the expando column
607            * @return the expando column, or <code>null</code> if a expando column with the primary key could not be found
608            * @throws SystemException if a system exception occurred
609            */
610            public static com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey(
611                    long columnId)
612                    throws com.liferay.portal.kernel.exception.SystemException {
613                    return getPersistence().fetchByPrimaryKey(columnId);
614            }
615    
616            /**
617            * Returns all the expando columns.
618            *
619            * @return the expando columns
620            * @throws SystemException if a system exception occurred
621            */
622            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll()
623                    throws com.liferay.portal.kernel.exception.SystemException {
624                    return getPersistence().findAll();
625            }
626    
627            /**
628            * Returns a range of all the expando columns.
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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
632            * </p>
633            *
634            * @param start the lower bound of the range of expando columns
635            * @param end the upper bound of the range of expando columns (not inclusive)
636            * @return the range of expando columns
637            * @throws SystemException if a system exception occurred
638            */
639            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
640                    int start, int end)
641                    throws com.liferay.portal.kernel.exception.SystemException {
642                    return getPersistence().findAll(start, end);
643            }
644    
645            /**
646            * Returns an ordered range of all the expando columns.
647            *
648            * <p>
649            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
650            * </p>
651            *
652            * @param start the lower bound of the range of expando columns
653            * @param end the upper bound of the range of expando columns (not inclusive)
654            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
655            * @return the ordered range of expando columns
656            * @throws SystemException if a system exception occurred
657            */
658            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
659                    int start, int end,
660                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
661                    throws com.liferay.portal.kernel.exception.SystemException {
662                    return getPersistence().findAll(start, end, orderByComparator);
663            }
664    
665            /**
666            * Removes all the expando columns from the database.
667            *
668            * @throws SystemException if a system exception occurred
669            */
670            public static void removeAll()
671                    throws com.liferay.portal.kernel.exception.SystemException {
672                    getPersistence().removeAll();
673            }
674    
675            /**
676            * Returns the number of expando columns.
677            *
678            * @return the number of expando columns
679            * @throws SystemException if a system exception occurred
680            */
681            public static int countAll()
682                    throws com.liferay.portal.kernel.exception.SystemException {
683                    return getPersistence().countAll();
684            }
685    
686            public static ExpandoColumnPersistence getPersistence() {
687                    if (_persistence == null) {
688                            _persistence = (ExpandoColumnPersistence)PortalBeanLocatorUtil.locate(ExpandoColumnPersistence.class.getName());
689    
690                            ReferenceRegistry.registerReference(ExpandoColumnUtil.class,
691                                    "_persistence");
692                    }
693    
694                    return _persistence;
695            }
696    
697            /**
698             * @deprecated As of 6.2.0
699             */
700            public void setPersistence(ExpandoColumnPersistence persistence) {
701            }
702    
703            private static ExpandoColumnPersistence _persistence;
704    }