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.dynamicdatamapping.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.dynamicdatamapping.model.DDMContent;
020    
021    /**
022     * The persistence interface for the d d m content 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 DDMContentPersistenceImpl
030     * @see DDMContentUtil
031     * @generated
032     */
033    public interface DDMContentPersistence extends BasePersistence<DDMContent> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link DDMContentUtil} to access the d d m content persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the d d m content in the entity cache if it is enabled.
042            *
043            * @param ddmContent the d d m content
044            */
045            public void cacheResult(
046                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent);
047    
048            /**
049            * Caches the d d m contents in the entity cache if it is enabled.
050            *
051            * @param ddmContents the d d m contents
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> ddmContents);
055    
056            /**
057            * Creates a new d d m content with the primary key. Does not add the d d m content to the database.
058            *
059            * @param contentId the primary key for the new d d m content
060            * @return the new d d m content
061            */
062            public com.liferay.portlet.dynamicdatamapping.model.DDMContent create(
063                    long contentId);
064    
065            /**
066            * Removes the d d m content with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param contentId the primary key of the d d m content
069            * @return the d d m content that was removed
070            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a d d m content with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.dynamicdatamapping.model.DDMContent remove(
074                    long contentId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException;
077    
078            public com.liferay.portlet.dynamicdatamapping.model.DDMContent updateImpl(
079                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent,
080                    boolean merge)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * Returns the d d m content with the primary key or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchContentException} if it could not be found.
085            *
086            * @param contentId the primary key of the d d m content
087            * @return the d d m content
088            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a d d m content with the primary key could not be found
089            * @throws SystemException if a system exception occurred
090            */
091            public com.liferay.portlet.dynamicdatamapping.model.DDMContent findByPrimaryKey(
092                    long contentId)
093                    throws com.liferay.portal.kernel.exception.SystemException,
094                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException;
095    
096            /**
097            * Returns the d d m content with the primary key or returns <code>null</code> if it could not be found.
098            *
099            * @param contentId the primary key of the d d m content
100            * @return the d d m content, or <code>null</code> if a d d m content with the primary key could not be found
101            * @throws SystemException if a system exception occurred
102            */
103            public com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchByPrimaryKey(
104                    long contentId)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            /**
108            * Returns all the d d m contents where uuid = &#63;.
109            *
110            * @param uuid the uuid
111            * @return the matching d d m contents
112            * @throws SystemException if a system exception occurred
113            */
114            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByUuid(
115                    java.lang.String uuid)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns a range of all the d d m contents where uuid = &#63;.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param uuid the uuid
126            * @param start the lower bound of the range of d d m contents
127            * @param end the upper bound of the range of d d m contents (not inclusive)
128            * @return the range of matching d d m contents
129            * @throws SystemException if a system exception occurred
130            */
131            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByUuid(
132                    java.lang.String uuid, int start, int end)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            /**
136            * Returns an ordered range of all the d d m contents where uuid = &#63;.
137            *
138            * <p>
139            * 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.
140            * </p>
141            *
142            * @param uuid the uuid
143            * @param start the lower bound of the range of d d m contents
144            * @param end the upper bound of the range of d d m contents (not inclusive)
145            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
146            * @return the ordered range of matching d d m contents
147            * @throws SystemException if a system exception occurred
148            */
149            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByUuid(
150                    java.lang.String uuid, int start, int end,
151                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            /**
155            * Returns the first d d m content in the ordered set where uuid = &#63;.
156            *
157            * <p>
158            * 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.
159            * </p>
160            *
161            * @param uuid the uuid
162            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
163            * @return the first matching d d m content
164            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
165            * @throws SystemException if a system exception occurred
166            */
167            public com.liferay.portlet.dynamicdatamapping.model.DDMContent findByUuid_First(
168                    java.lang.String uuid,
169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170                    throws com.liferay.portal.kernel.exception.SystemException,
171                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException;
172    
173            /**
174            * Returns the last d d m content in the ordered set where uuid = &#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.
178            * </p>
179            *
180            * @param uuid the uuid
181            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
182            * @return the last matching d d m content
183            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public com.liferay.portlet.dynamicdatamapping.model.DDMContent findByUuid_Last(
187                    java.lang.String uuid,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException;
191    
192            /**
193            * Returns the d d m contents before and after the current d d m content in the ordered set where uuid = &#63;.
194            *
195            * <p>
196            * 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.
197            * </p>
198            *
199            * @param contentId the primary key of the current d d m content
200            * @param uuid the uuid
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the previous, current, and next d d m content
203            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a d d m content with the primary key could not be found
204            * @throws SystemException if a system exception occurred
205            */
206            public com.liferay.portlet.dynamicdatamapping.model.DDMContent[] findByUuid_PrevAndNext(
207                    long contentId, java.lang.String uuid,
208                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209                    throws com.liferay.portal.kernel.exception.SystemException,
210                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException;
211    
212            /**
213            * Returns the d d m content where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchContentException} if it could not be found.
214            *
215            * @param uuid the uuid
216            * @param groupId the group ID
217            * @return the matching d d m content
218            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portlet.dynamicdatamapping.model.DDMContent findByUUID_G(
222                    java.lang.String uuid, long groupId)
223                    throws com.liferay.portal.kernel.exception.SystemException,
224                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException;
225    
226            /**
227            * Returns the d d m content where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
228            *
229            * @param uuid the uuid
230            * @param groupId the group ID
231            * @return the matching d d m content, or <code>null</code> if a matching d d m content could not be found
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchByUUID_G(
235                    java.lang.String uuid, long groupId)
236                    throws com.liferay.portal.kernel.exception.SystemException;
237    
238            /**
239            * Returns the d d m content where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
240            *
241            * @param uuid the uuid
242            * @param groupId the group ID
243            * @param retrieveFromCache whether to use the finder cache
244            * @return the matching d d m content, or <code>null</code> if a matching d d m content could not be found
245            * @throws SystemException if a system exception occurred
246            */
247            public com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchByUUID_G(
248                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            /**
252            * Returns all the d d m contents where groupId = &#63;.
253            *
254            * @param groupId the group ID
255            * @return the matching d d m contents
256            * @throws SystemException if a system exception occurred
257            */
258            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByGroupId(
259                    long groupId)
260                    throws com.liferay.portal.kernel.exception.SystemException;
261    
262            /**
263            * Returns a range of all the d d m contents where groupId = &#63;.
264            *
265            * <p>
266            * 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.
267            * </p>
268            *
269            * @param groupId the group ID
270            * @param start the lower bound of the range of d d m contents
271            * @param end the upper bound of the range of d d m contents (not inclusive)
272            * @return the range of matching d d m contents
273            * @throws SystemException if a system exception occurred
274            */
275            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByGroupId(
276                    long groupId, int start, int end)
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            /**
280            * Returns an ordered range of all the d d m contents where groupId = &#63;.
281            *
282            * <p>
283            * 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.
284            * </p>
285            *
286            * @param groupId the group ID
287            * @param start the lower bound of the range of d d m contents
288            * @param end the upper bound of the range of d d m contents (not inclusive)
289            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
290            * @return the ordered range of matching d d m contents
291            * @throws SystemException if a system exception occurred
292            */
293            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByGroupId(
294                    long groupId, int start, int end,
295                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296                    throws com.liferay.portal.kernel.exception.SystemException;
297    
298            /**
299            * Returns the first d d m content in the ordered set where groupId = &#63;.
300            *
301            * <p>
302            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
303            * </p>
304            *
305            * @param groupId the group ID
306            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
307            * @return the first matching d d m content
308            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
309            * @throws SystemException if a system exception occurred
310            */
311            public com.liferay.portlet.dynamicdatamapping.model.DDMContent findByGroupId_First(
312                    long groupId,
313                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314                    throws com.liferay.portal.kernel.exception.SystemException,
315                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException;
316    
317            /**
318            * Returns the last d d m content in the ordered set where groupId = &#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 groupId the group ID
325            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
326            * @return the last matching d d m content
327            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
328            * @throws SystemException if a system exception occurred
329            */
330            public com.liferay.portlet.dynamicdatamapping.model.DDMContent findByGroupId_Last(
331                    long groupId,
332                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
333                    throws com.liferay.portal.kernel.exception.SystemException,
334                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException;
335    
336            /**
337            * Returns the d d m contents before and after the current d d m content in the ordered set where groupId = &#63;.
338            *
339            * <p>
340            * 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.
341            * </p>
342            *
343            * @param contentId the primary key of the current d d m content
344            * @param groupId the group ID
345            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
346            * @return the previous, current, and next d d m content
347            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a d d m content with the primary key could not be found
348            * @throws SystemException if a system exception occurred
349            */
350            public com.liferay.portlet.dynamicdatamapping.model.DDMContent[] findByGroupId_PrevAndNext(
351                    long contentId, long groupId,
352                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
353                    throws com.liferay.portal.kernel.exception.SystemException,
354                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException;
355    
356            /**
357            * Returns all the d d m contents where companyId = &#63;.
358            *
359            * @param companyId the company ID
360            * @return the matching d d m contents
361            * @throws SystemException if a system exception occurred
362            */
363            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByCompanyId(
364                    long companyId)
365                    throws com.liferay.portal.kernel.exception.SystemException;
366    
367            /**
368            * Returns a range of all the d d m contents where companyId = &#63;.
369            *
370            * <p>
371            * 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.
372            * </p>
373            *
374            * @param companyId the company ID
375            * @param start the lower bound of the range of d d m contents
376            * @param end the upper bound of the range of d d m contents (not inclusive)
377            * @return the range of matching d d m contents
378            * @throws SystemException if a system exception occurred
379            */
380            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByCompanyId(
381                    long companyId, int start, int end)
382                    throws com.liferay.portal.kernel.exception.SystemException;
383    
384            /**
385            * Returns an ordered range of all the d d m contents where companyId = &#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 companyId the company ID
392            * @param start the lower bound of the range of d d m contents
393            * @param end the upper bound of the range of d d m contents (not inclusive)
394            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
395            * @return the ordered range of matching d d m contents
396            * @throws SystemException if a system exception occurred
397            */
398            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByCompanyId(
399                    long companyId, int start, int end,
400                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
401                    throws com.liferay.portal.kernel.exception.SystemException;
402    
403            /**
404            * Returns the first d d m content in the ordered set where companyId = &#63;.
405            *
406            * <p>
407            * 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.
408            * </p>
409            *
410            * @param companyId the company ID
411            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
412            * @return the first matching d d m content
413            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
414            * @throws SystemException if a system exception occurred
415            */
416            public com.liferay.portlet.dynamicdatamapping.model.DDMContent findByCompanyId_First(
417                    long companyId,
418                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
419                    throws com.liferay.portal.kernel.exception.SystemException,
420                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException;
421    
422            /**
423            * Returns the last d d m content in the ordered set where companyId = &#63;.
424            *
425            * <p>
426            * 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.
427            * </p>
428            *
429            * @param companyId the company ID
430            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
431            * @return the last matching d d m content
432            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
433            * @throws SystemException if a system exception occurred
434            */
435            public com.liferay.portlet.dynamicdatamapping.model.DDMContent findByCompanyId_Last(
436                    long companyId,
437                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
438                    throws com.liferay.portal.kernel.exception.SystemException,
439                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException;
440    
441            /**
442            * Returns the d d m contents before and after the current d d m content in the ordered set where companyId = &#63;.
443            *
444            * <p>
445            * 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.
446            * </p>
447            *
448            * @param contentId the primary key of the current d d m content
449            * @param companyId the company ID
450            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
451            * @return the previous, current, and next d d m content
452            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a d d m content with the primary key could not be found
453            * @throws SystemException if a system exception occurred
454            */
455            public com.liferay.portlet.dynamicdatamapping.model.DDMContent[] findByCompanyId_PrevAndNext(
456                    long contentId, long companyId,
457                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
458                    throws com.liferay.portal.kernel.exception.SystemException,
459                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException;
460    
461            /**
462            * Returns all the d d m contents.
463            *
464            * @return the d d m contents
465            * @throws SystemException if a system exception occurred
466            */
467            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findAll()
468                    throws com.liferay.portal.kernel.exception.SystemException;
469    
470            /**
471            * Returns a range of all the d d m contents.
472            *
473            * <p>
474            * 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.
475            * </p>
476            *
477            * @param start the lower bound of the range of d d m contents
478            * @param end the upper bound of the range of d d m contents (not inclusive)
479            * @return the range of d d m contents
480            * @throws SystemException if a system exception occurred
481            */
482            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findAll(
483                    int start, int end)
484                    throws com.liferay.portal.kernel.exception.SystemException;
485    
486            /**
487            * Returns an ordered range of all the d d m contents.
488            *
489            * <p>
490            * 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.
491            * </p>
492            *
493            * @param start the lower bound of the range of d d m contents
494            * @param end the upper bound of the range of d d m contents (not inclusive)
495            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
496            * @return the ordered range of d d m contents
497            * @throws SystemException if a system exception occurred
498            */
499            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findAll(
500                    int start, int end,
501                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
502                    throws com.liferay.portal.kernel.exception.SystemException;
503    
504            /**
505            * Removes all the d d m contents where uuid = &#63; from the database.
506            *
507            * @param uuid the uuid
508            * @throws SystemException if a system exception occurred
509            */
510            public void removeByUuid(java.lang.String uuid)
511                    throws com.liferay.portal.kernel.exception.SystemException;
512    
513            /**
514            * Removes the d d m content where uuid = &#63; and groupId = &#63; from the database.
515            *
516            * @param uuid the uuid
517            * @param groupId the group ID
518            * @throws SystemException if a system exception occurred
519            */
520            public void removeByUUID_G(java.lang.String uuid, long groupId)
521                    throws com.liferay.portal.kernel.exception.SystemException,
522                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException;
523    
524            /**
525            * Removes all the d d m contents where groupId = &#63; from the database.
526            *
527            * @param groupId the group ID
528            * @throws SystemException if a system exception occurred
529            */
530            public void removeByGroupId(long groupId)
531                    throws com.liferay.portal.kernel.exception.SystemException;
532    
533            /**
534            * Removes all the d d m contents where companyId = &#63; from the database.
535            *
536            * @param companyId the company ID
537            * @throws SystemException if a system exception occurred
538            */
539            public void removeByCompanyId(long companyId)
540                    throws com.liferay.portal.kernel.exception.SystemException;
541    
542            /**
543            * Removes all the d d m contents from the database.
544            *
545            * @throws SystemException if a system exception occurred
546            */
547            public void removeAll()
548                    throws com.liferay.portal.kernel.exception.SystemException;
549    
550            /**
551            * Returns the number of d d m contents where uuid = &#63;.
552            *
553            * @param uuid the uuid
554            * @return the number of matching d d m contents
555            * @throws SystemException if a system exception occurred
556            */
557            public int countByUuid(java.lang.String uuid)
558                    throws com.liferay.portal.kernel.exception.SystemException;
559    
560            /**
561            * Returns the number of d d m contents where uuid = &#63; and groupId = &#63;.
562            *
563            * @param uuid the uuid
564            * @param groupId the group ID
565            * @return the number of matching d d m contents
566            * @throws SystemException if a system exception occurred
567            */
568            public int countByUUID_G(java.lang.String uuid, long groupId)
569                    throws com.liferay.portal.kernel.exception.SystemException;
570    
571            /**
572            * Returns the number of d d m contents where groupId = &#63;.
573            *
574            * @param groupId the group ID
575            * @return the number of matching d d m contents
576            * @throws SystemException if a system exception occurred
577            */
578            public int countByGroupId(long groupId)
579                    throws com.liferay.portal.kernel.exception.SystemException;
580    
581            /**
582            * Returns the number of d d m contents where companyId = &#63;.
583            *
584            * @param companyId the company ID
585            * @return the number of matching d d m contents
586            * @throws SystemException if a system exception occurred
587            */
588            public int countByCompanyId(long companyId)
589                    throws com.liferay.portal.kernel.exception.SystemException;
590    
591            /**
592            * Returns the number of d d m contents.
593            *
594            * @return the number of d d m contents
595            * @throws SystemException if a system exception occurred
596            */
597            public int countAll()
598                    throws com.liferay.portal.kernel.exception.SystemException;
599    }