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