001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 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 groupId = ? and name = ? and description = ?. 777 * 778 * @param groupId the group ID 779 * @param name the name 780 * @param description the description 781 * @return the matching d d m structures 782 * @throws SystemException if a system exception occurred 783 */ 784 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D( 785 long groupId, java.lang.String name, java.lang.String description) 786 throws com.liferay.portal.kernel.exception.SystemException { 787 return getPersistence().findByG_N_D(groupId, name, description); 788 } 789 790 /** 791 * Returns a range of all the d d m structures where groupId = ? and name = ? and description = ?. 792 * 793 * <p> 794 * 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. 795 * </p> 796 * 797 * @param groupId the group ID 798 * @param name the name 799 * @param description the description 800 * @param start the lower bound of the range of d d m structures 801 * @param end the upper bound of the range of d d m structures (not inclusive) 802 * @return the range of matching d d m structures 803 * @throws SystemException if a system exception occurred 804 */ 805 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D( 806 long groupId, java.lang.String name, java.lang.String description, 807 int start, int end) 808 throws com.liferay.portal.kernel.exception.SystemException { 809 return getPersistence() 810 .findByG_N_D(groupId, name, description, start, end); 811 } 812 813 /** 814 * Returns an ordered range of all the d d m structures where groupId = ? and name = ? and description = ?. 815 * 816 * <p> 817 * 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. 818 * </p> 819 * 820 * @param groupId the group ID 821 * @param name the name 822 * @param description the description 823 * @param start the lower bound of the range of d d m structures 824 * @param end the upper bound of the range of d d m structures (not inclusive) 825 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 826 * @return the ordered range of matching d d m structures 827 * @throws SystemException if a system exception occurred 828 */ 829 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D( 830 long groupId, java.lang.String name, java.lang.String description, 831 int start, int end, 832 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 833 throws com.liferay.portal.kernel.exception.SystemException { 834 return getPersistence() 835 .findByG_N_D(groupId, name, description, start, end, 836 orderByComparator); 837 } 838 839 /** 840 * Returns the first d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 841 * 842 * @param groupId the group ID 843 * @param name the name 844 * @param description the description 845 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 846 * @return the first matching d d m structure 847 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 848 * @throws SystemException if a system exception occurred 849 */ 850 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_N_D_First( 851 long groupId, java.lang.String name, java.lang.String description, 852 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 853 throws com.liferay.portal.kernel.exception.SystemException, 854 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 855 return getPersistence() 856 .findByG_N_D_First(groupId, name, description, 857 orderByComparator); 858 } 859 860 /** 861 * Returns the first d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 862 * 863 * @param groupId the group ID 864 * @param name the name 865 * @param description the description 866 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 867 * @return the first matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 868 * @throws SystemException if a system exception occurred 869 */ 870 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_N_D_First( 871 long groupId, java.lang.String name, java.lang.String description, 872 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 873 throws com.liferay.portal.kernel.exception.SystemException { 874 return getPersistence() 875 .fetchByG_N_D_First(groupId, name, description, 876 orderByComparator); 877 } 878 879 /** 880 * Returns the last d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 881 * 882 * @param groupId the group ID 883 * @param name the name 884 * @param description the description 885 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 886 * @return the last matching d d m structure 887 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 888 * @throws SystemException if a system exception occurred 889 */ 890 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_N_D_Last( 891 long groupId, java.lang.String name, java.lang.String description, 892 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 893 throws com.liferay.portal.kernel.exception.SystemException, 894 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 895 return getPersistence() 896 .findByG_N_D_Last(groupId, name, description, 897 orderByComparator); 898 } 899 900 /** 901 * Returns the last d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 902 * 903 * @param groupId the group ID 904 * @param name the name 905 * @param description the description 906 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 907 * @return the last matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 908 * @throws SystemException if a system exception occurred 909 */ 910 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_N_D_Last( 911 long groupId, java.lang.String name, java.lang.String description, 912 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 913 throws com.liferay.portal.kernel.exception.SystemException { 914 return getPersistence() 915 .fetchByG_N_D_Last(groupId, name, description, 916 orderByComparator); 917 } 918 919 /** 920 * 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 = ?. 921 * 922 * @param structureId the primary key of the current d d m structure 923 * @param groupId the group ID 924 * @param name the name 925 * @param description the description 926 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 927 * @return the previous, current, and next d d m structure 928 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 929 * @throws SystemException if a system exception occurred 930 */ 931 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByG_N_D_PrevAndNext( 932 long structureId, long groupId, java.lang.String name, 933 java.lang.String description, 934 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 935 throws com.liferay.portal.kernel.exception.SystemException, 936 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 937 return getPersistence() 938 .findByG_N_D_PrevAndNext(structureId, groupId, name, 939 description, orderByComparator); 940 } 941 942 /** 943 * Returns all the d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?. 944 * 945 * @param groupId the group ID 946 * @param name the name 947 * @param description the description 948 * @return the matching d d m structures that the user has permission to view 949 * @throws SystemException if a system exception occurred 950 */ 951 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D( 952 long groupId, java.lang.String name, java.lang.String description) 953 throws com.liferay.portal.kernel.exception.SystemException { 954 return getPersistence().filterFindByG_N_D(groupId, name, description); 955 } 956 957 /** 958 * Returns a range of all the d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?. 959 * 960 * <p> 961 * 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. 962 * </p> 963 * 964 * @param groupId the group ID 965 * @param name the name 966 * @param description the description 967 * @param start the lower bound of the range of d d m structures 968 * @param end the upper bound of the range of d d m structures (not inclusive) 969 * @return the range of matching d d m structures that the user has permission to view 970 * @throws SystemException if a system exception occurred 971 */ 972 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D( 973 long groupId, java.lang.String name, java.lang.String description, 974 int start, int end) 975 throws com.liferay.portal.kernel.exception.SystemException { 976 return getPersistence() 977 .filterFindByG_N_D(groupId, name, description, start, end); 978 } 979 980 /** 981 * Returns an ordered range of all the d d m structures that the user has permissions to view where groupId = ? and name = ? and description = ?. 982 * 983 * <p> 984 * 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. 985 * </p> 986 * 987 * @param groupId the group ID 988 * @param name the name 989 * @param description the description 990 * @param start the lower bound of the range of d d m structures 991 * @param end the upper bound of the range of d d m structures (not inclusive) 992 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 993 * @return the ordered range of matching d d m structures that the user has permission to view 994 * @throws SystemException if a system exception occurred 995 */ 996 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D( 997 long groupId, java.lang.String name, java.lang.String description, 998 int start, int end, 999 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1000 throws com.liferay.portal.kernel.exception.SystemException { 1001 return getPersistence() 1002 .filterFindByG_N_D(groupId, name, description, start, end, 1003 orderByComparator); 1004 } 1005 1006 /** 1007 * 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 = ?. 1008 * 1009 * @param structureId the primary key of the current d d m structure 1010 * @param groupId the group ID 1011 * @param name the name 1012 * @param description the description 1013 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1014 * @return the previous, current, and next d d m structure 1015 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 1016 * @throws SystemException if a system exception occurred 1017 */ 1018 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] filterFindByG_N_D_PrevAndNext( 1019 long structureId, long groupId, java.lang.String name, 1020 java.lang.String description, 1021 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1022 throws com.liferay.portal.kernel.exception.SystemException, 1023 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 1024 return getPersistence() 1025 .filterFindByG_N_D_PrevAndNext(structureId, groupId, name, 1026 description, orderByComparator); 1027 } 1028 1029 /** 1030 * Returns all the d d m structures. 1031 * 1032 * @return the d d m structures 1033 * @throws SystemException if a system exception occurred 1034 */ 1035 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll() 1036 throws com.liferay.portal.kernel.exception.SystemException { 1037 return getPersistence().findAll(); 1038 } 1039 1040 /** 1041 * Returns a range of all the d d m structures. 1042 * 1043 * <p> 1044 * 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. 1045 * </p> 1046 * 1047 * @param start the lower bound of the range of d d m structures 1048 * @param end the upper bound of the range of d d m structures (not inclusive) 1049 * @return the range of d d m structures 1050 * @throws SystemException if a system exception occurred 1051 */ 1052 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll( 1053 int start, int end) 1054 throws com.liferay.portal.kernel.exception.SystemException { 1055 return getPersistence().findAll(start, end); 1056 } 1057 1058 /** 1059 * Returns an ordered range of all the d d m structures. 1060 * 1061 * <p> 1062 * 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. 1063 * </p> 1064 * 1065 * @param start the lower bound of the range of d d m structures 1066 * @param end the upper bound of the range of d d m structures (not inclusive) 1067 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1068 * @return the ordered range of d d m structures 1069 * @throws SystemException if a system exception occurred 1070 */ 1071 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll( 1072 int start, int end, 1073 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1074 throws com.liferay.portal.kernel.exception.SystemException { 1075 return getPersistence().findAll(start, end, orderByComparator); 1076 } 1077 1078 /** 1079 * Removes all the d d m structures where uuid = ? from the database. 1080 * 1081 * @param uuid the uuid 1082 * @throws SystemException if a system exception occurred 1083 */ 1084 public static void removeByUuid(java.lang.String uuid) 1085 throws com.liferay.portal.kernel.exception.SystemException { 1086 getPersistence().removeByUuid(uuid); 1087 } 1088 1089 /** 1090 * Removes the d d m structure where uuid = ? and groupId = ? from the database. 1091 * 1092 * @param uuid the uuid 1093 * @param groupId the group ID 1094 * @return the d d m structure that was removed 1095 * @throws SystemException if a system exception occurred 1096 */ 1097 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure removeByUUID_G( 1098 java.lang.String uuid, long groupId) 1099 throws com.liferay.portal.kernel.exception.SystemException, 1100 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 1101 return getPersistence().removeByUUID_G(uuid, groupId); 1102 } 1103 1104 /** 1105 * Removes all the d d m structures where groupId = ? from the database. 1106 * 1107 * @param groupId the group ID 1108 * @throws SystemException if a system exception occurred 1109 */ 1110 public static void removeByGroupId(long groupId) 1111 throws com.liferay.portal.kernel.exception.SystemException { 1112 getPersistence().removeByGroupId(groupId); 1113 } 1114 1115 /** 1116 * Removes all the d d m structures where classNameId = ? from the database. 1117 * 1118 * @param classNameId the class name ID 1119 * @throws SystemException if a system exception occurred 1120 */ 1121 public static void removeByClassNameId(long classNameId) 1122 throws com.liferay.portal.kernel.exception.SystemException { 1123 getPersistence().removeByClassNameId(classNameId); 1124 } 1125 1126 /** 1127 * Removes the d d m structure where groupId = ? and structureKey = ? from the database. 1128 * 1129 * @param groupId the group ID 1130 * @param structureKey the structure key 1131 * @return the d d m structure that was removed 1132 * @throws SystemException if a system exception occurred 1133 */ 1134 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure removeByG_S( 1135 long groupId, java.lang.String structureKey) 1136 throws com.liferay.portal.kernel.exception.SystemException, 1137 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException { 1138 return getPersistence().removeByG_S(groupId, structureKey); 1139 } 1140 1141 /** 1142 * Removes all the d d m structures where groupId = ? and name = ? and description = ? from the database. 1143 * 1144 * @param groupId the group ID 1145 * @param name the name 1146 * @param description the description 1147 * @throws SystemException if a system exception occurred 1148 */ 1149 public static void removeByG_N_D(long groupId, java.lang.String name, 1150 java.lang.String description) 1151 throws com.liferay.portal.kernel.exception.SystemException { 1152 getPersistence().removeByG_N_D(groupId, name, description); 1153 } 1154 1155 /** 1156 * Removes all the d d m structures from the database. 1157 * 1158 * @throws SystemException if a system exception occurred 1159 */ 1160 public static void removeAll() 1161 throws com.liferay.portal.kernel.exception.SystemException { 1162 getPersistence().removeAll(); 1163 } 1164 1165 /** 1166 * Returns the number of d d m structures where uuid = ?. 1167 * 1168 * @param uuid the uuid 1169 * @return the number of matching d d m structures 1170 * @throws SystemException if a system exception occurred 1171 */ 1172 public static int countByUuid(java.lang.String uuid) 1173 throws com.liferay.portal.kernel.exception.SystemException { 1174 return getPersistence().countByUuid(uuid); 1175 } 1176 1177 /** 1178 * Returns the number of d d m structures where uuid = ? and groupId = ?. 1179 * 1180 * @param uuid the uuid 1181 * @param groupId the group ID 1182 * @return the number of matching d d m structures 1183 * @throws SystemException if a system exception occurred 1184 */ 1185 public static int countByUUID_G(java.lang.String uuid, long groupId) 1186 throws com.liferay.portal.kernel.exception.SystemException { 1187 return getPersistence().countByUUID_G(uuid, groupId); 1188 } 1189 1190 /** 1191 * Returns the number of d d m structures where groupId = ?. 1192 * 1193 * @param groupId the group ID 1194 * @return the number of matching d d m structures 1195 * @throws SystemException if a system exception occurred 1196 */ 1197 public static int countByGroupId(long groupId) 1198 throws com.liferay.portal.kernel.exception.SystemException { 1199 return getPersistence().countByGroupId(groupId); 1200 } 1201 1202 /** 1203 * Returns the number of d d m structures that the user has permission to view where groupId = ?. 1204 * 1205 * @param groupId the group ID 1206 * @return the number of matching d d m structures that the user has permission to view 1207 * @throws SystemException if a system exception occurred 1208 */ 1209 public static int filterCountByGroupId(long groupId) 1210 throws com.liferay.portal.kernel.exception.SystemException { 1211 return getPersistence().filterCountByGroupId(groupId); 1212 } 1213 1214 /** 1215 * Returns the number of d d m structures where classNameId = ?. 1216 * 1217 * @param classNameId the class name ID 1218 * @return the number of matching d d m structures 1219 * @throws SystemException if a system exception occurred 1220 */ 1221 public static int countByClassNameId(long classNameId) 1222 throws com.liferay.portal.kernel.exception.SystemException { 1223 return getPersistence().countByClassNameId(classNameId); 1224 } 1225 1226 /** 1227 * Returns the number of d d m structures where groupId = ? and structureKey = ?. 1228 * 1229 * @param groupId the group ID 1230 * @param structureKey the structure key 1231 * @return the number of matching d d m structures 1232 * @throws SystemException if a system exception occurred 1233 */ 1234 public static int countByG_S(long groupId, java.lang.String structureKey) 1235 throws com.liferay.portal.kernel.exception.SystemException { 1236 return getPersistence().countByG_S(groupId, structureKey); 1237 } 1238 1239 /** 1240 * Returns the number of d d m structures where groupId = ? and name = ? and description = ?. 1241 * 1242 * @param groupId the group ID 1243 * @param name the name 1244 * @param description the description 1245 * @return the number of matching d d m structures 1246 * @throws SystemException if a system exception occurred 1247 */ 1248 public static int countByG_N_D(long groupId, java.lang.String name, 1249 java.lang.String description) 1250 throws com.liferay.portal.kernel.exception.SystemException { 1251 return getPersistence().countByG_N_D(groupId, name, description); 1252 } 1253 1254 /** 1255 * Returns the number of d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?. 1256 * 1257 * @param groupId the group ID 1258 * @param name the name 1259 * @param description the description 1260 * @return the number of matching d d m structures that the user has permission to view 1261 * @throws SystemException if a system exception occurred 1262 */ 1263 public static int filterCountByG_N_D(long groupId, java.lang.String name, 1264 java.lang.String description) 1265 throws com.liferay.portal.kernel.exception.SystemException { 1266 return getPersistence().filterCountByG_N_D(groupId, name, description); 1267 } 1268 1269 /** 1270 * Returns the number of d d m structures. 1271 * 1272 * @return the number of d d m structures 1273 * @throws SystemException if a system exception occurred 1274 */ 1275 public static int countAll() 1276 throws com.liferay.portal.kernel.exception.SystemException { 1277 return getPersistence().countAll(); 1278 } 1279 1280 public static DDMStructurePersistence getPersistence() { 1281 if (_persistence == null) { 1282 _persistence = (DDMStructurePersistence)PortalBeanLocatorUtil.locate(DDMStructurePersistence.class.getName()); 1283 1284 ReferenceRegistry.registerReference(DDMStructureUtil.class, 1285 "_persistence"); 1286 } 1287 1288 return _persistence; 1289 } 1290 1291 /** 1292 * @deprecated 1293 */ 1294 public void setPersistence(DDMStructurePersistence persistence) { 1295 } 1296 1297 private static DDMStructurePersistence _persistence; 1298 }