001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.dynamicdatamapping.service.persistence; 016 017 import com.liferay.portal.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 = ?. 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 = ?. 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 = ?. 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 = ?. 249 * 250 * @param uuid the uuid 251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 252 * @return the first matching d d m structure 253 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 254 * @throws SystemException if a system exception occurred 255 */ 256 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByUuid_First( 257 java.lang.String uuid, 258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 259 throws com.liferay.portal.kernel.exception.SystemException, 260 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 261 return getPersistence().findByUuid_First(uuid, orderByComparator); 262 } 263 264 /** 265 * Returns the first d d m structure in the ordered set where uuid = ?. 266 * 267 * @param uuid the uuid 268 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 269 * @return the first matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 270 * @throws SystemException if a system exception occurred 271 */ 272 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUuid_First( 273 java.lang.String uuid, 274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 275 throws com.liferay.portal.kernel.exception.SystemException { 276 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 277 } 278 279 /** 280 * Returns the last d d m structure in the ordered set where uuid = ?. 281 * 282 * @param uuid the uuid 283 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 284 * @return the last matching d d m structure 285 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 286 * @throws SystemException if a system exception occurred 287 */ 288 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByUuid_Last( 289 java.lang.String uuid, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.kernel.exception.SystemException, 292 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 293 return getPersistence().findByUuid_Last(uuid, orderByComparator); 294 } 295 296 /** 297 * Returns the last d d m structure in the ordered set where uuid = ?. 298 * 299 * @param uuid the uuid 300 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 301 * @return the last matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUuid_Last( 305 java.lang.String uuid, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException { 308 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 309 } 310 311 /** 312 * Returns the d d m structures before and after the current d d m structure in the ordered set where uuid = ?. 313 * 314 * @param structureId the primary key of the current d d m structure 315 * @param uuid the uuid 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the previous, current, and next d d m structure 318 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByUuid_PrevAndNext( 322 long structureId, java.lang.String uuid, 323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 326 return getPersistence() 327 .findByUuid_PrevAndNext(structureId, uuid, orderByComparator); 328 } 329 330 /** 331 * Returns the d d m structure where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureException} if it could not be found. 332 * 333 * @param uuid the uuid 334 * @param groupId the group ID 335 * @return the matching d d m structure 336 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 337 * @throws SystemException if a system exception occurred 338 */ 339 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByUUID_G( 340 java.lang.String uuid, long groupId) 341 throws com.liferay.portal.kernel.exception.SystemException, 342 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 343 return getPersistence().findByUUID_G(uuid, groupId); 344 } 345 346 /** 347 * Returns the d d m structure where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 348 * 349 * @param uuid the uuid 350 * @param groupId the group ID 351 * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 352 * @throws SystemException if a system exception occurred 353 */ 354 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUUID_G( 355 java.lang.String uuid, long groupId) 356 throws com.liferay.portal.kernel.exception.SystemException { 357 return getPersistence().fetchByUUID_G(uuid, groupId); 358 } 359 360 /** 361 * Returns the d d m structure where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 362 * 363 * @param uuid the uuid 364 * @param groupId the group ID 365 * @param retrieveFromCache whether to use the finder cache 366 * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 367 * @throws SystemException if a system exception occurred 368 */ 369 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUUID_G( 370 java.lang.String uuid, long groupId, boolean retrieveFromCache) 371 throws com.liferay.portal.kernel.exception.SystemException { 372 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 373 } 374 375 /** 376 * Returns all the d d m structures where groupId = ?. 377 * 378 * @param groupId the group ID 379 * @return the matching d d m structures 380 * @throws SystemException if a system exception occurred 381 */ 382 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByGroupId( 383 long groupId) 384 throws com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence().findByGroupId(groupId); 386 } 387 388 /** 389 * Returns a range of all the d d m structures where groupId = ?. 390 * 391 * <p> 392 * 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. 393 * </p> 394 * 395 * @param groupId the group ID 396 * @param start the lower bound of the range of d d m structures 397 * @param end the upper bound of the range of d d m structures (not inclusive) 398 * @return the range of matching d d m structures 399 * @throws SystemException if a system exception occurred 400 */ 401 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByGroupId( 402 long groupId, int start, int end) 403 throws com.liferay.portal.kernel.exception.SystemException { 404 return getPersistence().findByGroupId(groupId, start, end); 405 } 406 407 /** 408 * Returns an ordered range of all the d d m structures where groupId = ?. 409 * 410 * <p> 411 * 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. 412 * </p> 413 * 414 * @param groupId the group ID 415 * @param start the lower bound of the range of d d m structures 416 * @param end the upper bound of the range of d d m structures (not inclusive) 417 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 418 * @return the ordered range of matching d d m structures 419 * @throws SystemException if a system exception occurred 420 */ 421 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByGroupId( 422 long groupId, int start, int end, 423 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 424 throws com.liferay.portal.kernel.exception.SystemException { 425 return getPersistence() 426 .findByGroupId(groupId, start, end, orderByComparator); 427 } 428 429 /** 430 * Returns the first d d m structure in the ordered set where groupId = ?. 431 * 432 * @param groupId the group ID 433 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 434 * @return the first matching d d m structure 435 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 436 * @throws SystemException if a system exception occurred 437 */ 438 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByGroupId_First( 439 long groupId, 440 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 441 throws com.liferay.portal.kernel.exception.SystemException, 442 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 443 return getPersistence().findByGroupId_First(groupId, orderByComparator); 444 } 445 446 /** 447 * Returns the first d d m structure in the ordered set where groupId = ?. 448 * 449 * @param groupId the group ID 450 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 451 * @return the first matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 452 * @throws SystemException if a system exception occurred 453 */ 454 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByGroupId_First( 455 long groupId, 456 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 457 throws com.liferay.portal.kernel.exception.SystemException { 458 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 459 } 460 461 /** 462 * Returns the last d d m structure in the ordered set where groupId = ?. 463 * 464 * @param groupId the group ID 465 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 466 * @return the last matching d d m structure 467 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 468 * @throws SystemException if a system exception occurred 469 */ 470 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByGroupId_Last( 471 long groupId, 472 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 473 throws com.liferay.portal.kernel.exception.SystemException, 474 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 475 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 476 } 477 478 /** 479 * Returns the last d d m structure in the ordered set where groupId = ?. 480 * 481 * @param groupId the group ID 482 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 483 * @return the last matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 484 * @throws SystemException if a system exception occurred 485 */ 486 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByGroupId_Last( 487 long groupId, 488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 489 throws com.liferay.portal.kernel.exception.SystemException { 490 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 491 } 492 493 /** 494 * Returns the d d m structures before and after the current d d m structure in the ordered set where groupId = ?. 495 * 496 * @param structureId the primary key of the current d d m structure 497 * @param groupId the group ID 498 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 499 * @return the previous, current, and next d d m structure 500 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 501 * @throws SystemException if a system exception occurred 502 */ 503 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByGroupId_PrevAndNext( 504 long structureId, long groupId, 505 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 506 throws com.liferay.portal.kernel.exception.SystemException, 507 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 508 return getPersistence() 509 .findByGroupId_PrevAndNext(structureId, groupId, 510 orderByComparator); 511 } 512 513 /** 514 * Returns all the d d m structures that the user has permission to view where groupId = ?. 515 * 516 * @param groupId the group ID 517 * @return the matching d d m structures that the user has permission to view 518 * @throws SystemException if a system exception occurred 519 */ 520 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByGroupId( 521 long groupId) 522 throws com.liferay.portal.kernel.exception.SystemException { 523 return getPersistence().filterFindByGroupId(groupId); 524 } 525 526 /** 527 * Returns a range of all the d d m structures that the user has permission to view where groupId = ?. 528 * 529 * <p> 530 * 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. 531 * </p> 532 * 533 * @param groupId the group ID 534 * @param start the lower bound of the range of d d m structures 535 * @param end the upper bound of the range of d d m structures (not inclusive) 536 * @return the range of matching d d m structures that the user has permission to view 537 * @throws SystemException if a system exception occurred 538 */ 539 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByGroupId( 540 long groupId, int start, int end) 541 throws com.liferay.portal.kernel.exception.SystemException { 542 return getPersistence().filterFindByGroupId(groupId, start, end); 543 } 544 545 /** 546 * Returns an ordered range of all the d d m structures that the user has permissions to view where groupId = ?. 547 * 548 * <p> 549 * 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. 550 * </p> 551 * 552 * @param groupId the group ID 553 * @param start the lower bound of the range of d d m structures 554 * @param end the upper bound of the range of d d m structures (not inclusive) 555 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 556 * @return the ordered range of matching d d m structures that the user has permission to view 557 * @throws SystemException if a system exception occurred 558 */ 559 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByGroupId( 560 long groupId, int start, int end, 561 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 562 throws com.liferay.portal.kernel.exception.SystemException { 563 return getPersistence() 564 .filterFindByGroupId(groupId, start, end, orderByComparator); 565 } 566 567 /** 568 * 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 = ?. 569 * 570 * @param structureId the primary key of the current d d m structure 571 * @param groupId the group ID 572 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 573 * @return the previous, current, and next d d m structure 574 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 575 * @throws SystemException if a system exception occurred 576 */ 577 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] filterFindByGroupId_PrevAndNext( 578 long structureId, long groupId, 579 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 580 throws com.liferay.portal.kernel.exception.SystemException, 581 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 582 return getPersistence() 583 .filterFindByGroupId_PrevAndNext(structureId, groupId, 584 orderByComparator); 585 } 586 587 /** 588 * Returns all the d d m structures where classNameId = ?. 589 * 590 * @param classNameId the class name ID 591 * @return the matching d d m structures 592 * @throws SystemException if a system exception occurred 593 */ 594 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByClassNameId( 595 long classNameId) 596 throws com.liferay.portal.kernel.exception.SystemException { 597 return getPersistence().findByClassNameId(classNameId); 598 } 599 600 /** 601 * Returns a range of all the d d m structures where classNameId = ?. 602 * 603 * <p> 604 * 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. 605 * </p> 606 * 607 * @param classNameId the class name ID 608 * @param start the lower bound of the range of d d m structures 609 * @param end the upper bound of the range of d d m structures (not inclusive) 610 * @return the range of matching d d m structures 611 * @throws SystemException if a system exception occurred 612 */ 613 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByClassNameId( 614 long classNameId, int start, int end) 615 throws com.liferay.portal.kernel.exception.SystemException { 616 return getPersistence().findByClassNameId(classNameId, start, end); 617 } 618 619 /** 620 * Returns an ordered range of all the d d m structures where classNameId = ?. 621 * 622 * <p> 623 * 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. 624 * </p> 625 * 626 * @param classNameId the class name ID 627 * @param start the lower bound of the range of d d m structures 628 * @param end the upper bound of the range of d d m structures (not inclusive) 629 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 630 * @return the ordered range of matching d d m structures 631 * @throws SystemException if a system exception occurred 632 */ 633 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByClassNameId( 634 long classNameId, int start, int end, 635 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 636 throws com.liferay.portal.kernel.exception.SystemException { 637 return getPersistence() 638 .findByClassNameId(classNameId, start, end, orderByComparator); 639 } 640 641 /** 642 * Returns the first d d m structure in the ordered set where classNameId = ?. 643 * 644 * @param classNameId the class name ID 645 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 646 * @return the first matching d d m structure 647 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 648 * @throws SystemException if a system exception occurred 649 */ 650 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByClassNameId_First( 651 long classNameId, 652 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 653 throws com.liferay.portal.kernel.exception.SystemException, 654 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 655 return getPersistence() 656 .findByClassNameId_First(classNameId, orderByComparator); 657 } 658 659 /** 660 * Returns the first d d m structure in the ordered set where classNameId = ?. 661 * 662 * @param classNameId the class name ID 663 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 664 * @return the first matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 665 * @throws SystemException if a system exception occurred 666 */ 667 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByClassNameId_First( 668 long classNameId, 669 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 670 throws com.liferay.portal.kernel.exception.SystemException { 671 return getPersistence() 672 .fetchByClassNameId_First(classNameId, orderByComparator); 673 } 674 675 /** 676 * Returns the last d d m structure in the ordered set where classNameId = ?. 677 * 678 * @param classNameId the class name ID 679 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 680 * @return the last matching d d m structure 681 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 682 * @throws SystemException if a system exception occurred 683 */ 684 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByClassNameId_Last( 685 long classNameId, 686 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 687 throws com.liferay.portal.kernel.exception.SystemException, 688 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 689 return getPersistence() 690 .findByClassNameId_Last(classNameId, orderByComparator); 691 } 692 693 /** 694 * Returns the last d d m structure in the ordered set where classNameId = ?. 695 * 696 * @param classNameId the class name ID 697 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 698 * @return the last matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 699 * @throws SystemException if a system exception occurred 700 */ 701 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByClassNameId_Last( 702 long classNameId, 703 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 704 throws com.liferay.portal.kernel.exception.SystemException { 705 return getPersistence() 706 .fetchByClassNameId_Last(classNameId, orderByComparator); 707 } 708 709 /** 710 * Returns the d d m structures before and after the current d d m structure in the ordered set where classNameId = ?. 711 * 712 * @param structureId the primary key of the current d d m structure 713 * @param classNameId the class name ID 714 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 715 * @return the previous, current, and next d d m structure 716 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 717 * @throws SystemException if a system exception occurred 718 */ 719 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByClassNameId_PrevAndNext( 720 long structureId, long classNameId, 721 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 722 throws com.liferay.portal.kernel.exception.SystemException, 723 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 724 return getPersistence() 725 .findByClassNameId_PrevAndNext(structureId, classNameId, 726 orderByComparator); 727 } 728 729 /** 730 * Returns the d d m structure where groupId = ? and structureKey = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureException} if it could not be found. 731 * 732 * @param groupId the group ID 733 * @param structureKey the structure key 734 * @return the matching d d m structure 735 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 736 * @throws SystemException if a system exception occurred 737 */ 738 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_S( 739 long groupId, java.lang.String structureKey) 740 throws com.liferay.portal.kernel.exception.SystemException, 741 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 742 return getPersistence().findByG_S(groupId, structureKey); 743 } 744 745 /** 746 * Returns the d d m structure where groupId = ? and structureKey = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 747 * 748 * @param groupId the group ID 749 * @param structureKey the structure key 750 * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 751 * @throws SystemException if a system exception occurred 752 */ 753 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_S( 754 long groupId, java.lang.String structureKey) 755 throws com.liferay.portal.kernel.exception.SystemException { 756 return getPersistence().fetchByG_S(groupId, structureKey); 757 } 758 759 /** 760 * Returns the d d m structure where groupId = ? and structureKey = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 761 * 762 * @param groupId the group ID 763 * @param structureKey the structure key 764 * @param retrieveFromCache whether to use the finder cache 765 * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 766 * @throws SystemException if a system exception occurred 767 */ 768 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_S( 769 long groupId, java.lang.String structureKey, boolean retrieveFromCache) 770 throws com.liferay.portal.kernel.exception.SystemException { 771 return getPersistence() 772 .fetchByG_S(groupId, structureKey, retrieveFromCache); 773 } 774 775 /** 776 * Returns all the d d m structures where companyId = ? and classNameId = ?. 777 * 778 * @param companyId the company ID 779 * @param classNameId the class name ID 780 * @return the matching d d m structures 781 * @throws SystemException if a system exception occurred 782 */ 783 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByC_C( 784 long companyId, long classNameId) 785 throws com.liferay.portal.kernel.exception.SystemException { 786 return getPersistence().findByC_C(companyId, classNameId); 787 } 788 789 /** 790 * Returns a range of all the d d m structures where companyId = ? and classNameId = ?. 791 * 792 * <p> 793 * 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. 794 * </p> 795 * 796 * @param companyId the company ID 797 * @param classNameId the class name ID 798 * @param start the lower bound of the range of d d m structures 799 * @param end the upper bound of the range of d d m structures (not inclusive) 800 * @return the range of matching d d m structures 801 * @throws SystemException if a system exception occurred 802 */ 803 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByC_C( 804 long companyId, long classNameId, int start, int end) 805 throws com.liferay.portal.kernel.exception.SystemException { 806 return getPersistence().findByC_C(companyId, classNameId, start, end); 807 } 808 809 /** 810 * Returns an ordered range of all the d d m structures where companyId = ? and classNameId = ?. 811 * 812 * <p> 813 * 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. 814 * </p> 815 * 816 * @param companyId the company ID 817 * @param classNameId the class name ID 818 * @param start the lower bound of the range of d d m structures 819 * @param end the upper bound of the range of d d m structures (not inclusive) 820 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 821 * @return the ordered range of matching d d m structures 822 * @throws SystemException if a system exception occurred 823 */ 824 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByC_C( 825 long companyId, long classNameId, int start, int end, 826 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 827 throws com.liferay.portal.kernel.exception.SystemException { 828 return getPersistence() 829 .findByC_C(companyId, classNameId, start, end, 830 orderByComparator); 831 } 832 833 /** 834 * Returns the first d d m structure in the ordered set where companyId = ? and classNameId = ?. 835 * 836 * @param companyId the company ID 837 * @param classNameId the class name ID 838 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 839 * @return the first matching d d m structure 840 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 841 * @throws SystemException if a system exception occurred 842 */ 843 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByC_C_First( 844 long companyId, long classNameId, 845 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 846 throws com.liferay.portal.kernel.exception.SystemException, 847 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 848 return getPersistence() 849 .findByC_C_First(companyId, classNameId, orderByComparator); 850 } 851 852 /** 853 * Returns the first d d m structure in the ordered set where companyId = ? and classNameId = ?. 854 * 855 * @param companyId the company ID 856 * @param classNameId the class name ID 857 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 858 * @return the first matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 859 * @throws SystemException if a system exception occurred 860 */ 861 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByC_C_First( 862 long companyId, long classNameId, 863 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 864 throws com.liferay.portal.kernel.exception.SystemException { 865 return getPersistence() 866 .fetchByC_C_First(companyId, classNameId, orderByComparator); 867 } 868 869 /** 870 * Returns the last d d m structure in the ordered set where companyId = ? and classNameId = ?. 871 * 872 * @param companyId the company ID 873 * @param classNameId the class name ID 874 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 875 * @return the last matching d d m structure 876 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 877 * @throws SystemException if a system exception occurred 878 */ 879 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByC_C_Last( 880 long companyId, long classNameId, 881 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 882 throws com.liferay.portal.kernel.exception.SystemException, 883 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 884 return getPersistence() 885 .findByC_C_Last(companyId, classNameId, orderByComparator); 886 } 887 888 /** 889 * Returns the last d d m structure in the ordered set where companyId = ? and classNameId = ?. 890 * 891 * @param companyId the company ID 892 * @param classNameId the class name ID 893 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 894 * @return the last matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 895 * @throws SystemException if a system exception occurred 896 */ 897 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByC_C_Last( 898 long companyId, long classNameId, 899 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 900 throws com.liferay.portal.kernel.exception.SystemException { 901 return getPersistence() 902 .fetchByC_C_Last(companyId, classNameId, orderByComparator); 903 } 904 905 /** 906 * Returns the d d m structures before and after the current d d m structure in the ordered set where companyId = ? and classNameId = ?. 907 * 908 * @param structureId the primary key of the current d d m structure 909 * @param companyId the company ID 910 * @param classNameId the class name ID 911 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 912 * @return the previous, current, and next d d m structure 913 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 914 * @throws SystemException if a system exception occurred 915 */ 916 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByC_C_PrevAndNext( 917 long structureId, long companyId, long classNameId, 918 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 919 throws com.liferay.portal.kernel.exception.SystemException, 920 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 921 return getPersistence() 922 .findByC_C_PrevAndNext(structureId, companyId, classNameId, 923 orderByComparator); 924 } 925 926 /** 927 * Returns all the d d m structures where groupId = ? and name = ? and description = ?. 928 * 929 * @param groupId the group ID 930 * @param name the name 931 * @param description the description 932 * @return the matching d d m structures 933 * @throws SystemException if a system exception occurred 934 */ 935 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D( 936 long groupId, java.lang.String name, java.lang.String description) 937 throws com.liferay.portal.kernel.exception.SystemException { 938 return getPersistence().findByG_N_D(groupId, name, description); 939 } 940 941 /** 942 * Returns a range of all the d d m structures where groupId = ? and name = ? and description = ?. 943 * 944 * <p> 945 * 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. 946 * </p> 947 * 948 * @param groupId the group ID 949 * @param name the name 950 * @param description the description 951 * @param start the lower bound of the range of d d m structures 952 * @param end the upper bound of the range of d d m structures (not inclusive) 953 * @return the range of matching d d m structures 954 * @throws SystemException if a system exception occurred 955 */ 956 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D( 957 long groupId, java.lang.String name, java.lang.String description, 958 int start, int end) 959 throws com.liferay.portal.kernel.exception.SystemException { 960 return getPersistence() 961 .findByG_N_D(groupId, name, description, start, end); 962 } 963 964 /** 965 * Returns an ordered range of all the d d m structures where groupId = ? and name = ? and description = ?. 966 * 967 * <p> 968 * 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. 969 * </p> 970 * 971 * @param groupId the group ID 972 * @param name the name 973 * @param description the description 974 * @param start the lower bound of the range of d d m structures 975 * @param end the upper bound of the range of d d m structures (not inclusive) 976 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 977 * @return the ordered range of matching d d m structures 978 * @throws SystemException if a system exception occurred 979 */ 980 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D( 981 long groupId, java.lang.String name, java.lang.String description, 982 int start, int end, 983 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 984 throws com.liferay.portal.kernel.exception.SystemException { 985 return getPersistence() 986 .findByG_N_D(groupId, name, description, start, end, 987 orderByComparator); 988 } 989 990 /** 991 * Returns the first d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 992 * 993 * @param groupId the group ID 994 * @param name the name 995 * @param description the description 996 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 997 * @return the first matching d d m structure 998 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 999 * @throws SystemException if a system exception occurred 1000 */ 1001 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_N_D_First( 1002 long groupId, java.lang.String name, java.lang.String description, 1003 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1004 throws com.liferay.portal.kernel.exception.SystemException, 1005 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 1006 return getPersistence() 1007 .findByG_N_D_First(groupId, name, description, 1008 orderByComparator); 1009 } 1010 1011 /** 1012 * Returns the first d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 1013 * 1014 * @param groupId the group ID 1015 * @param name the name 1016 * @param description the description 1017 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1018 * @return the first matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 1019 * @throws SystemException if a system exception occurred 1020 */ 1021 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_N_D_First( 1022 long groupId, java.lang.String name, java.lang.String description, 1023 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1024 throws com.liferay.portal.kernel.exception.SystemException { 1025 return getPersistence() 1026 .fetchByG_N_D_First(groupId, name, description, 1027 orderByComparator); 1028 } 1029 1030 /** 1031 * Returns the last d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 1032 * 1033 * @param groupId the group ID 1034 * @param name the name 1035 * @param description the description 1036 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1037 * @return the last matching d d m structure 1038 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 1039 * @throws SystemException if a system exception occurred 1040 */ 1041 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_N_D_Last( 1042 long groupId, java.lang.String name, java.lang.String description, 1043 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1044 throws com.liferay.portal.kernel.exception.SystemException, 1045 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 1046 return getPersistence() 1047 .findByG_N_D_Last(groupId, name, description, 1048 orderByComparator); 1049 } 1050 1051 /** 1052 * Returns the last d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 1053 * 1054 * @param groupId the group ID 1055 * @param name the name 1056 * @param description the description 1057 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1058 * @return the last matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 1059 * @throws SystemException if a system exception occurred 1060 */ 1061 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_N_D_Last( 1062 long groupId, java.lang.String name, java.lang.String description, 1063 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1064 throws com.liferay.portal.kernel.exception.SystemException { 1065 return getPersistence() 1066 .fetchByG_N_D_Last(groupId, name, description, 1067 orderByComparator); 1068 } 1069 1070 /** 1071 * Returns the d d m structures before and after the current d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 1072 * 1073 * @param structureId the primary key of the current d d m structure 1074 * @param groupId the group ID 1075 * @param name the name 1076 * @param description the description 1077 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1078 * @return the previous, current, and next d d m structure 1079 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 1080 * @throws SystemException if a system exception occurred 1081 */ 1082 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByG_N_D_PrevAndNext( 1083 long structureId, long groupId, java.lang.String name, 1084 java.lang.String description, 1085 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1086 throws com.liferay.portal.kernel.exception.SystemException, 1087 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 1088 return getPersistence() 1089 .findByG_N_D_PrevAndNext(structureId, groupId, name, 1090 description, orderByComparator); 1091 } 1092 1093 /** 1094 * Returns all the d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?. 1095 * 1096 * @param groupId the group ID 1097 * @param name the name 1098 * @param description the description 1099 * @return the matching d d m structures that the user has permission to view 1100 * @throws SystemException if a system exception occurred 1101 */ 1102 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D( 1103 long groupId, java.lang.String name, java.lang.String description) 1104 throws com.liferay.portal.kernel.exception.SystemException { 1105 return getPersistence().filterFindByG_N_D(groupId, name, description); 1106 } 1107 1108 /** 1109 * Returns a range of all the d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?. 1110 * 1111 * <p> 1112 * 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. 1113 * </p> 1114 * 1115 * @param groupId the group ID 1116 * @param name the name 1117 * @param description the description 1118 * @param start the lower bound of the range of d d m structures 1119 * @param end the upper bound of the range of d d m structures (not inclusive) 1120 * @return the range 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 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D( 1124 long groupId, java.lang.String name, java.lang.String description, 1125 int start, int end) 1126 throws com.liferay.portal.kernel.exception.SystemException { 1127 return getPersistence() 1128 .filterFindByG_N_D(groupId, name, description, start, end); 1129 } 1130 1131 /** 1132 * Returns an ordered range of all the d d m structures that the user has permissions to view where groupId = ? and name = ? and description = ?. 1133 * 1134 * <p> 1135 * 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. 1136 * </p> 1137 * 1138 * @param groupId the group ID 1139 * @param name the name 1140 * @param description the description 1141 * @param start the lower bound of the range of d d m structures 1142 * @param end the upper bound of the range of d d m structures (not inclusive) 1143 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1144 * @return the ordered range of matching d d m structures that the user has permission to view 1145 * @throws SystemException if a system exception occurred 1146 */ 1147 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D( 1148 long groupId, java.lang.String name, java.lang.String description, 1149 int start, int end, 1150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1151 throws com.liferay.portal.kernel.exception.SystemException { 1152 return getPersistence() 1153 .filterFindByG_N_D(groupId, name, description, start, end, 1154 orderByComparator); 1155 } 1156 1157 /** 1158 * 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 = ? and name = ? and description = ?. 1159 * 1160 * @param structureId the primary key of the current d d m structure 1161 * @param groupId the group ID 1162 * @param name the name 1163 * @param description the description 1164 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1165 * @return the previous, current, and next d d m structure 1166 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 1167 * @throws SystemException if a system exception occurred 1168 */ 1169 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] filterFindByG_N_D_PrevAndNext( 1170 long structureId, long groupId, java.lang.String name, 1171 java.lang.String description, 1172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1173 throws com.liferay.portal.kernel.exception.SystemException, 1174 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 1175 return getPersistence() 1176 .filterFindByG_N_D_PrevAndNext(structureId, groupId, name, 1177 description, orderByComparator); 1178 } 1179 1180 /** 1181 * Returns all the d d m structures. 1182 * 1183 * @return the d d m structures 1184 * @throws SystemException if a system exception occurred 1185 */ 1186 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll() 1187 throws com.liferay.portal.kernel.exception.SystemException { 1188 return getPersistence().findAll(); 1189 } 1190 1191 /** 1192 * Returns a range of all the d d m structures. 1193 * 1194 * <p> 1195 * 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. 1196 * </p> 1197 * 1198 * @param start the lower bound of the range of d d m structures 1199 * @param end the upper bound of the range of d d m structures (not inclusive) 1200 * @return the range of d d m structures 1201 * @throws SystemException if a system exception occurred 1202 */ 1203 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll( 1204 int start, int end) 1205 throws com.liferay.portal.kernel.exception.SystemException { 1206 return getPersistence().findAll(start, end); 1207 } 1208 1209 /** 1210 * Returns an ordered range of all the d d m structures. 1211 * 1212 * <p> 1213 * 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. 1214 * </p> 1215 * 1216 * @param start the lower bound of the range of d d m structures 1217 * @param end the upper bound of the range of d d m structures (not inclusive) 1218 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1219 * @return the ordered range of d d m structures 1220 * @throws SystemException if a system exception occurred 1221 */ 1222 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll( 1223 int start, int end, 1224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1225 throws com.liferay.portal.kernel.exception.SystemException { 1226 return getPersistence().findAll(start, end, orderByComparator); 1227 } 1228 1229 /** 1230 * Removes all the d d m structures where uuid = ? from the database. 1231 * 1232 * @param uuid the uuid 1233 * @throws SystemException if a system exception occurred 1234 */ 1235 public static void removeByUuid(java.lang.String uuid) 1236 throws com.liferay.portal.kernel.exception.SystemException { 1237 getPersistence().removeByUuid(uuid); 1238 } 1239 1240 /** 1241 * Removes the d d m structure where uuid = ? and groupId = ? from the database. 1242 * 1243 * @param uuid the uuid 1244 * @param groupId the group ID 1245 * @return the d d m structure that was removed 1246 * @throws SystemException if a system exception occurred 1247 */ 1248 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure removeByUUID_G( 1249 java.lang.String uuid, long groupId) 1250 throws com.liferay.portal.kernel.exception.SystemException, 1251 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 1252 return getPersistence().removeByUUID_G(uuid, groupId); 1253 } 1254 1255 /** 1256 * Removes all the d d m structures where groupId = ? from the database. 1257 * 1258 * @param groupId the group ID 1259 * @throws SystemException if a system exception occurred 1260 */ 1261 public static void removeByGroupId(long groupId) 1262 throws com.liferay.portal.kernel.exception.SystemException { 1263 getPersistence().removeByGroupId(groupId); 1264 } 1265 1266 /** 1267 * Removes all the d d m structures where classNameId = ? from the database. 1268 * 1269 * @param classNameId the class name ID 1270 * @throws SystemException if a system exception occurred 1271 */ 1272 public static void removeByClassNameId(long classNameId) 1273 throws com.liferay.portal.kernel.exception.SystemException { 1274 getPersistence().removeByClassNameId(classNameId); 1275 } 1276 1277 /** 1278 * Removes the d d m structure where groupId = ? and structureKey = ? from the database. 1279 * 1280 * @param groupId the group ID 1281 * @param structureKey the structure key 1282 * @return the d d m structure that was removed 1283 * @throws SystemException if a system exception occurred 1284 */ 1285 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure removeByG_S( 1286 long groupId, java.lang.String structureKey) 1287 throws com.liferay.portal.kernel.exception.SystemException, 1288 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 1289 return getPersistence().removeByG_S(groupId, structureKey); 1290 } 1291 1292 /** 1293 * Removes all the d d m structures where companyId = ? and classNameId = ? from the database. 1294 * 1295 * @param companyId the company ID 1296 * @param classNameId the class name ID 1297 * @throws SystemException if a system exception occurred 1298 */ 1299 public static void removeByC_C(long companyId, long classNameId) 1300 throws com.liferay.portal.kernel.exception.SystemException { 1301 getPersistence().removeByC_C(companyId, classNameId); 1302 } 1303 1304 /** 1305 * Removes all the d d m structures where groupId = ? and name = ? and description = ? from the database. 1306 * 1307 * @param groupId the group ID 1308 * @param name the name 1309 * @param description the description 1310 * @throws SystemException if a system exception occurred 1311 */ 1312 public static void removeByG_N_D(long groupId, java.lang.String name, 1313 java.lang.String description) 1314 throws com.liferay.portal.kernel.exception.SystemException { 1315 getPersistence().removeByG_N_D(groupId, name, description); 1316 } 1317 1318 /** 1319 * Removes all the d d m structures from the database. 1320 * 1321 * @throws SystemException if a system exception occurred 1322 */ 1323 public static void removeAll() 1324 throws com.liferay.portal.kernel.exception.SystemException { 1325 getPersistence().removeAll(); 1326 } 1327 1328 /** 1329 * Returns the number of d d m structures where uuid = ?. 1330 * 1331 * @param uuid the uuid 1332 * @return the number of matching d d m structures 1333 * @throws SystemException if a system exception occurred 1334 */ 1335 public static int countByUuid(java.lang.String uuid) 1336 throws com.liferay.portal.kernel.exception.SystemException { 1337 return getPersistence().countByUuid(uuid); 1338 } 1339 1340 /** 1341 * Returns the number of d d m structures where uuid = ? and groupId = ?. 1342 * 1343 * @param uuid the uuid 1344 * @param groupId the group ID 1345 * @return the number of matching d d m structures 1346 * @throws SystemException if a system exception occurred 1347 */ 1348 public static int countByUUID_G(java.lang.String uuid, long groupId) 1349 throws com.liferay.portal.kernel.exception.SystemException { 1350 return getPersistence().countByUUID_G(uuid, groupId); 1351 } 1352 1353 /** 1354 * Returns the number of d d m structures where groupId = ?. 1355 * 1356 * @param groupId the group ID 1357 * @return the number of matching d d m structures 1358 * @throws SystemException if a system exception occurred 1359 */ 1360 public static int countByGroupId(long groupId) 1361 throws com.liferay.portal.kernel.exception.SystemException { 1362 return getPersistence().countByGroupId(groupId); 1363 } 1364 1365 /** 1366 * Returns the number of d d m structures that the user has permission to view where groupId = ?. 1367 * 1368 * @param groupId the group ID 1369 * @return the number of matching d d m structures that the user has permission to view 1370 * @throws SystemException if a system exception occurred 1371 */ 1372 public static int filterCountByGroupId(long groupId) 1373 throws com.liferay.portal.kernel.exception.SystemException { 1374 return getPersistence().filterCountByGroupId(groupId); 1375 } 1376 1377 /** 1378 * Returns the number of d d m structures where classNameId = ?. 1379 * 1380 * @param classNameId the class name ID 1381 * @return the number of matching d d m structures 1382 * @throws SystemException if a system exception occurred 1383 */ 1384 public static int countByClassNameId(long classNameId) 1385 throws com.liferay.portal.kernel.exception.SystemException { 1386 return getPersistence().countByClassNameId(classNameId); 1387 } 1388 1389 /** 1390 * Returns the number of d d m structures where groupId = ? and structureKey = ?. 1391 * 1392 * @param groupId the group ID 1393 * @param structureKey the structure key 1394 * @return the number of matching d d m structures 1395 * @throws SystemException if a system exception occurred 1396 */ 1397 public static int countByG_S(long groupId, java.lang.String structureKey) 1398 throws com.liferay.portal.kernel.exception.SystemException { 1399 return getPersistence().countByG_S(groupId, structureKey); 1400 } 1401 1402 /** 1403 * Returns the number of d d m structures where companyId = ? and classNameId = ?. 1404 * 1405 * @param companyId the company ID 1406 * @param classNameId the class name ID 1407 * @return the number of matching d d m structures 1408 * @throws SystemException if a system exception occurred 1409 */ 1410 public static int countByC_C(long companyId, long classNameId) 1411 throws com.liferay.portal.kernel.exception.SystemException { 1412 return getPersistence().countByC_C(companyId, classNameId); 1413 } 1414 1415 /** 1416 * Returns the number of d d m structures where groupId = ? and name = ? and description = ?. 1417 * 1418 * @param groupId the group ID 1419 * @param name the name 1420 * @param description the description 1421 * @return the number of matching d d m structures 1422 * @throws SystemException if a system exception occurred 1423 */ 1424 public static int countByG_N_D(long groupId, java.lang.String name, 1425 java.lang.String description) 1426 throws com.liferay.portal.kernel.exception.SystemException { 1427 return getPersistence().countByG_N_D(groupId, name, description); 1428 } 1429 1430 /** 1431 * Returns the number of d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?. 1432 * 1433 * @param groupId the group ID 1434 * @param name the name 1435 * @param description the description 1436 * @return the number of matching d d m structures that the user has permission to view 1437 * @throws SystemException if a system exception occurred 1438 */ 1439 public static int filterCountByG_N_D(long groupId, java.lang.String name, 1440 java.lang.String description) 1441 throws com.liferay.portal.kernel.exception.SystemException { 1442 return getPersistence().filterCountByG_N_D(groupId, name, description); 1443 } 1444 1445 /** 1446 * Returns the number of d d m structures. 1447 * 1448 * @return the number of d d m structures 1449 * @throws SystemException if a system exception occurred 1450 */ 1451 public static int countAll() 1452 throws com.liferay.portal.kernel.exception.SystemException { 1453 return getPersistence().countAll(); 1454 } 1455 1456 /** 1457 * Returns all the document library file entry types associated with the d d m structure. 1458 * 1459 * @param pk the primary key of the d d m structure 1460 * @return the document library file entry types associated with the d d m structure 1461 * @throws SystemException if a system exception occurred 1462 */ 1463 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes( 1464 long pk) throws com.liferay.portal.kernel.exception.SystemException { 1465 return getPersistence().getDLFileEntryTypes(pk); 1466 } 1467 1468 /** 1469 * Returns a range of all the document library file entry types associated with the d d m structure. 1470 * 1471 * <p> 1472 * 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. 1473 * </p> 1474 * 1475 * @param pk the primary key of the d d m structure 1476 * @param start the lower bound of the range of d d m structures 1477 * @param end the upper bound of the range of d d m structures (not inclusive) 1478 * @return the range of document library file entry types associated with the d d m structure 1479 * @throws SystemException if a system exception occurred 1480 */ 1481 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes( 1482 long pk, int start, int end) 1483 throws com.liferay.portal.kernel.exception.SystemException { 1484 return getPersistence().getDLFileEntryTypes(pk, start, end); 1485 } 1486 1487 /** 1488 * Returns an ordered range of all the document library file entry types associated with the d d m structure. 1489 * 1490 * <p> 1491 * 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. 1492 * </p> 1493 * 1494 * @param pk the primary key of the d d m structure 1495 * @param start the lower bound of the range of d d m structures 1496 * @param end the upper bound of the range of d d m structures (not inclusive) 1497 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1498 * @return the ordered range of document library file entry types associated with the d d m structure 1499 * @throws SystemException if a system exception occurred 1500 */ 1501 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes( 1502 long pk, int start, int end, 1503 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1504 throws com.liferay.portal.kernel.exception.SystemException { 1505 return getPersistence() 1506 .getDLFileEntryTypes(pk, start, end, orderByComparator); 1507 } 1508 1509 /** 1510 * Returns the number of document library file entry types associated with the d d m structure. 1511 * 1512 * @param pk the primary key of the d d m structure 1513 * @return the number of document library file entry types associated with the d d m structure 1514 * @throws SystemException if a system exception occurred 1515 */ 1516 public static int getDLFileEntryTypesSize(long pk) 1517 throws com.liferay.portal.kernel.exception.SystemException { 1518 return getPersistence().getDLFileEntryTypesSize(pk); 1519 } 1520 1521 /** 1522 * Returns <code>true</code> if the document library file entry type is associated with the d d m structure. 1523 * 1524 * @param pk the primary key of the d d m structure 1525 * @param dlFileEntryTypePK the primary key of the document library file entry type 1526 * @return <code>true</code> if the document library file entry type is associated with the d d m structure; <code>false</code> otherwise 1527 * @throws SystemException if a system exception occurred 1528 */ 1529 public static boolean containsDLFileEntryType(long pk, 1530 long dlFileEntryTypePK) 1531 throws com.liferay.portal.kernel.exception.SystemException { 1532 return getPersistence().containsDLFileEntryType(pk, dlFileEntryTypePK); 1533 } 1534 1535 /** 1536 * Returns <code>true</code> if the d d m structure has any document library file entry types associated with it. 1537 * 1538 * @param pk the primary key of the d d m structure to check for associations with document library file entry types 1539 * @return <code>true</code> if the d d m structure has any document library file entry types associated with it; <code>false</code> otherwise 1540 * @throws SystemException if a system exception occurred 1541 */ 1542 public static boolean containsDLFileEntryTypes(long pk) 1543 throws com.liferay.portal.kernel.exception.SystemException { 1544 return getPersistence().containsDLFileEntryTypes(pk); 1545 } 1546 1547 /** 1548 * Adds an association between the d d m structure and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1549 * 1550 * @param pk the primary key of the d d m structure 1551 * @param dlFileEntryTypePK the primary key of the document library file entry type 1552 * @throws SystemException if a system exception occurred 1553 */ 1554 public static void addDLFileEntryType(long pk, long dlFileEntryTypePK) 1555 throws com.liferay.portal.kernel.exception.SystemException { 1556 getPersistence().addDLFileEntryType(pk, dlFileEntryTypePK); 1557 } 1558 1559 /** 1560 * Adds an association between the d d m structure and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1561 * 1562 * @param pk the primary key of the d d m structure 1563 * @param dlFileEntryType the document library file entry type 1564 * @throws SystemException if a system exception occurred 1565 */ 1566 public static void addDLFileEntryType(long pk, 1567 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) 1568 throws com.liferay.portal.kernel.exception.SystemException { 1569 getPersistence().addDLFileEntryType(pk, dlFileEntryType); 1570 } 1571 1572 /** 1573 * Adds an association between the d d m structure and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1574 * 1575 * @param pk the primary key of the d d m structure 1576 * @param dlFileEntryTypePKs the primary keys of the document library file entry types 1577 * @throws SystemException if a system exception occurred 1578 */ 1579 public static void addDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs) 1580 throws com.liferay.portal.kernel.exception.SystemException { 1581 getPersistence().addDLFileEntryTypes(pk, dlFileEntryTypePKs); 1582 } 1583 1584 /** 1585 * Adds an association between the d d m structure and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1586 * 1587 * @param pk the primary key of the d d m structure 1588 * @param dlFileEntryTypes the document library file entry types 1589 * @throws SystemException if a system exception occurred 1590 */ 1591 public static void addDLFileEntryTypes(long pk, 1592 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) 1593 throws com.liferay.portal.kernel.exception.SystemException { 1594 getPersistence().addDLFileEntryTypes(pk, dlFileEntryTypes); 1595 } 1596 1597 /** 1598 * Clears all associations between the d d m structure and its document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1599 * 1600 * @param pk the primary key of the d d m structure to clear the associated document library file entry types from 1601 * @throws SystemException if a system exception occurred 1602 */ 1603 public static void clearDLFileEntryTypes(long pk) 1604 throws com.liferay.portal.kernel.exception.SystemException { 1605 getPersistence().clearDLFileEntryTypes(pk); 1606 } 1607 1608 /** 1609 * Removes the association between the d d m structure and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1610 * 1611 * @param pk the primary key of the d d m structure 1612 * @param dlFileEntryTypePK the primary key of the document library file entry type 1613 * @throws SystemException if a system exception occurred 1614 */ 1615 public static void removeDLFileEntryType(long pk, long dlFileEntryTypePK) 1616 throws com.liferay.portal.kernel.exception.SystemException { 1617 getPersistence().removeDLFileEntryType(pk, dlFileEntryTypePK); 1618 } 1619 1620 /** 1621 * Removes the association between the d d m structure and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1622 * 1623 * @param pk the primary key of the d d m structure 1624 * @param dlFileEntryType the document library file entry type 1625 * @throws SystemException if a system exception occurred 1626 */ 1627 public static void removeDLFileEntryType(long pk, 1628 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) 1629 throws com.liferay.portal.kernel.exception.SystemException { 1630 getPersistence().removeDLFileEntryType(pk, dlFileEntryType); 1631 } 1632 1633 /** 1634 * Removes the association between the d d m structure and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1635 * 1636 * @param pk the primary key of the d d m structure 1637 * @param dlFileEntryTypePKs the primary keys of the document library file entry types 1638 * @throws SystemException if a system exception occurred 1639 */ 1640 public static void removeDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs) 1641 throws com.liferay.portal.kernel.exception.SystemException { 1642 getPersistence().removeDLFileEntryTypes(pk, dlFileEntryTypePKs); 1643 } 1644 1645 /** 1646 * Removes the association between the d d m structure and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1647 * 1648 * @param pk the primary key of the d d m structure 1649 * @param dlFileEntryTypes the document library file entry types 1650 * @throws SystemException if a system exception occurred 1651 */ 1652 public static void removeDLFileEntryTypes(long pk, 1653 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) 1654 throws com.liferay.portal.kernel.exception.SystemException { 1655 getPersistence().removeDLFileEntryTypes(pk, dlFileEntryTypes); 1656 } 1657 1658 /** 1659 * Sets the document library file entry types associated with the d d m structure, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1660 * 1661 * @param pk the primary key of the d d m structure 1662 * @param dlFileEntryTypePKs the primary keys of the document library file entry types to be associated with the d d m structure 1663 * @throws SystemException if a system exception occurred 1664 */ 1665 public static void setDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs) 1666 throws com.liferay.portal.kernel.exception.SystemException { 1667 getPersistence().setDLFileEntryTypes(pk, dlFileEntryTypePKs); 1668 } 1669 1670 /** 1671 * Sets the document library file entry types associated with the d d m structure, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1672 * 1673 * @param pk the primary key of the d d m structure 1674 * @param dlFileEntryTypes the document library file entry types to be associated with the d d m structure 1675 * @throws SystemException if a system exception occurred 1676 */ 1677 public static void setDLFileEntryTypes(long pk, 1678 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) 1679 throws com.liferay.portal.kernel.exception.SystemException { 1680 getPersistence().setDLFileEntryTypes(pk, dlFileEntryTypes); 1681 } 1682 1683 public static DDMStructurePersistence getPersistence() { 1684 if (_persistence == null) { 1685 _persistence = (DDMStructurePersistence)PortalBeanLocatorUtil.locate(DDMStructurePersistence.class.getName()); 1686 1687 ReferenceRegistry.registerReference(DDMStructureUtil.class, 1688 "_persistence"); 1689 } 1690 1691 return _persistence; 1692 } 1693 1694 /** 1695 * @deprecated 1696 */ 1697 public void setPersistence(DDMStructurePersistence persistence) { 1698 } 1699 1700 private static DDMStructurePersistence _persistence; 1701 }