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