001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.dynamicdatamapping.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.dynamicdatamapping.model.DDMStructure;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the d d m structure service. This utility wraps {@link DDMStructurePersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see DDMStructurePersistence
037     * @see DDMStructurePersistenceImpl
038     * @generated
039     */
040    public class DDMStructureUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(DDMStructure ddmStructure) {
058                    getPersistence().clearCache(ddmStructure);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<DDMStructure> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<DDMStructure> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<DDMStructure> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
099             */
100            public static DDMStructure update(DDMStructure ddmStructure, boolean merge)
101                    throws SystemException {
102                    return getPersistence().update(ddmStructure, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static DDMStructure update(DDMStructure ddmStructure, boolean merge,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(ddmStructure, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the d d m structure in the entity cache if it is enabled.
115            *
116            * @param ddmStructure the d d m structure
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure) {
120                    getPersistence().cacheResult(ddmStructure);
121            }
122    
123            /**
124            * Caches the d d m structures in the entity cache if it is enabled.
125            *
126            * @param ddmStructures the d d m structures
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures) {
130                    getPersistence().cacheResult(ddmStructures);
131            }
132    
133            /**
134            * Creates a new d d m structure with the primary key. Does not add the d d m structure to the database.
135            *
136            * @param structureId the primary key for the new d d m structure
137            * @return the new d d m structure
138            */
139            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure create(
140                    long structureId) {
141                    return getPersistence().create(structureId);
142            }
143    
144            /**
145            * Removes the d d m structure with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param structureId the primary key of the d d m structure
148            * @return the d d m structure that was removed
149            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure remove(
153                    long structureId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
156                    return getPersistence().remove(structureId);
157            }
158    
159            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateImpl(
160                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure,
161                    boolean merge)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().updateImpl(ddmStructure, merge);
164            }
165    
166            /**
167            * 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.
168            *
169            * @param structureId the primary key of the d d m structure
170            * @return the d d m structure
171            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByPrimaryKey(
175                    long structureId)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
178                    return getPersistence().findByPrimaryKey(structureId);
179            }
180    
181            /**
182            * Returns the d d m structure with the primary key or returns <code>null</code> if it could not be found.
183            *
184            * @param structureId the primary key of the d d m structure
185            * @return the d d m structure, or <code>null</code> if a d d m structure with the primary key could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByPrimaryKey(
189                    long structureId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return getPersistence().fetchByPrimaryKey(structureId);
192            }
193    
194            /**
195            * Returns all the d d m structures where uuid = &#63;.
196            *
197            * @param uuid the uuid
198            * @return the matching d d m structures
199            * @throws SystemException if a system exception occurred
200            */
201            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByUuid(
202                    java.lang.String uuid)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByUuid(uuid);
205            }
206    
207            /**
208            * Returns a range of all the d d m structures where uuid = &#63;.
209            *
210            * <p>
211            * 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.
212            * </p>
213            *
214            * @param uuid the uuid
215            * @param start the lower bound of the range of d d m structures
216            * @param end the upper bound of the range of d d m structures (not inclusive)
217            * @return the range of matching d d m structures
218            * @throws SystemException if a system exception occurred
219            */
220            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByUuid(
221                    java.lang.String uuid, int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return getPersistence().findByUuid(uuid, start, end);
224            }
225    
226            /**
227            * Returns an ordered range of all the d d m structures where uuid = &#63;.
228            *
229            * <p>
230            * 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.
231            * </p>
232            *
233            * @param uuid the uuid
234            * @param start the lower bound of the range of d d m structures
235            * @param end the upper bound of the range of d d m structures (not inclusive)
236            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
237            * @return the ordered range of matching d d m structures
238            * @throws SystemException if a system exception occurred
239            */
240            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByUuid(
241                    java.lang.String uuid, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
245            }
246    
247            /**
248            * Returns the first d d m structure in the ordered set where uuid = &#63;.
249            *
250            * <p>
251            * 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.
252            * </p>
253            *
254            * @param uuid the uuid
255            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
256            * @return the first matching d d m structure
257            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
258            * @throws SystemException if a system exception occurred
259            */
260            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByUuid_First(
261                    java.lang.String uuid,
262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263                    throws com.liferay.portal.kernel.exception.SystemException,
264                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
265                    return getPersistence().findByUuid_First(uuid, orderByComparator);
266            }
267    
268            /**
269            * Returns the last d d m structure in the ordered set where uuid = &#63;.
270            *
271            * <p>
272            * 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.
273            * </p>
274            *
275            * @param uuid the uuid
276            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
277            * @return the last matching d d m structure
278            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
279            * @throws SystemException if a system exception occurred
280            */
281            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByUuid_Last(
282                    java.lang.String uuid,
283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284                    throws com.liferay.portal.kernel.exception.SystemException,
285                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
286                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
287            }
288    
289            /**
290            * Returns the d d m structures before and after the current d d m structure in the ordered set where uuid = &#63;.
291            *
292            * <p>
293            * 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.
294            * </p>
295            *
296            * @param structureId the primary key of the current d d m structure
297            * @param uuid the uuid
298            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
299            * @return the previous, current, and next d d m structure
300            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
301            * @throws SystemException if a system exception occurred
302            */
303            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByUuid_PrevAndNext(
304                    long structureId, java.lang.String uuid,
305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306                    throws com.liferay.portal.kernel.exception.SystemException,
307                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
308                    return getPersistence()
309                                       .findByUuid_PrevAndNext(structureId, uuid, orderByComparator);
310            }
311    
312            /**
313            * 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.
314            *
315            * @param uuid the uuid
316            * @param groupId the group ID
317            * @return the 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 static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByUUID_G(
322                    java.lang.String uuid, long groupId)
323                    throws com.liferay.portal.kernel.exception.SystemException,
324                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
325                    return getPersistence().findByUUID_G(uuid, groupId);
326            }
327    
328            /**
329            * 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.
330            *
331            * @param uuid the uuid
332            * @param groupId the group ID
333            * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
334            * @throws SystemException if a system exception occurred
335            */
336            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUUID_G(
337                    java.lang.String uuid, long groupId)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return getPersistence().fetchByUUID_G(uuid, groupId);
340            }
341    
342            /**
343            * 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.
344            *
345            * @param uuid the uuid
346            * @param groupId the group ID
347            * @param retrieveFromCache whether to use the finder cache
348            * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
349            * @throws SystemException if a system exception occurred
350            */
351            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUUID_G(
352                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
355            }
356    
357            /**
358            * Returns all the d d m structures where groupId = &#63;.
359            *
360            * @param groupId the group ID
361            * @return the matching d d m structures
362            * @throws SystemException if a system exception occurred
363            */
364            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByGroupId(
365                    long groupId)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return getPersistence().findByGroupId(groupId);
368            }
369    
370            /**
371            * Returns a range of all the d d m structures where groupId = &#63;.
372            *
373            * <p>
374            * 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.
375            * </p>
376            *
377            * @param groupId the group ID
378            * @param start the lower bound of the range of d d m structures
379            * @param end the upper bound of the range of d d m structures (not inclusive)
380            * @return the range of matching d d m structures
381            * @throws SystemException if a system exception occurred
382            */
383            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByGroupId(
384                    long groupId, int start, int end)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return getPersistence().findByGroupId(groupId, start, end);
387            }
388    
389            /**
390            * Returns an ordered range of all the d d m structures where groupId = &#63;.
391            *
392            * <p>
393            * 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.
394            * </p>
395            *
396            * @param groupId the group ID
397            * @param start the lower bound of the range of d d m structures
398            * @param end the upper bound of the range of d d m structures (not inclusive)
399            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
400            * @return the ordered range of matching d d m structures
401            * @throws SystemException if a system exception occurred
402            */
403            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByGroupId(
404                    long groupId, int start, int end,
405                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
406                    throws com.liferay.portal.kernel.exception.SystemException {
407                    return getPersistence()
408                                       .findByGroupId(groupId, start, end, orderByComparator);
409            }
410    
411            /**
412            * Returns the first d d m structure in the ordered set where groupId = &#63;.
413            *
414            * <p>
415            * 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.
416            * </p>
417            *
418            * @param groupId the group ID
419            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
420            * @return the first matching d d m structure
421            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
422            * @throws SystemException if a system exception occurred
423            */
424            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByGroupId_First(
425                    long groupId,
426                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427                    throws com.liferay.portal.kernel.exception.SystemException,
428                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
429                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
430            }
431    
432            /**
433            * Returns the last d d m structure in the ordered set where groupId = &#63;.
434            *
435            * <p>
436            * 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.
437            * </p>
438            *
439            * @param groupId the group ID
440            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
441            * @return the last matching d d m structure
442            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
443            * @throws SystemException if a system exception occurred
444            */
445            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByGroupId_Last(
446                    long groupId,
447                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
448                    throws com.liferay.portal.kernel.exception.SystemException,
449                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
450                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
451            }
452    
453            /**
454            * Returns the d d m structures before and after the current d d m structure in the ordered set where groupId = &#63;.
455            *
456            * <p>
457            * 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.
458            * </p>
459            *
460            * @param structureId the primary key of the current d d m structure
461            * @param groupId the group ID
462            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
463            * @return the previous, current, and next d d m structure
464            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
465            * @throws SystemException if a system exception occurred
466            */
467            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByGroupId_PrevAndNext(
468                    long structureId, long groupId,
469                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
470                    throws com.liferay.portal.kernel.exception.SystemException,
471                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
472                    return getPersistence()
473                                       .findByGroupId_PrevAndNext(structureId, groupId,
474                            orderByComparator);
475            }
476    
477            /**
478            * Returns all the d d m structures that the user has permission to view where groupId = &#63;.
479            *
480            * @param groupId the group ID
481            * @return the matching d d m structures that the user has permission to view
482            * @throws SystemException if a system exception occurred
483            */
484            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByGroupId(
485                    long groupId)
486                    throws com.liferay.portal.kernel.exception.SystemException {
487                    return getPersistence().filterFindByGroupId(groupId);
488            }
489    
490            /**
491            * Returns a range of all the d d m structures that the user has permission to view where groupId = &#63;.
492            *
493            * <p>
494            * 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.
495            * </p>
496            *
497            * @param groupId the group ID
498            * @param start the lower bound of the range of d d m structures
499            * @param end the upper bound of the range of d d m structures (not inclusive)
500            * @return the range of matching d d m structures that the user has permission to view
501            * @throws SystemException if a system exception occurred
502            */
503            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByGroupId(
504                    long groupId, int start, int end)
505                    throws com.liferay.portal.kernel.exception.SystemException {
506                    return getPersistence().filterFindByGroupId(groupId, start, end);
507            }
508    
509            /**
510            * Returns an ordered range of all the d d m structures that the user has permissions to view where groupId = &#63;.
511            *
512            * <p>
513            * 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.
514            * </p>
515            *
516            * @param groupId the group ID
517            * @param start the lower bound of the range of d d m structures
518            * @param end the upper bound of the range of d d m structures (not inclusive)
519            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
520            * @return the ordered range of matching d d m structures that the user has permission to view
521            * @throws SystemException if a system exception occurred
522            */
523            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByGroupId(
524                    long groupId, int start, int end,
525                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
526                    throws com.liferay.portal.kernel.exception.SystemException {
527                    return getPersistence()
528                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
529            }
530    
531            /**
532            * 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;.
533            *
534            * @param structureId the primary key of the current d d m structure
535            * @param groupId the group ID
536            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
537            * @return the previous, current, and next d d m structure
538            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
539            * @throws SystemException if a system exception occurred
540            */
541            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] filterFindByGroupId_PrevAndNext(
542                    long structureId, long groupId,
543                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
544                    throws com.liferay.portal.kernel.exception.SystemException,
545                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
546                    return getPersistence()
547                                       .filterFindByGroupId_PrevAndNext(structureId, groupId,
548                            orderByComparator);
549            }
550    
551            /**
552            * Returns all the d d m structures where classNameId = &#63;.
553            *
554            * @param classNameId the class name ID
555            * @return the matching d d m structures
556            * @throws SystemException if a system exception occurred
557            */
558            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByClassNameId(
559                    long classNameId)
560                    throws com.liferay.portal.kernel.exception.SystemException {
561                    return getPersistence().findByClassNameId(classNameId);
562            }
563    
564            /**
565            * Returns a range of all the d d m structures where classNameId = &#63;.
566            *
567            * <p>
568            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
569            * </p>
570            *
571            * @param classNameId the class name ID
572            * @param start the lower bound of the range of d d m structures
573            * @param end the upper bound of the range of d d m structures (not inclusive)
574            * @return the range of matching d d m structures
575            * @throws SystemException if a system exception occurred
576            */
577            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByClassNameId(
578                    long classNameId, int start, int end)
579                    throws com.liferay.portal.kernel.exception.SystemException {
580                    return getPersistence().findByClassNameId(classNameId, start, end);
581            }
582    
583            /**
584            * Returns an ordered range of all the d d m structures where classNameId = &#63;.
585            *
586            * <p>
587            * 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.
588            * </p>
589            *
590            * @param classNameId the class name ID
591            * @param start the lower bound of the range of d d m structures
592            * @param end the upper bound of the range of d d m structures (not inclusive)
593            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
594            * @return the ordered range of matching d d m structures
595            * @throws SystemException if a system exception occurred
596            */
597            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByClassNameId(
598                    long classNameId, int start, int end,
599                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
600                    throws com.liferay.portal.kernel.exception.SystemException {
601                    return getPersistence()
602                                       .findByClassNameId(classNameId, start, end, orderByComparator);
603            }
604    
605            /**
606            * Returns the first d d m structure in the ordered set where classNameId = &#63;.
607            *
608            * <p>
609            * 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.
610            * </p>
611            *
612            * @param classNameId the class name ID
613            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
614            * @return the first matching d d m structure
615            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
616            * @throws SystemException if a system exception occurred
617            */
618            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByClassNameId_First(
619                    long classNameId,
620                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
621                    throws com.liferay.portal.kernel.exception.SystemException,
622                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
623                    return getPersistence()
624                                       .findByClassNameId_First(classNameId, orderByComparator);
625            }
626    
627            /**
628            * Returns the last d d m structure in the ordered set where classNameId = &#63;.
629            *
630            * <p>
631            * 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.
632            * </p>
633            *
634            * @param classNameId the class name ID
635            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
636            * @return the last matching d d m structure
637            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
638            * @throws SystemException if a system exception occurred
639            */
640            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByClassNameId_Last(
641                    long classNameId,
642                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
643                    throws com.liferay.portal.kernel.exception.SystemException,
644                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
645                    return getPersistence()
646                                       .findByClassNameId_Last(classNameId, orderByComparator);
647            }
648    
649            /**
650            * Returns the d d m structures before and after the current d d m structure in the ordered set where classNameId = &#63;.
651            *
652            * <p>
653            * 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.
654            * </p>
655            *
656            * @param structureId the primary key of the current d d m structure
657            * @param classNameId the class name ID
658            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
659            * @return the previous, current, and next d d m structure
660            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
661            * @throws SystemException if a system exception occurred
662            */
663            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByClassNameId_PrevAndNext(
664                    long structureId, long classNameId,
665                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
666                    throws com.liferay.portal.kernel.exception.SystemException,
667                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
668                    return getPersistence()
669                                       .findByClassNameId_PrevAndNext(structureId, classNameId,
670                            orderByComparator);
671            }
672    
673            /**
674            * 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.
675            *
676            * @param groupId the group ID
677            * @param structureKey the structure key
678            * @return the matching d d m structure
679            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
680            * @throws SystemException if a system exception occurred
681            */
682            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_S(
683                    long groupId, java.lang.String structureKey)
684                    throws com.liferay.portal.kernel.exception.SystemException,
685                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
686                    return getPersistence().findByG_S(groupId, structureKey);
687            }
688    
689            /**
690            * 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.
691            *
692            * @param groupId the group ID
693            * @param structureKey the structure key
694            * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
695            * @throws SystemException if a system exception occurred
696            */
697            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_S(
698                    long groupId, java.lang.String structureKey)
699                    throws com.liferay.portal.kernel.exception.SystemException {
700                    return getPersistence().fetchByG_S(groupId, structureKey);
701            }
702    
703            /**
704            * 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.
705            *
706            * @param groupId the group ID
707            * @param structureKey the structure key
708            * @param retrieveFromCache whether to use the finder cache
709            * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
710            * @throws SystemException if a system exception occurred
711            */
712            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_S(
713                    long groupId, java.lang.String structureKey, boolean retrieveFromCache)
714                    throws com.liferay.portal.kernel.exception.SystemException {
715                    return getPersistence()
716                                       .fetchByG_S(groupId, structureKey, retrieveFromCache);
717            }
718    
719            /**
720            * Returns all the d d m structures where groupId = &#63; and name = &#63; and description = &#63;.
721            *
722            * @param groupId the group ID
723            * @param name the name
724            * @param description the description
725            * @return the matching d d m structures
726            * @throws SystemException if a system exception occurred
727            */
728            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D(
729                    long groupId, java.lang.String name, java.lang.String description)
730                    throws com.liferay.portal.kernel.exception.SystemException {
731                    return getPersistence().findByG_N_D(groupId, name, description);
732            }
733    
734            /**
735            * Returns a range of all the d d m structures where groupId = &#63; and name = &#63; and description = &#63;.
736            *
737            * <p>
738            * 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.
739            * </p>
740            *
741            * @param groupId the group ID
742            * @param name the name
743            * @param description the description
744            * @param start the lower bound of the range of d d m structures
745            * @param end the upper bound of the range of d d m structures (not inclusive)
746            * @return the range of matching d d m structures
747            * @throws SystemException if a system exception occurred
748            */
749            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D(
750                    long groupId, java.lang.String name, java.lang.String description,
751                    int start, int end)
752                    throws com.liferay.portal.kernel.exception.SystemException {
753                    return getPersistence()
754                                       .findByG_N_D(groupId, name, description, start, end);
755            }
756    
757            /**
758            * Returns an ordered range of all the d d m structures where groupId = &#63; and name = &#63; and description = &#63;.
759            *
760            * <p>
761            * 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.
762            * </p>
763            *
764            * @param groupId the group ID
765            * @param name the name
766            * @param description the description
767            * @param start the lower bound of the range of d d m structures
768            * @param end the upper bound of the range of d d m structures (not inclusive)
769            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
770            * @return the ordered range of matching d d m structures
771            * @throws SystemException if a system exception occurred
772            */
773            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D(
774                    long groupId, java.lang.String name, java.lang.String description,
775                    int start, int end,
776                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
777                    throws com.liferay.portal.kernel.exception.SystemException {
778                    return getPersistence()
779                                       .findByG_N_D(groupId, name, description, start, end,
780                            orderByComparator);
781            }
782    
783            /**
784            * Returns the first d d m structure in the ordered set where groupId = &#63; and name = &#63; and description = &#63;.
785            *
786            * <p>
787            * 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.
788            * </p>
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 static 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                    return getPersistence()
804                                       .findByG_N_D_First(groupId, name, description,
805                            orderByComparator);
806            }
807    
808            /**
809            * Returns the last d d m structure in the ordered set where groupId = &#63; and name = &#63; and description = &#63;.
810            *
811            * <p>
812            * 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.
813            * </p>
814            *
815            * @param groupId the group ID
816            * @param name the name
817            * @param description the description
818            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
819            * @return the last matching d d m structure
820            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found
821            * @throws SystemException if a system exception occurred
822            */
823            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_N_D_Last(
824                    long groupId, java.lang.String name, java.lang.String description,
825                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
826                    throws com.liferay.portal.kernel.exception.SystemException,
827                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
828                    return getPersistence()
829                                       .findByG_N_D_Last(groupId, name, description,
830                            orderByComparator);
831            }
832    
833            /**
834            * 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;.
835            *
836            * <p>
837            * 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.
838            * </p>
839            *
840            * @param structureId the primary key of the current d d m structure
841            * @param groupId the group ID
842            * @param name the name
843            * @param description the description
844            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
845            * @return the previous, current, and next d d m structure
846            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
847            * @throws SystemException if a system exception occurred
848            */
849            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByG_N_D_PrevAndNext(
850                    long structureId, long groupId, java.lang.String name,
851                    java.lang.String description,
852                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
853                    throws com.liferay.portal.kernel.exception.SystemException,
854                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
855                    return getPersistence()
856                                       .findByG_N_D_PrevAndNext(structureId, groupId, name,
857                            description, orderByComparator);
858            }
859    
860            /**
861            * Returns all the d d m structures that the user has permission to view where groupId = &#63; and name = &#63; and description = &#63;.
862            *
863            * @param groupId the group ID
864            * @param name the name
865            * @param description the description
866            * @return the matching d d m structures that the user has permission to view
867            * @throws SystemException if a system exception occurred
868            */
869            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D(
870                    long groupId, java.lang.String name, java.lang.String description)
871                    throws com.liferay.portal.kernel.exception.SystemException {
872                    return getPersistence().filterFindByG_N_D(groupId, name, description);
873            }
874    
875            /**
876            * 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;.
877            *
878            * <p>
879            * 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.
880            * </p>
881            *
882            * @param groupId the group ID
883            * @param name the name
884            * @param description the description
885            * @param start the lower bound of the range of d d m structures
886            * @param end the upper bound of the range of d d m structures (not inclusive)
887            * @return the range of matching d d m structures that the user has permission to view
888            * @throws SystemException if a system exception occurred
889            */
890            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D(
891                    long groupId, java.lang.String name, java.lang.String description,
892                    int start, int end)
893                    throws com.liferay.portal.kernel.exception.SystemException {
894                    return getPersistence()
895                                       .filterFindByG_N_D(groupId, name, description, start, end);
896            }
897    
898            /**
899            * 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;.
900            *
901            * <p>
902            * 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.
903            * </p>
904            *
905            * @param groupId the group ID
906            * @param name the name
907            * @param description the description
908            * @param start the lower bound of the range of d d m structures
909            * @param end the upper bound of the range of d d m structures (not inclusive)
910            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
911            * @return the ordered range of matching d d m structures that the user has permission to view
912            * @throws SystemException if a system exception occurred
913            */
914            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D(
915                    long groupId, java.lang.String name, java.lang.String description,
916                    int start, int end,
917                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
918                    throws com.liferay.portal.kernel.exception.SystemException {
919                    return getPersistence()
920                                       .filterFindByG_N_D(groupId, name, description, start, end,
921                            orderByComparator);
922            }
923    
924            /**
925            * 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;.
926            *
927            * @param structureId the primary key of the current d d m structure
928            * @param groupId the group ID
929            * @param name the name
930            * @param description the description
931            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
932            * @return the previous, current, and next d d m structure
933            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found
934            * @throws SystemException if a system exception occurred
935            */
936            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] filterFindByG_N_D_PrevAndNext(
937                    long structureId, long groupId, java.lang.String name,
938                    java.lang.String description,
939                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
940                    throws com.liferay.portal.kernel.exception.SystemException,
941                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
942                    return getPersistence()
943                                       .filterFindByG_N_D_PrevAndNext(structureId, groupId, name,
944                            description, orderByComparator);
945            }
946    
947            /**
948            * Returns all the d d m structures.
949            *
950            * @return the d d m structures
951            * @throws SystemException if a system exception occurred
952            */
953            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll()
954                    throws com.liferay.portal.kernel.exception.SystemException {
955                    return getPersistence().findAll();
956            }
957    
958            /**
959            * Returns a range of all the d d m structures.
960            *
961            * <p>
962            * 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.
963            * </p>
964            *
965            * @param start the lower bound of the range of d d m structures
966            * @param end the upper bound of the range of d d m structures (not inclusive)
967            * @return the range of d d m structures
968            * @throws SystemException if a system exception occurred
969            */
970            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll(
971                    int start, int end)
972                    throws com.liferay.portal.kernel.exception.SystemException {
973                    return getPersistence().findAll(start, end);
974            }
975    
976            /**
977            * Returns an ordered range of all the d d m structures.
978            *
979            * <p>
980            * 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.
981            * </p>
982            *
983            * @param start the lower bound of the range of d d m structures
984            * @param end the upper bound of the range of d d m structures (not inclusive)
985            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
986            * @return the ordered range of d d m structures
987            * @throws SystemException if a system exception occurred
988            */
989            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll(
990                    int start, int end,
991                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
992                    throws com.liferay.portal.kernel.exception.SystemException {
993                    return getPersistence().findAll(start, end, orderByComparator);
994            }
995    
996            /**
997            * Removes all the d d m structures where uuid = &#63; from the database.
998            *
999            * @param uuid the uuid
1000            * @throws SystemException if a system exception occurred
1001            */
1002            public static void removeByUuid(java.lang.String uuid)
1003                    throws com.liferay.portal.kernel.exception.SystemException {
1004                    getPersistence().removeByUuid(uuid);
1005            }
1006    
1007            /**
1008            * Removes the d d m structure where uuid = &#63; and groupId = &#63; from the database.
1009            *
1010            * @param uuid the uuid
1011            * @param groupId the group ID
1012            * @throws SystemException if a system exception occurred
1013            */
1014            public static void removeByUUID_G(java.lang.String uuid, long groupId)
1015                    throws com.liferay.portal.kernel.exception.SystemException,
1016                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
1017                    getPersistence().removeByUUID_G(uuid, groupId);
1018            }
1019    
1020            /**
1021            * Removes all the d d m structures where groupId = &#63; from the database.
1022            *
1023            * @param groupId the group ID
1024            * @throws SystemException if a system exception occurred
1025            */
1026            public static void removeByGroupId(long groupId)
1027                    throws com.liferay.portal.kernel.exception.SystemException {
1028                    getPersistence().removeByGroupId(groupId);
1029            }
1030    
1031            /**
1032            * Removes all the d d m structures where classNameId = &#63; from the database.
1033            *
1034            * @param classNameId the class name ID
1035            * @throws SystemException if a system exception occurred
1036            */
1037            public static void removeByClassNameId(long classNameId)
1038                    throws com.liferay.portal.kernel.exception.SystemException {
1039                    getPersistence().removeByClassNameId(classNameId);
1040            }
1041    
1042            /**
1043            * Removes the d d m structure where groupId = &#63; and structureKey = &#63; from the database.
1044            *
1045            * @param groupId the group ID
1046            * @param structureKey the structure key
1047            * @throws SystemException if a system exception occurred
1048            */
1049            public static void removeByG_S(long groupId, java.lang.String structureKey)
1050                    throws com.liferay.portal.kernel.exception.SystemException,
1051                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureException {
1052                    getPersistence().removeByG_S(groupId, structureKey);
1053            }
1054    
1055            /**
1056            * Removes all the d d m structures where groupId = &#63; and name = &#63; and description = &#63; from the database.
1057            *
1058            * @param groupId the group ID
1059            * @param name the name
1060            * @param description the description
1061            * @throws SystemException if a system exception occurred
1062            */
1063            public static void removeByG_N_D(long groupId, java.lang.String name,
1064                    java.lang.String description)
1065                    throws com.liferay.portal.kernel.exception.SystemException {
1066                    getPersistence().removeByG_N_D(groupId, name, description);
1067            }
1068    
1069            /**
1070            * Removes all the d d m structures from the database.
1071            *
1072            * @throws SystemException if a system exception occurred
1073            */
1074            public static void removeAll()
1075                    throws com.liferay.portal.kernel.exception.SystemException {
1076                    getPersistence().removeAll();
1077            }
1078    
1079            /**
1080            * Returns the number of d d m structures where uuid = &#63;.
1081            *
1082            * @param uuid the uuid
1083            * @return the number of matching d d m structures
1084            * @throws SystemException if a system exception occurred
1085            */
1086            public static int countByUuid(java.lang.String uuid)
1087                    throws com.liferay.portal.kernel.exception.SystemException {
1088                    return getPersistence().countByUuid(uuid);
1089            }
1090    
1091            /**
1092            * Returns the number of d d m structures where uuid = &#63; and groupId = &#63;.
1093            *
1094            * @param uuid the uuid
1095            * @param groupId the group ID
1096            * @return the number of matching d d m structures
1097            * @throws SystemException if a system exception occurred
1098            */
1099            public static int countByUUID_G(java.lang.String uuid, long groupId)
1100                    throws com.liferay.portal.kernel.exception.SystemException {
1101                    return getPersistence().countByUUID_G(uuid, groupId);
1102            }
1103    
1104            /**
1105            * Returns the number of d d m structures where groupId = &#63;.
1106            *
1107            * @param groupId the group ID
1108            * @return the number of matching d d m structures
1109            * @throws SystemException if a system exception occurred
1110            */
1111            public static int countByGroupId(long groupId)
1112                    throws com.liferay.portal.kernel.exception.SystemException {
1113                    return getPersistence().countByGroupId(groupId);
1114            }
1115    
1116            /**
1117            * Returns the number of d d m structures that the user has permission to view where groupId = &#63;.
1118            *
1119            * @param groupId the group ID
1120            * @return the number of matching d d m structures that the user has permission to view
1121            * @throws SystemException if a system exception occurred
1122            */
1123            public static int filterCountByGroupId(long groupId)
1124                    throws com.liferay.portal.kernel.exception.SystemException {
1125                    return getPersistence().filterCountByGroupId(groupId);
1126            }
1127    
1128            /**
1129            * Returns the number of d d m structures where classNameId = &#63;.
1130            *
1131            * @param classNameId the class name ID
1132            * @return the number of matching d d m structures
1133            * @throws SystemException if a system exception occurred
1134            */
1135            public static int countByClassNameId(long classNameId)
1136                    throws com.liferay.portal.kernel.exception.SystemException {
1137                    return getPersistence().countByClassNameId(classNameId);
1138            }
1139    
1140            /**
1141            * Returns the number of d d m structures where groupId = &#63; and structureKey = &#63;.
1142            *
1143            * @param groupId the group ID
1144            * @param structureKey the structure key
1145            * @return the number of matching d d m structures
1146            * @throws SystemException if a system exception occurred
1147            */
1148            public static int countByG_S(long groupId, java.lang.String structureKey)
1149                    throws com.liferay.portal.kernel.exception.SystemException {
1150                    return getPersistence().countByG_S(groupId, structureKey);
1151            }
1152    
1153            /**
1154            * Returns the number of d d m structures where groupId = &#63; and name = &#63; and description = &#63;.
1155            *
1156            * @param groupId the group ID
1157            * @param name the name
1158            * @param description the description
1159            * @return the number of matching d d m structures
1160            * @throws SystemException if a system exception occurred
1161            */
1162            public static int countByG_N_D(long groupId, java.lang.String name,
1163                    java.lang.String description)
1164                    throws com.liferay.portal.kernel.exception.SystemException {
1165                    return getPersistence().countByG_N_D(groupId, name, description);
1166            }
1167    
1168            /**
1169            * Returns the number of d d m structures that the user has permission to view where groupId = &#63; and name = &#63; and description = &#63;.
1170            *
1171            * @param groupId the group ID
1172            * @param name the name
1173            * @param description the description
1174            * @return the number of matching d d m structures that the user has permission to view
1175            * @throws SystemException if a system exception occurred
1176            */
1177            public static int filterCountByG_N_D(long groupId, java.lang.String name,
1178                    java.lang.String description)
1179                    throws com.liferay.portal.kernel.exception.SystemException {
1180                    return getPersistence().filterCountByG_N_D(groupId, name, description);
1181            }
1182    
1183            /**
1184            * Returns the number of d d m structures.
1185            *
1186            * @return the number of d d m structures
1187            * @throws SystemException if a system exception occurred
1188            */
1189            public static int countAll()
1190                    throws com.liferay.portal.kernel.exception.SystemException {
1191                    return getPersistence().countAll();
1192            }
1193    
1194            public static DDMStructurePersistence getPersistence() {
1195                    if (_persistence == null) {
1196                            _persistence = (DDMStructurePersistence)PortalBeanLocatorUtil.locate(DDMStructurePersistence.class.getName());
1197    
1198                            ReferenceRegistry.registerReference(DDMStructureUtil.class,
1199                                    "_persistence");
1200                    }
1201    
1202                    return _persistence;
1203            }
1204    
1205            public void setPersistence(DDMStructurePersistence persistence) {
1206                    _persistence = persistence;
1207    
1208                    ReferenceRegistry.registerReference(DDMStructureUtil.class,
1209                            "_persistence");
1210            }
1211    
1212            private static DDMStructurePersistence _persistence;
1213    }