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