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