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.dynamicdatamapping.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.dynamicdatamapping.model.DDMStructure;
020    
021    /**
022     * The persistence interface for the d d m structure 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 DDMStructurePersistenceImpl
030     * @see DDMStructureUtil
031     * @generated
032     */
033    public interface DDMStructurePersistence extends BasePersistence<DDMStructure> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link DDMStructureUtil} to access the d d m structure persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the d d m structure in the entity cache if it is enabled.
042            *
043            * @param ddmStructure the d d m structure
044            */
045            public void cacheResult(
046                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure);
047    
048            /**
049            * Caches the d d m structures in the entity cache if it is enabled.
050            *
051            * @param ddmStructures the d d m structures
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures);
055    
056            /**
057            * Creates a new d d m structure with the primary key. Does not add the d d m structure to the database.
058            *
059            * @param structureId the primary key for the new d d m structure
060            * @return the new d d m structure
061            */
062            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure create(
063                    long structureId);
064    
065            /**
066            * Removes the d d m structure with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param structureId the primary key of the d d m structure
069            * @return the d d m structure that was removed
070            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure remove(
074                    long structureId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
077    
078            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateImpl(
079                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure,
080                    boolean merge)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * Returns the d d m structure with the primary key or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureException} if it could not be found.
085            *
086            * @param structureId the primary key of the d d m structure
087            * @return the d d m structure
088            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
089            * @throws SystemException if a system exception occurred
090            */
091            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByPrimaryKey(
092                    long structureId)
093                    throws com.liferay.portal.kernel.exception.SystemException,
094                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
095    
096            /**
097            * Returns the d d m structure with the primary key or returns <code>null</code> if it could not be found.
098            *
099            * @param structureId the primary key of the d d m structure
100            * @return the d d m structure, or <code>null</code> if a d d m structure with the primary key could not be found
101            * @throws SystemException if a system exception occurred
102            */
103            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByPrimaryKey(
104                    long structureId)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            /**
108            * Returns all the d d m structures where uuid = &#63;.
109            *
110            * @param uuid the uuid
111            * @return the matching d d m structures
112            * @throws SystemException if a system exception occurred
113            */
114            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> 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 structures 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 structures
127            * @param end the upper bound of the range of d d m structures (not inclusive)
128            * @return the range of matching d d m structures
129            * @throws SystemException if a system exception occurred
130            */
131            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> 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 structures 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 structures
144            * @param end the upper bound of the range of d d m structures (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 structures
147            * @throws SystemException if a system exception occurred
148            */
149            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> 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 structure in the ordered set where uuid = &#63;.
156            *
157            * @param uuid the uuid
158            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
159            * @return the first matching d d m structure
160            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByUuid_First(
164                    java.lang.String uuid,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException,
167                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
168    
169            /**
170            * Returns the first d d m structure in the ordered set where uuid = &#63;.
171            *
172            * @param uuid the uuid
173            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
174            * @return the first matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUuid_First(
178                    java.lang.String uuid,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            /**
183            * Returns the last d d m structure in the ordered set where uuid = &#63;.
184            *
185            * @param uuid the uuid
186            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
187            * @return the last matching d d m structure
188            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByUuid_Last(
192                    java.lang.String uuid,
193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194                    throws com.liferay.portal.kernel.exception.SystemException,
195                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
196    
197            /**
198            * Returns the last d d m structure in the ordered set where uuid = &#63;.
199            *
200            * @param uuid the uuid
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the last matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
203            * @throws SystemException if a system exception occurred
204            */
205            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUuid_Last(
206                    java.lang.String uuid,
207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            /**
211            * Returns the d d m structures before and after the current d d m structure in the ordered set where uuid = &#63;.
212            *
213            * @param structureId the primary key of the current d d m structure
214            * @param uuid the uuid
215            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
216            * @return the previous, current, and next d d m structure
217            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByUuid_PrevAndNext(
221                    long structureId, java.lang.String uuid,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223                    throws com.liferay.portal.kernel.exception.SystemException,
224                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
225    
226            /**
227            * Returns the d d m structure where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureException} if it could not be found.
228            *
229            * @param uuid the uuid
230            * @param groupId the group ID
231            * @return the matching d d m structure
232            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
233            * @throws SystemException if a system exception occurred
234            */
235            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByUUID_G(
236                    java.lang.String uuid, long groupId)
237                    throws com.liferay.portal.kernel.exception.SystemException,
238                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
239    
240            /**
241            * Returns the d d m structure where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
242            *
243            * @param uuid the uuid
244            * @param groupId the group ID
245            * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
246            * @throws SystemException if a system exception occurred
247            */
248            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUUID_G(
249                    java.lang.String uuid, long groupId)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            /**
253            * Returns the d d m structure where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
254            *
255            * @param uuid the uuid
256            * @param groupId the group ID
257            * @param retrieveFromCache whether to use the finder cache
258            * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
259            * @throws SystemException if a system exception occurred
260            */
261            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUUID_G(
262                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
263                    throws com.liferay.portal.kernel.exception.SystemException;
264    
265            /**
266            * Returns all the d d m structures where groupId = &#63;.
267            *
268            * @param groupId the group ID
269            * @return the matching d d m structures
270            * @throws SystemException if a system exception occurred
271            */
272            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByGroupId(
273                    long groupId)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * Returns a range of all the d d m structures where groupId = &#63;.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param groupId the group ID
284            * @param start the lower bound of the range of d d m structures
285            * @param end the upper bound of the range of d d m structures (not inclusive)
286            * @return the range of matching d d m structures
287            * @throws SystemException if a system exception occurred
288            */
289            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByGroupId(
290                    long groupId, int start, int end)
291                    throws com.liferay.portal.kernel.exception.SystemException;
292    
293            /**
294            * Returns an ordered range of all the d d m structures where groupId = &#63;.
295            *
296            * <p>
297            * 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.
298            * </p>
299            *
300            * @param groupId the group ID
301            * @param start the lower bound of the range of d d m structures
302            * @param end the upper bound of the range of d d m structures (not inclusive)
303            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
304            * @return the ordered range of matching d d m structures
305            * @throws SystemException if a system exception occurred
306            */
307            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByGroupId(
308                    long groupId, int start, int end,
309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310                    throws com.liferay.portal.kernel.exception.SystemException;
311    
312            /**
313            * Returns the first d d m structure in the ordered set where groupId = &#63;.
314            *
315            * @param groupId the group ID
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the first matching d d m structure
318            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByGroupId_First(
322                    long groupId,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
326    
327            /**
328            * Returns the first d d m structure in the ordered set where groupId = &#63;.
329            *
330            * @param groupId the group ID
331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
332            * @return the first matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
333            * @throws SystemException if a system exception occurred
334            */
335            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByGroupId_First(
336                    long groupId,
337                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            /**
341            * Returns the last d d m structure in the ordered set where groupId = &#63;.
342            *
343            * @param groupId the group ID
344            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
345            * @return the last matching d d m structure
346            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
347            * @throws SystemException if a system exception occurred
348            */
349            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByGroupId_Last(
350                    long groupId,
351                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352                    throws com.liferay.portal.kernel.exception.SystemException,
353                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
354    
355            /**
356            * Returns the last d d m structure in the ordered set where groupId = &#63;.
357            *
358            * @param groupId the group ID
359            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
360            * @return the last matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
361            * @throws SystemException if a system exception occurred
362            */
363            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByGroupId_Last(
364                    long groupId,
365                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366                    throws com.liferay.portal.kernel.exception.SystemException;
367    
368            /**
369            * Returns the d d m structures before and after the current d d m structure in the ordered set where groupId = &#63;.
370            *
371            * @param structureId the primary key of the current d d m structure
372            * @param groupId the group ID
373            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
374            * @return the previous, current, and next d d m structure
375            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
376            * @throws SystemException if a system exception occurred
377            */
378            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByGroupId_PrevAndNext(
379                    long structureId, long groupId,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException,
382                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
383    
384            /**
385            * Returns all the d d m structures that the user has permission to view where groupId = &#63;.
386            *
387            * @param groupId the group ID
388            * @return the matching d d m structures that the user has permission to view
389            * @throws SystemException if a system exception occurred
390            */
391            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByGroupId(
392                    long groupId)
393                    throws com.liferay.portal.kernel.exception.SystemException;
394    
395            /**
396            * Returns a range of all the d d m structures that the user has permission to view where groupId = &#63;.
397            *
398            * <p>
399            * 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.
400            * </p>
401            *
402            * @param groupId the group ID
403            * @param start the lower bound of the range of d d m structures
404            * @param end the upper bound of the range of d d m structures (not inclusive)
405            * @return the range of matching d d m structures that the user has permission to view
406            * @throws SystemException if a system exception occurred
407            */
408            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByGroupId(
409                    long groupId, int start, int end)
410                    throws com.liferay.portal.kernel.exception.SystemException;
411    
412            /**
413            * Returns an ordered range of all the d d m structures that the user has permissions to view where groupId = &#63;.
414            *
415            * <p>
416            * 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.
417            * </p>
418            *
419            * @param groupId the group ID
420            * @param start the lower bound of the range of d d m structures
421            * @param end the upper bound of the range of d d m structures (not inclusive)
422            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
423            * @return the ordered range of matching d d m structures that the user has permission to view
424            * @throws SystemException if a system exception occurred
425            */
426            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByGroupId(
427                    long groupId, int start, int end,
428                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
429                    throws com.liferay.portal.kernel.exception.SystemException;
430    
431            /**
432            * Returns the d d m structures before and after the current d d m structure in the ordered set of d d m structures that the user has permission to view where groupId = &#63;.
433            *
434            * @param structureId the primary key of the current d d m structure
435            * @param groupId the group ID
436            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
437            * @return the previous, current, and next d d m structure
438            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
439            * @throws SystemException if a system exception occurred
440            */
441            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] filterFindByGroupId_PrevAndNext(
442                    long structureId, long groupId,
443                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
444                    throws com.liferay.portal.kernel.exception.SystemException,
445                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
446    
447            /**
448            * Returns all the d d m structures where classNameId = &#63;.
449            *
450            * @param classNameId the class name ID
451            * @return the matching d d m structures
452            * @throws SystemException if a system exception occurred
453            */
454            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByClassNameId(
455                    long classNameId)
456                    throws com.liferay.portal.kernel.exception.SystemException;
457    
458            /**
459            * Returns a range of all the d d m structures where classNameId = &#63;.
460            *
461            * <p>
462            * 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.
463            * </p>
464            *
465            * @param classNameId the class name ID
466            * @param start the lower bound of the range of d d m structures
467            * @param end the upper bound of the range of d d m structures (not inclusive)
468            * @return the range of matching d d m structures
469            * @throws SystemException if a system exception occurred
470            */
471            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByClassNameId(
472                    long classNameId, int start, int end)
473                    throws com.liferay.portal.kernel.exception.SystemException;
474    
475            /**
476            * Returns an ordered range of all the d d m structures where classNameId = &#63;.
477            *
478            * <p>
479            * 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.
480            * </p>
481            *
482            * @param classNameId the class name ID
483            * @param start the lower bound of the range of d d m structures
484            * @param end the upper bound of the range of d d m structures (not inclusive)
485            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
486            * @return the ordered range of matching d d m structures
487            * @throws SystemException if a system exception occurred
488            */
489            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByClassNameId(
490                    long classNameId, int start, int end,
491                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * Returns the first d d m structure in the ordered set where classNameId = &#63;.
496            *
497            * @param classNameId the class name ID
498            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
499            * @return the first matching d d m structure
500            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
501            * @throws SystemException if a system exception occurred
502            */
503            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByClassNameId_First(
504                    long classNameId,
505                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
506                    throws com.liferay.portal.kernel.exception.SystemException,
507                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
508    
509            /**
510            * Returns the first d d m structure in the ordered set where classNameId = &#63;.
511            *
512            * @param classNameId the class name ID
513            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
514            * @return the first matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
515            * @throws SystemException if a system exception occurred
516            */
517            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByClassNameId_First(
518                    long classNameId,
519                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Returns the last d d m structure in the ordered set where classNameId = &#63;.
524            *
525            * @param classNameId the class name ID
526            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
527            * @return the last matching d d m structure
528            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
529            * @throws SystemException if a system exception occurred
530            */
531            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByClassNameId_Last(
532                    long classNameId,
533                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
534                    throws com.liferay.portal.kernel.exception.SystemException,
535                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
536    
537            /**
538            * Returns the last d d m structure in the ordered set where classNameId = &#63;.
539            *
540            * @param classNameId the class name ID
541            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
542            * @return the last matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
543            * @throws SystemException if a system exception occurred
544            */
545            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByClassNameId_Last(
546                    long classNameId,
547                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
548                    throws com.liferay.portal.kernel.exception.SystemException;
549    
550            /**
551            * Returns the d d m structures before and after the current d d m structure in the ordered set where classNameId = &#63;.
552            *
553            * @param structureId the primary key of the current d d m structure
554            * @param classNameId the class name ID
555            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
556            * @return the previous, current, and next d d m structure
557            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
558            * @throws SystemException if a system exception occurred
559            */
560            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByClassNameId_PrevAndNext(
561                    long structureId, long classNameId,
562                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
563                    throws com.liferay.portal.kernel.exception.SystemException,
564                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
565    
566            /**
567            * Returns the d d m structure where groupId = &#63; and structureKey = &#63; or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureException} if it could not be found.
568            *
569            * @param groupId the group ID
570            * @param structureKey the structure key
571            * @return the matching d d m structure
572            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
573            * @throws SystemException if a system exception occurred
574            */
575            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_S(
576                    long groupId, java.lang.String structureKey)
577                    throws com.liferay.portal.kernel.exception.SystemException,
578                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
579    
580            /**
581            * Returns the d d m structure where groupId = &#63; and structureKey = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
582            *
583            * @param groupId the group ID
584            * @param structureKey the structure key
585            * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
586            * @throws SystemException if a system exception occurred
587            */
588            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_S(
589                    long groupId, java.lang.String structureKey)
590                    throws com.liferay.portal.kernel.exception.SystemException;
591    
592            /**
593            * Returns the d d m structure where groupId = &#63; and structureKey = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
594            *
595            * @param groupId the group ID
596            * @param structureKey the structure key
597            * @param retrieveFromCache whether to use the finder cache
598            * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
599            * @throws SystemException if a system exception occurred
600            */
601            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_S(
602                    long groupId, java.lang.String structureKey, boolean retrieveFromCache)
603                    throws com.liferay.portal.kernel.exception.SystemException;
604    
605            /**
606            * Returns all the d d m structures where companyId = &#63; and classNameId = &#63;.
607            *
608            * @param companyId the company ID
609            * @param classNameId the class name ID
610            * @return the matching d d m structures
611            * @throws SystemException if a system exception occurred
612            */
613            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByC_C(
614                    long companyId, long classNameId)
615                    throws com.liferay.portal.kernel.exception.SystemException;
616    
617            /**
618            * Returns a range of all the d d m structures where companyId = &#63; and classNameId = &#63;.
619            *
620            * <p>
621            * 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.
622            * </p>
623            *
624            * @param companyId the company ID
625            * @param classNameId the class name ID
626            * @param start the lower bound of the range of d d m structures
627            * @param end the upper bound of the range of d d m structures (not inclusive)
628            * @return the range of matching d d m structures
629            * @throws SystemException if a system exception occurred
630            */
631            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByC_C(
632                    long companyId, long classNameId, int start, int end)
633                    throws com.liferay.portal.kernel.exception.SystemException;
634    
635            /**
636            * Returns an ordered range of all the d d m structures where companyId = &#63; and classNameId = &#63;.
637            *
638            * <p>
639            * 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.
640            * </p>
641            *
642            * @param companyId the company ID
643            * @param classNameId the class name ID
644            * @param start the lower bound of the range of d d m structures
645            * @param end the upper bound of the range of d d m structures (not inclusive)
646            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
647            * @return the ordered range of matching d d m structures
648            * @throws SystemException if a system exception occurred
649            */
650            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByC_C(
651                    long companyId, long classNameId, int start, int end,
652                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
653                    throws com.liferay.portal.kernel.exception.SystemException;
654    
655            /**
656            * Returns the first d d m structure in the ordered set where companyId = &#63; and classNameId = &#63;.
657            *
658            * @param companyId the company ID
659            * @param classNameId the class name ID
660            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
661            * @return the first matching d d m structure
662            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
663            * @throws SystemException if a system exception occurred
664            */
665            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByC_C_First(
666                    long companyId, long classNameId,
667                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
668                    throws com.liferay.portal.kernel.exception.SystemException,
669                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
670    
671            /**
672            * Returns the first d d m structure in the ordered set where companyId = &#63; and classNameId = &#63;.
673            *
674            * @param companyId the company ID
675            * @param classNameId the class name ID
676            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
677            * @return the first matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
678            * @throws SystemException if a system exception occurred
679            */
680            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByC_C_First(
681                    long companyId, long classNameId,
682                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
683                    throws com.liferay.portal.kernel.exception.SystemException;
684    
685            /**
686            * Returns the last d d m structure in the ordered set where companyId = &#63; and classNameId = &#63;.
687            *
688            * @param companyId the company ID
689            * @param classNameId the class name ID
690            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
691            * @return the last matching d d m structure
692            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
693            * @throws SystemException if a system exception occurred
694            */
695            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByC_C_Last(
696                    long companyId, long classNameId,
697                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
698                    throws com.liferay.portal.kernel.exception.SystemException,
699                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
700    
701            /**
702            * Returns the last d d m structure in the ordered set where companyId = &#63; and classNameId = &#63;.
703            *
704            * @param companyId the company ID
705            * @param classNameId the class name ID
706            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
707            * @return the last matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
708            * @throws SystemException if a system exception occurred
709            */
710            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByC_C_Last(
711                    long companyId, long classNameId,
712                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
713                    throws com.liferay.portal.kernel.exception.SystemException;
714    
715            /**
716            * Returns the d d m structures before and after the current d d m structure in the ordered set where companyId = &#63; and classNameId = &#63;.
717            *
718            * @param structureId the primary key of the current d d m structure
719            * @param companyId the company ID
720            * @param classNameId the class name ID
721            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
722            * @return the previous, current, and next d d m structure
723            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
724            * @throws SystemException if a system exception occurred
725            */
726            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByC_C_PrevAndNext(
727                    long structureId, long companyId, long classNameId,
728                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
729                    throws com.liferay.portal.kernel.exception.SystemException,
730                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
731    
732            /**
733            * Returns all the d d m structures where groupId = &#63; and name = &#63; and description = &#63;.
734            *
735            * @param groupId the group ID
736            * @param name the name
737            * @param description the description
738            * @return the matching d d m structures
739            * @throws SystemException if a system exception occurred
740            */
741            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D(
742                    long groupId, java.lang.String name, java.lang.String description)
743                    throws com.liferay.portal.kernel.exception.SystemException;
744    
745            /**
746            * Returns a range of all the d d m structures where groupId = &#63; and name = &#63; and description = &#63;.
747            *
748            * <p>
749            * 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.
750            * </p>
751            *
752            * @param groupId the group ID
753            * @param name the name
754            * @param description the description
755            * @param start the lower bound of the range of d d m structures
756            * @param end the upper bound of the range of d d m structures (not inclusive)
757            * @return the range of matching d d m structures
758            * @throws SystemException if a system exception occurred
759            */
760            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D(
761                    long groupId, java.lang.String name, java.lang.String description,
762                    int start, int end)
763                    throws com.liferay.portal.kernel.exception.SystemException;
764    
765            /**
766            * Returns an ordered range of all the d d m structures where groupId = &#63; and name = &#63; and description = &#63;.
767            *
768            * <p>
769            * 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.
770            * </p>
771            *
772            * @param groupId the group ID
773            * @param name the name
774            * @param description the description
775            * @param start the lower bound of the range of d d m structures
776            * @param end the upper bound of the range of d d m structures (not inclusive)
777            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
778            * @return the ordered range of matching d d m structures
779            * @throws SystemException if a system exception occurred
780            */
781            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D(
782                    long groupId, java.lang.String name, java.lang.String description,
783                    int start, int end,
784                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
785                    throws com.liferay.portal.kernel.exception.SystemException;
786    
787            /**
788            * Returns the first d d m structure in the ordered set where groupId = &#63; and name = &#63; and description = &#63;.
789            *
790            * @param groupId the group ID
791            * @param name the name
792            * @param description the description
793            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
794            * @return the first matching d d m structure
795            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
796            * @throws SystemException if a system exception occurred
797            */
798            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_N_D_First(
799                    long groupId, java.lang.String name, java.lang.String description,
800                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
801                    throws com.liferay.portal.kernel.exception.SystemException,
802                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
803    
804            /**
805            * Returns the first d d m structure in the ordered set where groupId = &#63; and name = &#63; and description = &#63;.
806            *
807            * @param groupId the group ID
808            * @param name the name
809            * @param description the description
810            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
811            * @return the first matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
812            * @throws SystemException if a system exception occurred
813            */
814            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_N_D_First(
815                    long groupId, java.lang.String name, java.lang.String description,
816                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
817                    throws com.liferay.portal.kernel.exception.SystemException;
818    
819            /**
820            * Returns the last d d m structure in the ordered set where groupId = &#63; and name = &#63; and description = &#63;.
821            *
822            * @param groupId the group ID
823            * @param name the name
824            * @param description the description
825            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
826            * @return the last matching d d m structure
827            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
828            * @throws SystemException if a system exception occurred
829            */
830            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_N_D_Last(
831                    long groupId, java.lang.String name, java.lang.String description,
832                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
833                    throws com.liferay.portal.kernel.exception.SystemException,
834                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
835    
836            /**
837            * Returns the last d d m structure in the ordered set where groupId = &#63; and name = &#63; and description = &#63;.
838            *
839            * @param groupId the group ID
840            * @param name the name
841            * @param description the description
842            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
843            * @return the last matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
844            * @throws SystemException if a system exception occurred
845            */
846            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_N_D_Last(
847                    long groupId, java.lang.String name, java.lang.String description,
848                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
849                    throws com.liferay.portal.kernel.exception.SystemException;
850    
851            /**
852            * Returns the d d m structures before and after the current d d m structure in the ordered set where groupId = &#63; and name = &#63; and description = &#63;.
853            *
854            * @param structureId the primary key of the current d d m structure
855            * @param groupId the group ID
856            * @param name the name
857            * @param description the description
858            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
859            * @return the previous, current, and next d d m structure
860            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
861            * @throws SystemException if a system exception occurred
862            */
863            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByG_N_D_PrevAndNext(
864                    long structureId, long groupId, java.lang.String name,
865                    java.lang.String description,
866                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
867                    throws com.liferay.portal.kernel.exception.SystemException,
868                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
869    
870            /**
871            * Returns all the d d m structures that the user has permission to view where groupId = &#63; and name = &#63; and description = &#63;.
872            *
873            * @param groupId the group ID
874            * @param name the name
875            * @param description the description
876            * @return the matching d d m structures that the user has permission to view
877            * @throws SystemException if a system exception occurred
878            */
879            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D(
880                    long groupId, java.lang.String name, java.lang.String description)
881                    throws com.liferay.portal.kernel.exception.SystemException;
882    
883            /**
884            * Returns a range of all the d d m structures that the user has permission to view where groupId = &#63; and name = &#63; and description = &#63;.
885            *
886            * <p>
887            * 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.
888            * </p>
889            *
890            * @param groupId the group ID
891            * @param name the name
892            * @param description the description
893            * @param start the lower bound of the range of d d m structures
894            * @param end the upper bound of the range of d d m structures (not inclusive)
895            * @return the range of matching d d m structures that the user has permission to view
896            * @throws SystemException if a system exception occurred
897            */
898            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D(
899                    long groupId, java.lang.String name, java.lang.String description,
900                    int start, int end)
901                    throws com.liferay.portal.kernel.exception.SystemException;
902    
903            /**
904            * Returns an ordered range of all the d d m structures that the user has permissions to view where groupId = &#63; and name = &#63; and description = &#63;.
905            *
906            * <p>
907            * 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.
908            * </p>
909            *
910            * @param groupId the group ID
911            * @param name the name
912            * @param description the description
913            * @param start the lower bound of the range of d d m structures
914            * @param end the upper bound of the range of d d m structures (not inclusive)
915            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
916            * @return the ordered range of matching d d m structures that the user has permission to view
917            * @throws SystemException if a system exception occurred
918            */
919            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D(
920                    long groupId, java.lang.String name, java.lang.String description,
921                    int start, int end,
922                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
923                    throws com.liferay.portal.kernel.exception.SystemException;
924    
925            /**
926            * Returns the d d m structures before and after the current d d m structure in the ordered set of d d m structures that the user has permission to view where groupId = &#63; and name = &#63; and description = &#63;.
927            *
928            * @param structureId the primary key of the current d d m structure
929            * @param groupId the group ID
930            * @param name the name
931            * @param description the description
932            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
933            * @return the previous, current, and next d d m structure
934            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
935            * @throws SystemException if a system exception occurred
936            */
937            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] filterFindByG_N_D_PrevAndNext(
938                    long structureId, long groupId, java.lang.String name,
939                    java.lang.String description,
940                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
941                    throws com.liferay.portal.kernel.exception.SystemException,
942                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
943    
944            /**
945            * Returns all the d d m structures.
946            *
947            * @return the d d m structures
948            * @throws SystemException if a system exception occurred
949            */
950            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll()
951                    throws com.liferay.portal.kernel.exception.SystemException;
952    
953            /**
954            * Returns a range of all the d d m structures.
955            *
956            * <p>
957            * 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.
958            * </p>
959            *
960            * @param start the lower bound of the range of d d m structures
961            * @param end the upper bound of the range of d d m structures (not inclusive)
962            * @return the range of d d m structures
963            * @throws SystemException if a system exception occurred
964            */
965            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll(
966                    int start, int end)
967                    throws com.liferay.portal.kernel.exception.SystemException;
968    
969            /**
970            * Returns an ordered range of all the d d m structures.
971            *
972            * <p>
973            * 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.
974            * </p>
975            *
976            * @param start the lower bound of the range of d d m structures
977            * @param end the upper bound of the range of d d m structures (not inclusive)
978            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
979            * @return the ordered range of d d m structures
980            * @throws SystemException if a system exception occurred
981            */
982            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll(
983                    int start, int end,
984                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
985                    throws com.liferay.portal.kernel.exception.SystemException;
986    
987            /**
988            * Removes all the d d m structures where uuid = &#63; from the database.
989            *
990            * @param uuid the uuid
991            * @throws SystemException if a system exception occurred
992            */
993            public void removeByUuid(java.lang.String uuid)
994                    throws com.liferay.portal.kernel.exception.SystemException;
995    
996            /**
997            * Removes the d d m structure where uuid = &#63; and groupId = &#63; from the database.
998            *
999            * @param uuid the uuid
1000            * @param groupId the group ID
1001            * @return the d d m structure that was removed
1002            * @throws SystemException if a system exception occurred
1003            */
1004            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure removeByUUID_G(
1005                    java.lang.String uuid, long groupId)
1006                    throws com.liferay.portal.kernel.exception.SystemException,
1007                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
1008    
1009            /**
1010            * Removes all the d d m structures where groupId = &#63; from the database.
1011            *
1012            * @param groupId the group ID
1013            * @throws SystemException if a system exception occurred
1014            */
1015            public void removeByGroupId(long groupId)
1016                    throws com.liferay.portal.kernel.exception.SystemException;
1017    
1018            /**
1019            * Removes all the d d m structures where classNameId = &#63; from the database.
1020            *
1021            * @param classNameId the class name ID
1022            * @throws SystemException if a system exception occurred
1023            */
1024            public void removeByClassNameId(long classNameId)
1025                    throws com.liferay.portal.kernel.exception.SystemException;
1026    
1027            /**
1028            * Removes the d d m structure where groupId = &#63; and structureKey = &#63; from the database.
1029            *
1030            * @param groupId the group ID
1031            * @param structureKey the structure key
1032            * @return the d d m structure that was removed
1033            * @throws SystemException if a system exception occurred
1034            */
1035            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure removeByG_S(
1036                    long groupId, java.lang.String structureKey)
1037                    throws com.liferay.portal.kernel.exception.SystemException,
1038                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException;
1039    
1040            /**
1041            * Removes all the d d m structures where companyId = &#63; and classNameId = &#63; from the database.
1042            *
1043            * @param companyId the company ID
1044            * @param classNameId the class name ID
1045            * @throws SystemException if a system exception occurred
1046            */
1047            public void removeByC_C(long companyId, long classNameId)
1048                    throws com.liferay.portal.kernel.exception.SystemException;
1049    
1050            /**
1051            * Removes all the d d m structures where groupId = &#63; and name = &#63; and description = &#63; from the database.
1052            *
1053            * @param groupId the group ID
1054            * @param name the name
1055            * @param description the description
1056            * @throws SystemException if a system exception occurred
1057            */
1058            public void removeByG_N_D(long groupId, java.lang.String name,
1059                    java.lang.String description)
1060                    throws com.liferay.portal.kernel.exception.SystemException;
1061    
1062            /**
1063            * Removes all the d d m structures from the database.
1064            *
1065            * @throws SystemException if a system exception occurred
1066            */
1067            public void removeAll()
1068                    throws com.liferay.portal.kernel.exception.SystemException;
1069    
1070            /**
1071            * Returns the number of d d m structures where uuid = &#63;.
1072            *
1073            * @param uuid the uuid
1074            * @return the number of matching d d m structures
1075            * @throws SystemException if a system exception occurred
1076            */
1077            public int countByUuid(java.lang.String uuid)
1078                    throws com.liferay.portal.kernel.exception.SystemException;
1079    
1080            /**
1081            * Returns the number of d d m structures where uuid = &#63; and groupId = &#63;.
1082            *
1083            * @param uuid the uuid
1084            * @param groupId the group ID
1085            * @return the number of matching d d m structures
1086            * @throws SystemException if a system exception occurred
1087            */
1088            public int countByUUID_G(java.lang.String uuid, long groupId)
1089                    throws com.liferay.portal.kernel.exception.SystemException;
1090    
1091            /**
1092            * Returns the number of d d m structures where groupId = &#63;.
1093            *
1094            * @param groupId the group ID
1095            * @return the number of matching d d m structures
1096            * @throws SystemException if a system exception occurred
1097            */
1098            public int countByGroupId(long groupId)
1099                    throws com.liferay.portal.kernel.exception.SystemException;
1100    
1101            /**
1102            * Returns the number of d d m structures that the user has permission to view where groupId = &#63;.
1103            *
1104            * @param groupId the group ID
1105            * @return the number of matching d d m structures that the user has permission to view
1106            * @throws SystemException if a system exception occurred
1107            */
1108            public int filterCountByGroupId(long groupId)
1109                    throws com.liferay.portal.kernel.exception.SystemException;
1110    
1111            /**
1112            * Returns the number of d d m structures where classNameId = &#63;.
1113            *
1114            * @param classNameId the class name ID
1115            * @return the number of matching d d m structures
1116            * @throws SystemException if a system exception occurred
1117            */
1118            public int countByClassNameId(long classNameId)
1119                    throws com.liferay.portal.kernel.exception.SystemException;
1120    
1121            /**
1122            * Returns the number of d d m structures where groupId = &#63; and structureKey = &#63;.
1123            *
1124            * @param groupId the group ID
1125            * @param structureKey the structure key
1126            * @return the number of matching d d m structures
1127            * @throws SystemException if a system exception occurred
1128            */
1129            public int countByG_S(long groupId, java.lang.String structureKey)
1130                    throws com.liferay.portal.kernel.exception.SystemException;
1131    
1132            /**
1133            * Returns the number of d d m structures where companyId = &#63; and classNameId = &#63;.
1134            *
1135            * @param companyId the company ID
1136            * @param classNameId the class name ID
1137            * @return the number of matching d d m structures
1138            * @throws SystemException if a system exception occurred
1139            */
1140            public int countByC_C(long companyId, long classNameId)
1141                    throws com.liferay.portal.kernel.exception.SystemException;
1142    
1143            /**
1144            * Returns the number of d d m structures where groupId = &#63; and name = &#63; and description = &#63;.
1145            *
1146            * @param groupId the group ID
1147            * @param name the name
1148            * @param description the description
1149            * @return the number of matching d d m structures
1150            * @throws SystemException if a system exception occurred
1151            */
1152            public int countByG_N_D(long groupId, java.lang.String name,
1153                    java.lang.String description)
1154                    throws com.liferay.portal.kernel.exception.SystemException;
1155    
1156            /**
1157            * Returns the number of d d m structures that the user has permission to view where groupId = &#63; and name = &#63; and description = &#63;.
1158            *
1159            * @param groupId the group ID
1160            * @param name the name
1161            * @param description the description
1162            * @return the number of matching d d m structures that the user has permission to view
1163            * @throws SystemException if a system exception occurred
1164            */
1165            public int filterCountByG_N_D(long groupId, java.lang.String name,
1166                    java.lang.String description)
1167                    throws com.liferay.portal.kernel.exception.SystemException;
1168    
1169            /**
1170            * Returns the number of d d m structures.
1171            *
1172            * @return the number of d d m structures
1173            * @throws SystemException if a system exception occurred
1174            */
1175            public int countAll()
1176                    throws com.liferay.portal.kernel.exception.SystemException;
1177    
1178            /**
1179            * Returns all the document library file entry types associated with the d d m structure.
1180            *
1181            * @param pk the primary key of the d d m structure
1182            * @return the document library file entry types associated with the d d m structure
1183            * @throws SystemException if a system exception occurred
1184            */
1185            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
1186                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
1187    
1188            /**
1189            * Returns a range of all the document library file entry types associated with the d d m structure.
1190            *
1191            * <p>
1192            * 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.
1193            * </p>
1194            *
1195            * @param pk the primary key of the d d m structure
1196            * @param start the lower bound of the range of d d m structures
1197            * @param end the upper bound of the range of d d m structures (not inclusive)
1198            * @return the range of document library file entry types associated with the d d m structure
1199            * @throws SystemException if a system exception occurred
1200            */
1201            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
1202                    long pk, int start, int end)
1203                    throws com.liferay.portal.kernel.exception.SystemException;
1204    
1205            /**
1206            * Returns an ordered range of all the document library file entry types associated with the d d m structure.
1207            *
1208            * <p>
1209            * 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.
1210            * </p>
1211            *
1212            * @param pk the primary key of the d d m structure
1213            * @param start the lower bound of the range of d d m structures
1214            * @param end the upper bound of the range of d d m structures (not inclusive)
1215            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1216            * @return the ordered range of document library file entry types associated with the d d m structure
1217            * @throws SystemException if a system exception occurred
1218            */
1219            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
1220                    long pk, int start, int end,
1221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1222                    throws com.liferay.portal.kernel.exception.SystemException;
1223    
1224            /**
1225            * Returns the number of document library file entry types associated with the d d m structure.
1226            *
1227            * @param pk the primary key of the d d m structure
1228            * @return the number of document library file entry types associated with the d d m structure
1229            * @throws SystemException if a system exception occurred
1230            */
1231            public int getDLFileEntryTypesSize(long pk)
1232                    throws com.liferay.portal.kernel.exception.SystemException;
1233    
1234            /**
1235            * Returns <code>true</code> if the document library file entry type is associated with the d d m structure.
1236            *
1237            * @param pk the primary key of the d d m structure
1238            * @param dlFileEntryTypePK the primary key of the document library file entry type
1239            * @return <code>true</code> if the document library file entry type is associated with the d d m structure; <code>false</code> otherwise
1240            * @throws SystemException if a system exception occurred
1241            */
1242            public boolean containsDLFileEntryType(long pk, long dlFileEntryTypePK)
1243                    throws com.liferay.portal.kernel.exception.SystemException;
1244    
1245            /**
1246            * Returns <code>true</code> if the d d m structure has any document library file entry types associated with it.
1247            *
1248            * @param pk the primary key of the d d m structure to check for associations with document library file entry types
1249            * @return <code>true</code> if the d d m structure has any document library file entry types associated with it; <code>false</code> otherwise
1250            * @throws SystemException if a system exception occurred
1251            */
1252            public boolean containsDLFileEntryTypes(long pk)
1253                    throws com.liferay.portal.kernel.exception.SystemException;
1254    
1255            /**
1256            * Adds an association between the d d m structure and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1257            *
1258            * @param pk the primary key of the d d m structure
1259            * @param dlFileEntryTypePK the primary key of the document library file entry type
1260            * @throws SystemException if a system exception occurred
1261            */
1262            public void addDLFileEntryType(long pk, long dlFileEntryTypePK)
1263                    throws com.liferay.portal.kernel.exception.SystemException;
1264    
1265            /**
1266            * Adds an association between the d d m structure and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1267            *
1268            * @param pk the primary key of the d d m structure
1269            * @param dlFileEntryType the document library file entry type
1270            * @throws SystemException if a system exception occurred
1271            */
1272            public void addDLFileEntryType(long pk,
1273                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
1274                    throws com.liferay.portal.kernel.exception.SystemException;
1275    
1276            /**
1277            * Adds an association between the d d m structure and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1278            *
1279            * @param pk the primary key of the d d m structure
1280            * @param dlFileEntryTypePKs the primary keys of the document library file entry types
1281            * @throws SystemException if a system exception occurred
1282            */
1283            public void addDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs)
1284                    throws com.liferay.portal.kernel.exception.SystemException;
1285    
1286            /**
1287            * Adds an association between the d d m structure and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1288            *
1289            * @param pk the primary key of the d d m structure
1290            * @param dlFileEntryTypes the document library file entry types
1291            * @throws SystemException if a system exception occurred
1292            */
1293            public void addDLFileEntryTypes(long pk,
1294                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes)
1295                    throws com.liferay.portal.kernel.exception.SystemException;
1296    
1297            /**
1298            * Clears all associations between the d d m structure and its document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1299            *
1300            * @param pk the primary key of the d d m structure to clear the associated document library file entry types from
1301            * @throws SystemException if a system exception occurred
1302            */
1303            public void clearDLFileEntryTypes(long pk)
1304                    throws com.liferay.portal.kernel.exception.SystemException;
1305    
1306            /**
1307            * Removes the association between the d d m structure and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1308            *
1309            * @param pk the primary key of the d d m structure
1310            * @param dlFileEntryTypePK the primary key of the document library file entry type
1311            * @throws SystemException if a system exception occurred
1312            */
1313            public void removeDLFileEntryType(long pk, long dlFileEntryTypePK)
1314                    throws com.liferay.portal.kernel.exception.SystemException;
1315    
1316            /**
1317            * Removes the association between the d d m structure and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1318            *
1319            * @param pk the primary key of the d d m structure
1320            * @param dlFileEntryType the document library file entry type
1321            * @throws SystemException if a system exception occurred
1322            */
1323            public void removeDLFileEntryType(long pk,
1324                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
1325                    throws com.liferay.portal.kernel.exception.SystemException;
1326    
1327            /**
1328            * Removes the association between the d d m structure and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1329            *
1330            * @param pk the primary key of the d d m structure
1331            * @param dlFileEntryTypePKs the primary keys of the document library file entry types
1332            * @throws SystemException if a system exception occurred
1333            */
1334            public void removeDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs)
1335                    throws com.liferay.portal.kernel.exception.SystemException;
1336    
1337            /**
1338            * Removes the association between the d d m structure and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1339            *
1340            * @param pk the primary key of the d d m structure
1341            * @param dlFileEntryTypes the document library file entry types
1342            * @throws SystemException if a system exception occurred
1343            */
1344            public void removeDLFileEntryTypes(long pk,
1345                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes)
1346                    throws com.liferay.portal.kernel.exception.SystemException;
1347    
1348            /**
1349            * Sets the document library file entry types associated with the d d m structure, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1350            *
1351            * @param pk the primary key of the d d m structure
1352            * @param dlFileEntryTypePKs the primary keys of the document library file entry types to be associated with the d d m structure
1353            * @throws SystemException if a system exception occurred
1354            */
1355            public void setDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs)
1356                    throws com.liferay.portal.kernel.exception.SystemException;
1357    
1358            /**
1359            * Sets the document library file entry types associated with the d d m structure, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1360            *
1361            * @param pk the primary key of the d d m structure
1362            * @param dlFileEntryTypes the document library file entry types to be associated with the d d m structure
1363            * @throws SystemException if a system exception occurred
1364            */
1365            public void setDLFileEntryTypes(long pk,
1366                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes)
1367                    throws com.liferay.portal.kernel.exception.SystemException;
1368    }