001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.expando.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.expando.model.ExpandoColumn;
022    
023    /**
024     * The persistence interface for the expando column service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see ExpandoColumnPersistenceImpl
032     * @see ExpandoColumnUtil
033     * @generated
034     */
035    @ProviderType
036    public interface ExpandoColumnPersistence extends BasePersistence<ExpandoColumn> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * 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.
041             */
042    
043            /**
044            * Returns all the expando columns where tableId = &#63;.
045            *
046            * @param tableId the table ID
047            * @return the matching expando columns
048            * @throws SystemException if a system exception occurred
049            */
050            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
051                    long tableId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Returns a range of all the expando columns where tableId = &#63;.
056            *
057            * <p>
058            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
059            * </p>
060            *
061            * @param tableId the table ID
062            * @param start the lower bound of the range of expando columns
063            * @param end the upper bound of the range of expando columns (not inclusive)
064            * @return the range of matching expando columns
065            * @throws SystemException if a system exception occurred
066            */
067            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
068                    long tableId, int start, int end)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            /**
072            * Returns an ordered range of all the expando columns where tableId = &#63;.
073            *
074            * <p>
075            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
076            * </p>
077            *
078            * @param tableId the table ID
079            * @param start the lower bound of the range of expando columns
080            * @param end the upper bound of the range of expando columns (not inclusive)
081            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
082            * @return the ordered range of matching expando columns
083            * @throws SystemException if a system exception occurred
084            */
085            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
086                    long tableId, int start, int end,
087                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            /**
091            * Returns the first expando column in the ordered set where tableId = &#63;.
092            *
093            * @param tableId the table ID
094            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
095            * @return the first matching expando column
096            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First(
100                    long tableId,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.expando.NoSuchColumnException;
104    
105            /**
106            * Returns the first expando column in the ordered set where tableId = &#63;.
107            *
108            * @param tableId the table ID
109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
110            * @return the first matching expando column, or <code>null</code> if a matching expando column could not be found
111            * @throws SystemException if a system exception occurred
112            */
113            public com.liferay.portlet.expando.model.ExpandoColumn fetchByTableId_First(
114                    long tableId,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns the last expando column in the ordered set where tableId = &#63;.
120            *
121            * @param tableId the table ID
122            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
123            * @return the last matching expando column
124            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
125            * @throws SystemException if a system exception occurred
126            */
127            public com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last(
128                    long tableId,
129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130                    throws com.liferay.portal.kernel.exception.SystemException,
131                            com.liferay.portlet.expando.NoSuchColumnException;
132    
133            /**
134            * Returns the last expando column in the ordered set where tableId = &#63;.
135            *
136            * @param tableId the table ID
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the last matching expando column, or <code>null</code> if a matching expando column could not be found
139            * @throws SystemException if a system exception occurred
140            */
141            public com.liferay.portlet.expando.model.ExpandoColumn fetchByTableId_Last(
142                    long tableId,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            /**
147            * Returns the expando columns before and after the current expando column in the ordered set where tableId = &#63;.
148            *
149            * @param columnId the primary key of the current expando column
150            * @param tableId the table ID
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next expando column
153            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext(
157                    long columnId, long tableId,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.expando.NoSuchColumnException;
161    
162            /**
163            * Returns all the expando columns that the user has permission to view where tableId = &#63;.
164            *
165            * @param tableId the table ID
166            * @return the matching expando columns that the user has permission to view
167            * @throws SystemException if a system exception occurred
168            */
169            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId(
170                    long tableId)
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            /**
174            * Returns a range of all the expando columns that the user has permission to view where tableId = &#63;.
175            *
176            * <p>
177            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
178            * </p>
179            *
180            * @param tableId the table ID
181            * @param start the lower bound of the range of expando columns
182            * @param end the upper bound of the range of expando columns (not inclusive)
183            * @return the range of matching expando columns that the user has permission to view
184            * @throws SystemException if a system exception occurred
185            */
186            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId(
187                    long tableId, int start, int end)
188                    throws com.liferay.portal.kernel.exception.SystemException;
189    
190            /**
191            * Returns an ordered range of all the expando columns that the user has permissions to view 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
195            * </p>
196            *
197            * @param tableId the table ID
198            * @param start the lower bound of the range of expando columns
199            * @param end the upper bound of the range of expando columns (not inclusive)
200            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
201            * @return the ordered range of matching expando columns that the user has permission to view
202            * @throws SystemException if a system exception occurred
203            */
204            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId(
205                    long tableId, int start, int end,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * 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;.
211            *
212            * @param columnId the primary key of the current expando column
213            * @param tableId the table ID
214            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
215            * @return the previous, current, and next expando column
216            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.expando.model.ExpandoColumn[] filterFindByTableId_PrevAndNext(
220                    long columnId, long tableId,
221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222                    throws com.liferay.portal.kernel.exception.SystemException,
223                            com.liferay.portlet.expando.NoSuchColumnException;
224    
225            /**
226            * Removes all the expando columns where tableId = &#63; from the database.
227            *
228            * @param tableId the table ID
229            * @throws SystemException if a system exception occurred
230            */
231            public void removeByTableId(long tableId)
232                    throws com.liferay.portal.kernel.exception.SystemException;
233    
234            /**
235            * Returns the number of expando columns where tableId = &#63;.
236            *
237            * @param tableId the table ID
238            * @return the number of matching expando columns
239            * @throws SystemException if a system exception occurred
240            */
241            public int countByTableId(long tableId)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            /**
245            * Returns the number of expando columns that the user has permission to view where tableId = &#63;.
246            *
247            * @param tableId the table ID
248            * @return the number of matching expando columns that the user has permission to view
249            * @throws SystemException if a system exception occurred
250            */
251            public int filterCountByTableId(long tableId)
252                    throws com.liferay.portal.kernel.exception.SystemException;
253    
254            /**
255            * Returns all the expando columns where tableId = &#63; and name = any &#63;.
256            *
257            * <p>
258            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
259            * </p>
260            *
261            * @param tableId the table ID
262            * @param names the names
263            * @return the matching expando columns
264            * @throws SystemException if a system exception occurred
265            */
266            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
267                    long tableId, java.lang.String[] names)
268                    throws com.liferay.portal.kernel.exception.SystemException;
269    
270            /**
271            * Returns a range of all the expando columns where tableId = &#63; and name = any &#63;.
272            *
273            * <p>
274            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
275            * </p>
276            *
277            * @param tableId the table ID
278            * @param names the names
279            * @param start the lower bound of the range of expando columns
280            * @param end the upper bound of the range of expando columns (not inclusive)
281            * @return the range of matching expando columns
282            * @throws SystemException if a system exception occurred
283            */
284            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
285                    long tableId, java.lang.String[] names, int start, int end)
286                    throws com.liferay.portal.kernel.exception.SystemException;
287    
288            /**
289            * Returns an ordered range of all the expando columns where tableId = &#63; and name = any &#63;.
290            *
291            * <p>
292            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
293            * </p>
294            *
295            * @param tableId the table ID
296            * @param names the names
297            * @param start the lower bound of the range of expando columns
298            * @param end the upper bound of the range of expando columns (not inclusive)
299            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
300            * @return the ordered range of matching expando columns
301            * @throws SystemException if a system exception occurred
302            */
303            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N(
304                    long tableId, java.lang.String[] names, int start, int end,
305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306                    throws com.liferay.portal.kernel.exception.SystemException;
307    
308            /**
309            * Returns the expando column where tableId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.expando.NoSuchColumnException} if it could not be found.
310            *
311            * @param tableId the table ID
312            * @param name the name
313            * @return the matching expando column
314            * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found
315            * @throws SystemException if a system exception occurred
316            */
317            public com.liferay.portlet.expando.model.ExpandoColumn findByT_N(
318                    long tableId, java.lang.String name)
319                    throws com.liferay.portal.kernel.exception.SystemException,
320                            com.liferay.portlet.expando.NoSuchColumnException;
321    
322            /**
323            * Returns the expando column where tableId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
324            *
325            * @param tableId the table ID
326            * @param name the name
327            * @return the matching expando column, or <code>null</code> if a matching expando column could not be found
328            * @throws SystemException if a system exception occurred
329            */
330            public com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
331                    long tableId, java.lang.String name)
332                    throws com.liferay.portal.kernel.exception.SystemException;
333    
334            /**
335            * Returns the expando column where tableId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
336            *
337            * @param tableId the table ID
338            * @param name the name
339            * @param retrieveFromCache whether to use the finder cache
340            * @return the matching expando column, or <code>null</code> if a matching expando column could not be found
341            * @throws SystemException if a system exception occurred
342            */
343            public com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
344                    long tableId, java.lang.String name, boolean retrieveFromCache)
345                    throws com.liferay.portal.kernel.exception.SystemException;
346    
347            /**
348            * Removes the expando column where tableId = &#63; and name = &#63; from the database.
349            *
350            * @param tableId the table ID
351            * @param name the name
352            * @return the expando column that was removed
353            * @throws SystemException if a system exception occurred
354            */
355            public com.liferay.portlet.expando.model.ExpandoColumn removeByT_N(
356                    long tableId, java.lang.String name)
357                    throws com.liferay.portal.kernel.exception.SystemException,
358                            com.liferay.portlet.expando.NoSuchColumnException;
359    
360            /**
361            * Returns the number of expando columns where tableId = &#63; and name = &#63;.
362            *
363            * @param tableId the table ID
364            * @param name the name
365            * @return the number of matching expando columns
366            * @throws SystemException if a system exception occurred
367            */
368            public int countByT_N(long tableId, java.lang.String name)
369                    throws com.liferay.portal.kernel.exception.SystemException;
370    
371            /**
372            * Returns the number of expando columns where tableId = &#63; and name = any &#63;.
373            *
374            * @param tableId the table ID
375            * @param names the names
376            * @return the number of matching expando columns
377            * @throws SystemException if a system exception occurred
378            */
379            public int countByT_N(long tableId, java.lang.String[] names)
380                    throws com.liferay.portal.kernel.exception.SystemException;
381    
382            /**
383            * Returns the number of expando columns that the user has permission to view where tableId = &#63; and name = &#63;.
384            *
385            * @param tableId the table ID
386            * @param name the name
387            * @return the number of matching expando columns that the user has permission to view
388            * @throws SystemException if a system exception occurred
389            */
390            public int filterCountByT_N(long tableId, java.lang.String name)
391                    throws com.liferay.portal.kernel.exception.SystemException;
392    
393            /**
394            * Returns the number of expando columns that the user has permission to view where tableId = &#63; and name = any &#63;.
395            *
396            * @param tableId the table ID
397            * @param names the names
398            * @return the number of matching expando columns that the user has permission to view
399            * @throws SystemException if a system exception occurred
400            */
401            public int filterCountByT_N(long tableId, java.lang.String[] names)
402                    throws com.liferay.portal.kernel.exception.SystemException;
403    
404            /**
405            * Caches the expando column in the entity cache if it is enabled.
406            *
407            * @param expandoColumn the expando column
408            */
409            public void cacheResult(
410                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn);
411    
412            /**
413            * Caches the expando columns in the entity cache if it is enabled.
414            *
415            * @param expandoColumns the expando columns
416            */
417            public void cacheResult(
418                    java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> expandoColumns);
419    
420            /**
421            * Creates a new expando column with the primary key. Does not add the expando column to the database.
422            *
423            * @param columnId the primary key for the new expando column
424            * @return the new expando column
425            */
426            public com.liferay.portlet.expando.model.ExpandoColumn create(long columnId);
427    
428            /**
429            * Removes the expando column with the primary key from the database. Also notifies the appropriate model listeners.
430            *
431            * @param columnId the primary key of the expando column
432            * @return the expando column that was removed
433            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
434            * @throws SystemException if a system exception occurred
435            */
436            public com.liferay.portlet.expando.model.ExpandoColumn remove(long columnId)
437                    throws com.liferay.portal.kernel.exception.SystemException,
438                            com.liferay.portlet.expando.NoSuchColumnException;
439    
440            public com.liferay.portlet.expando.model.ExpandoColumn updateImpl(
441                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
442                    throws com.liferay.portal.kernel.exception.SystemException;
443    
444            /**
445            * Returns the expando column with the primary key or throws a {@link com.liferay.portlet.expando.NoSuchColumnException} if it could not be found.
446            *
447            * @param columnId the primary key of the expando column
448            * @return the expando column
449            * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found
450            * @throws SystemException if a system exception occurred
451            */
452            public com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey(
453                    long columnId)
454                    throws com.liferay.portal.kernel.exception.SystemException,
455                            com.liferay.portlet.expando.NoSuchColumnException;
456    
457            /**
458            * Returns the expando column with the primary key or returns <code>null</code> if it could not be found.
459            *
460            * @param columnId the primary key of the expando column
461            * @return the expando column, or <code>null</code> if a expando column with the primary key could not be found
462            * @throws SystemException if a system exception occurred
463            */
464            public com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey(
465                    long columnId)
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            /**
469            * Returns all the expando columns.
470            *
471            * @return the expando columns
472            * @throws SystemException if a system exception occurred
473            */
474            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll()
475                    throws com.liferay.portal.kernel.exception.SystemException;
476    
477            /**
478            * Returns a range of all the expando columns.
479            *
480            * <p>
481            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
482            * </p>
483            *
484            * @param start the lower bound of the range of expando columns
485            * @param end the upper bound of the range of expando columns (not inclusive)
486            * @return the range of expando columns
487            * @throws SystemException if a system exception occurred
488            */
489            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
490                    int start, int end)
491                    throws com.liferay.portal.kernel.exception.SystemException;
492    
493            /**
494            * Returns an ordered range of all the expando columns.
495            *
496            * <p>
497            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
498            * </p>
499            *
500            * @param start the lower bound of the range of expando columns
501            * @param end the upper bound of the range of expando columns (not inclusive)
502            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
503            * @return the ordered range of expando columns
504            * @throws SystemException if a system exception occurred
505            */
506            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
507                    int start, int end,
508                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
509                    throws com.liferay.portal.kernel.exception.SystemException;
510    
511            /**
512            * Removes all the expando columns from the database.
513            *
514            * @throws SystemException if a system exception occurred
515            */
516            public void removeAll()
517                    throws com.liferay.portal.kernel.exception.SystemException;
518    
519            /**
520            * Returns the number of expando columns.
521            *
522            * @return the number of expando columns
523            * @throws SystemException if a system exception occurred
524            */
525            public int countAll()
526                    throws com.liferay.portal.kernel.exception.SystemException;
527    }