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                    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            * <p>
156            * 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.
157            * </p>
158            *
159            * @param tableId the table ID
160            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
161            * @return the first matching expando column
162            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
163            * @throws SystemException if a system exception occurred
164            */
165            public com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First(
166                    long tableId,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException,
169                            com.liferay.portlet.expando.NoSuchColumnException;
170    
171            /**
172            * Returns the last expando column in the ordered set where tableId = &#63;.
173            *
174            * <p>
175            * 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.
176            * </p>
177            *
178            * @param tableId the table ID
179            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
180            * @return the last matching expando column
181            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last(
185                    long tableId,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.expando.NoSuchColumnException;
189    
190            /**
191            * Returns the expando columns before and after the current expando column in the ordered set where tableId = &#63;.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param columnId the primary key of the current expando column
198            * @param tableId the table ID
199            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
200            * @return the previous, current, and next expando column
201            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext(
205                    long columnId, long tableId,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException,
208                            com.liferay.portlet.expando.NoSuchColumnException;
209    
210            /**
211            * Returns all the expando columns that the user has permission to view where tableId = &#63;.
212            *
213            * @param tableId the table ID
214            * @return the matching expando columns that the user has permission to view
215            * @throws SystemException if a system exception occurred
216            */
217            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId(
218                    long tableId)
219                    throws com.liferay.portal.kernel.exception.SystemException;
220    
221            /**
222            * Returns a range of all the expando columns that the user has permission to view where tableId = &#63;.
223            *
224            * <p>
225            * 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.
226            * </p>
227            *
228            * @param tableId the table ID
229            * @param start the lower bound of the range of expando columns
230            * @param end the upper bound of the range of expando columns (not inclusive)
231            * @return the range of matching expando columns that the user has permission to view
232            * @throws SystemException if a system exception occurred
233            */
234            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId(
235                    long tableId, int start, int end)
236                    throws com.liferay.portal.kernel.exception.SystemException;
237    
238            /**
239            * Returns an ordered range of all the expando columns that the user has permissions to view where tableId = &#63;.
240            *
241            * <p>
242            * 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.
243            * </p>
244            *
245            * @param tableId the table ID
246            * @param start the lower bound of the range of expando columns
247            * @param end the upper bound of the range of expando columns (not inclusive)
248            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
249            * @return the ordered range of matching expando columns that the user has permission to view
250            * @throws SystemException if a system exception occurred
251            */
252            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId(
253                    long tableId, int start, int end,
254                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255                    throws com.liferay.portal.kernel.exception.SystemException;
256    
257            /**
258            * 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;.
259            *
260            * @param columnId the primary key of the current expando column
261            * @param tableId the table ID
262            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
263            * @return the previous, current, and next expando column
264            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
265            * @throws SystemException if a system exception occurred
266            */
267            public com.liferay.portlet.expando.model.ExpandoColumn[] filterFindByTableId_PrevAndNext(
268                    long columnId, long tableId,
269                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270                    throws com.liferay.portal.kernel.exception.SystemException,
271                            com.liferay.portlet.expando.NoSuchColumnException;
272    
273            /**
274            * Returns all the expando columns where tableId = &#63; and name = &#63;.
275            *
276            * @param tableId the table ID
277            * @param name the name
278            * @return the matching expando columns
279            * @throws SystemException if a system exception occurred
280            */
281            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
282                    long tableId, java.lang.String name)
283                    throws com.liferay.portal.kernel.exception.SystemException;
284    
285            /**
286            * Returns a range of all the expando columns where tableId = &#63; and name = &#63;.
287            *
288            * <p>
289            * 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.
290            * </p>
291            *
292            * @param tableId the table ID
293            * @param name the name
294            * @param start the lower bound of the range of expando columns
295            * @param end the upper bound of the range of expando columns (not inclusive)
296            * @return the range of matching expando columns
297            * @throws SystemException if a system exception occurred
298            */
299            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
300                    long tableId, java.lang.String name, int start, int end)
301                    throws com.liferay.portal.kernel.exception.SystemException;
302    
303            /**
304            * Returns an ordered range of all the expando columns where tableId = &#63; and name = &#63;.
305            *
306            * <p>
307            * 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.
308            * </p>
309            *
310            * @param tableId the table ID
311            * @param name the name
312            * @param start the lower bound of the range of expando columns
313            * @param end the upper bound of the range of expando columns (not inclusive)
314            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
315            * @return the ordered range of matching expando columns
316            * @throws SystemException if a system exception occurred
317            */
318            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
319                    long tableId, java.lang.String name, int start, int end,
320                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
321                    throws com.liferay.portal.kernel.exception.SystemException;
322    
323            /**
324            * Returns the first expando column in the ordered set where tableId = &#63; and name = &#63;.
325            *
326            * <p>
327            * 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.
328            * </p>
329            *
330            * @param tableId the table ID
331            * @param name the name
332            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
333            * @return the first matching expando column
334            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
335            * @throws SystemException if a system exception occurred
336            */
337            public com.liferay.portlet.expando.model.ExpandoColumn findByT_N_First(
338                    long tableId, java.lang.String name,
339                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340                    throws com.liferay.portal.kernel.exception.SystemException,
341                            com.liferay.portlet.expando.NoSuchColumnException;
342    
343            /**
344            * Returns the last expando column in the ordered set where tableId = &#63; and name = &#63;.
345            *
346            * <p>
347            * 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.
348            * </p>
349            *
350            * @param tableId the table ID
351            * @param name the name
352            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
353            * @return the last matching expando column
354            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
355            * @throws SystemException if a system exception occurred
356            */
357            public com.liferay.portlet.expando.model.ExpandoColumn findByT_N_Last(
358                    long tableId, java.lang.String name,
359                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360                    throws com.liferay.portal.kernel.exception.SystemException,
361                            com.liferay.portlet.expando.NoSuchColumnException;
362    
363            /**
364            * Returns the expando columns before and after the current expando column in the ordered set where tableId = &#63; and name = &#63;.
365            *
366            * <p>
367            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
368            * </p>
369            *
370            * @param columnId the primary key of the current expando column
371            * @param tableId the table ID
372            * @param name the name
373            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
374            * @return the previous, current, and next expando column
375            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
376            * @throws SystemException if a system exception occurred
377            */
378            public com.liferay.portlet.expando.model.ExpandoColumn[] findByT_N_PrevAndNext(
379                    long columnId, long tableId, java.lang.String name,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException,
382                            com.liferay.portlet.expando.NoSuchColumnException;
383    
384            /**
385            * Returns all the expando columns where tableId = &#63; and name = any &#63;.
386            *
387            * <p>
388            * 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.
389            * </p>
390            *
391            * @param tableId the table ID
392            * @param names the names
393            * @return the matching expando columns
394            * @throws SystemException if a system exception occurred
395            */
396            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
397                    long tableId, java.lang.String[] names)
398                    throws com.liferay.portal.kernel.exception.SystemException;
399    
400            /**
401            * Returns a range of all the expando columns where tableId = &#63; and name = any &#63;.
402            *
403            * <p>
404            * 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.
405            * </p>
406            *
407            * @param tableId the table ID
408            * @param names the names
409            * @param start the lower bound of the range of expando columns
410            * @param end the upper bound of the range of expando columns (not inclusive)
411            * @return the range of matching expando columns
412            * @throws SystemException if a system exception occurred
413            */
414            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
415                    long tableId, java.lang.String[] names, int start, int end)
416                    throws com.liferay.portal.kernel.exception.SystemException;
417    
418            /**
419            * Returns an ordered range of all the expando columns where tableId = &#63; and name = any &#63;.
420            *
421            * <p>
422            * 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.
423            * </p>
424            *
425            * @param tableId the table ID
426            * @param names the names
427            * @param start the lower bound of the range of expando columns
428            * @param end the upper bound of the range of expando columns (not inclusive)
429            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
430            * @return the ordered range of matching expando columns
431            * @throws SystemException if a system exception occurred
432            */
433            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
434                    long tableId, java.lang.String[] names, int start, int end,
435                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
436                    throws com.liferay.portal.kernel.exception.SystemException;
437    
438            /**
439            * Returns all the expando columns that the user has permission to view where tableId = &#63; and name = &#63;.
440            *
441            * @param tableId the table ID
442            * @param name the name
443            * @return the matching expando columns that the user has permission to view
444            * @throws SystemException if a system exception occurred
445            */
446            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
447                    long tableId, java.lang.String name)
448                    throws com.liferay.portal.kernel.exception.SystemException;
449    
450            /**
451            * Returns a range of all the expando columns that the user has permission to view where tableId = &#63; and name = &#63;.
452            *
453            * <p>
454            * 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.
455            * </p>
456            *
457            * @param tableId the table ID
458            * @param name the name
459            * @param start the lower bound of the range of expando columns
460            * @param end the upper bound of the range of expando columns (not inclusive)
461            * @return the range of matching expando columns that the user has permission to view
462            * @throws SystemException if a system exception occurred
463            */
464            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
465                    long tableId, java.lang.String name, int start, int end)
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            /**
469            * Returns an ordered range of all the expando columns that the user has permissions to view where tableId = &#63; and name = &#63;.
470            *
471            * <p>
472            * 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.
473            * </p>
474            *
475            * @param tableId the table ID
476            * @param name the name
477            * @param start the lower bound of the range of expando columns
478            * @param end the upper bound of the range of expando columns (not inclusive)
479            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
480            * @return the ordered range of matching expando columns that the user has permission to view
481            * @throws SystemException if a system exception occurred
482            */
483            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
484                    long tableId, java.lang.String name, int start, int end,
485                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
486                    throws com.liferay.portal.kernel.exception.SystemException;
487    
488            /**
489            * 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;.
490            *
491            * @param columnId the primary key of the current expando column
492            * @param tableId the table ID
493            * @param name the name
494            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
495            * @return the previous, current, and next expando column
496            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
497            * @throws SystemException if a system exception occurred
498            */
499            public com.liferay.portlet.expando.model.ExpandoColumn[] filterFindByT_N_PrevAndNext(
500                    long columnId, long tableId, java.lang.String name,
501                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
502                    throws com.liferay.portal.kernel.exception.SystemException,
503                            com.liferay.portlet.expando.NoSuchColumnException;
504    
505            /**
506            * Returns all the expando columns that the user has permission to view where tableId = &#63; and name = any &#63;.
507            *
508            * @param tableId the table ID
509            * @param names the names
510            * @return the 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[] names)
515                    throws com.liferay.portal.kernel.exception.SystemException;
516    
517            /**
518            * Returns a range of all the expando columns that the user has permission to view where tableId = &#63; and name = any &#63;.
519            *
520            * <p>
521            * 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.
522            * </p>
523            *
524            * @param tableId the table ID
525            * @param names the names
526            * @param start the lower bound of the range of expando columns
527            * @param end the upper bound of the range of expando columns (not inclusive)
528            * @return the range of matching expando columns that the user has permission to view
529            * @throws SystemException if a system exception occurred
530            */
531            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
532                    long tableId, java.lang.String[] names, int start, int end)
533                    throws com.liferay.portal.kernel.exception.SystemException;
534    
535            /**
536            * Returns an ordered range of all the expando columns that the user has permission to view where tableId = &#63; and name = any &#63;.
537            *
538            * <p>
539            * 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.
540            * </p>
541            *
542            * @param tableId the table ID
543            * @param names the names
544            * @param start the lower bound of the range of expando columns
545            * @param end the upper bound of the range of expando columns (not inclusive)
546            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
547            * @return the ordered range of matching expando columns that the user has permission to view
548            * @throws SystemException if a system exception occurred
549            */
550            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N(
551                    long tableId, java.lang.String[] names, int start, int end,
552                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            /**
556            * Returns all the expando columns.
557            *
558            * @return the expando columns
559            * @throws SystemException if a system exception occurred
560            */
561            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll()
562                    throws com.liferay.portal.kernel.exception.SystemException;
563    
564            /**
565            * Returns a range of all the expando columns.
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 start the lower bound of the range of expando columns
572            * @param end the upper bound of the range of expando columns (not inclusive)
573            * @return the range of expando columns
574            * @throws SystemException if a system exception occurred
575            */
576            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
577                    int start, int end)
578                    throws com.liferay.portal.kernel.exception.SystemException;
579    
580            /**
581            * Returns an ordered range of all the expando columns.
582            *
583            * <p>
584            * 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.
585            * </p>
586            *
587            * @param start the lower bound of the range of expando columns
588            * @param end the upper bound of the range of expando columns (not inclusive)
589            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
590            * @return the ordered range of expando columns
591            * @throws SystemException if a system exception occurred
592            */
593            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
594                    int start, int end,
595                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
596                    throws com.liferay.portal.kernel.exception.SystemException;
597    
598            /**
599            * Removes all the expando columns where tableId = &#63; from the database.
600            *
601            * @param tableId the table ID
602            * @throws SystemException if a system exception occurred
603            */
604            public void removeByTableId(long tableId)
605                    throws com.liferay.portal.kernel.exception.SystemException;
606    
607            /**
608            * Removes all the expando columns where tableId = &#63; and name = &#63; from the database.
609            *
610            * @param tableId the table ID
611            * @param name the name
612            * @throws SystemException if a system exception occurred
613            */
614            public void removeByT_N(long tableId, java.lang.String name)
615                    throws com.liferay.portal.kernel.exception.SystemException;
616    
617            /**
618            * Removes all the expando columns from the database.
619            *
620            * @throws SystemException if a system exception occurred
621            */
622            public void removeAll()
623                    throws com.liferay.portal.kernel.exception.SystemException;
624    
625            /**
626            * Returns the number of expando columns where tableId = &#63;.
627            *
628            * @param tableId the table ID
629            * @return the number of matching expando columns
630            * @throws SystemException if a system exception occurred
631            */
632            public int countByTableId(long tableId)
633                    throws com.liferay.portal.kernel.exception.SystemException;
634    
635            /**
636            * Returns the number of expando columns that the user has permission to view where tableId = &#63;.
637            *
638            * @param tableId the table ID
639            * @return the number of matching expando columns that the user has permission to view
640            * @throws SystemException if a system exception occurred
641            */
642            public int filterCountByTableId(long tableId)
643                    throws com.liferay.portal.kernel.exception.SystemException;
644    
645            /**
646            * Returns the number of expando columns where tableId = &#63; and name = &#63;.
647            *
648            * @param tableId the table ID
649            * @param name the name
650            * @return the number of matching expando columns
651            * @throws SystemException if a system exception occurred
652            */
653            public int countByT_N(long tableId, java.lang.String name)
654                    throws com.liferay.portal.kernel.exception.SystemException;
655    
656            /**
657            * Returns the number of expando columns where tableId = &#63; and name = any &#63;.
658            *
659            * @param tableId the table ID
660            * @param names the names
661            * @return the number of matching expando columns
662            * @throws SystemException if a system exception occurred
663            */
664            public int countByT_N(long tableId, java.lang.String[] names)
665                    throws com.liferay.portal.kernel.exception.SystemException;
666    
667            /**
668            * Returns the number of expando columns that the user has permission to view where tableId = &#63; and name = &#63;.
669            *
670            * @param tableId the table ID
671            * @param name the name
672            * @return the number of matching expando columns that the user has permission to view
673            * @throws SystemException if a system exception occurred
674            */
675            public int filterCountByT_N(long tableId, java.lang.String name)
676                    throws com.liferay.portal.kernel.exception.SystemException;
677    
678            /**
679            * Returns the number of expando columns that the user has permission to view where tableId = &#63; and name = any &#63;.
680            *
681            * @param tableId the table ID
682            * @param names the names
683            * @return the number of matching expando columns that the user has permission to view
684            * @throws SystemException if a system exception occurred
685            */
686            public int filterCountByT_N(long tableId, java.lang.String[] names)
687                    throws com.liferay.portal.kernel.exception.SystemException;
688    
689            /**
690            * Returns the number of expando columns.
691            *
692            * @return the number of expando columns
693            * @throws SystemException if a system exception occurred
694            */
695            public int countAll()
696                    throws com.liferay.portal.kernel.exception.SystemException;
697    }