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.DDMStructureLink; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the d d m structure link service. This utility wraps {@link DDMStructureLinkPersistenceImpl} 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 DDMStructureLinkPersistence 037 * @see DDMStructureLinkPersistenceImpl 038 * @generated 039 */ 040 public class DDMStructureLinkUtil { 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(DDMStructureLink ddmStructureLink) { 058 getPersistence().clearCache(ddmStructureLink); 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<DDMStructureLink> 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<DDMStructureLink> 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<DDMStructureLink> 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 DDMStructureLink update(DDMStructureLink ddmStructureLink, 101 boolean merge) throws SystemException { 102 return getPersistence().update(ddmStructureLink, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static DDMStructureLink update(DDMStructureLink ddmStructureLink, 109 boolean merge, ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(ddmStructureLink, merge, serviceContext); 111 } 112 113 /** 114 * Caches the d d m structure link in the entity cache if it is enabled. 115 * 116 * @param ddmStructureLink the d d m structure link 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink) { 120 getPersistence().cacheResult(ddmStructureLink); 121 } 122 123 /** 124 * Caches the d d m structure links in the entity cache if it is enabled. 125 * 126 * @param ddmStructureLinks the d d m structure links 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> ddmStructureLinks) { 130 getPersistence().cacheResult(ddmStructureLinks); 131 } 132 133 /** 134 * Creates a new d d m structure link with the primary key. Does not add the d d m structure link to the database. 135 * 136 * @param structureLinkId the primary key for the new d d m structure link 137 * @return the new d d m structure link 138 */ 139 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink create( 140 long structureLinkId) { 141 return getPersistence().create(structureLinkId); 142 } 143 144 /** 145 * Removes the d d m structure link with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param structureLinkId the primary key of the d d m structure link 148 * @return the d d m structure link that was removed 149 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link 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.DDMStructureLink remove( 153 long structureLinkId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 156 return getPersistence().remove(structureLinkId); 157 } 158 159 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink updateImpl( 160 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink, 161 boolean merge) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(ddmStructureLink, merge); 164 } 165 166 /** 167 * Returns the d d m structure link with the primary key or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException} if it could not be found. 168 * 169 * @param structureLinkId the primary key of the d d m structure link 170 * @return the d d m structure link 171 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link 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.DDMStructureLink findByPrimaryKey( 175 long structureLinkId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 178 return getPersistence().findByPrimaryKey(structureLinkId); 179 } 180 181 /** 182 * Returns the d d m structure link with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param structureLinkId the primary key of the d d m structure link 185 * @return the d d m structure link, or <code>null</code> if a d d m structure link 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.DDMStructureLink fetchByPrimaryKey( 189 long structureLinkId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(structureLinkId); 192 } 193 194 /** 195 * Returns all the d d m structure links where classNameId = ?. 196 * 197 * @param classNameId the class name ID 198 * @return the matching d d m structure links 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId( 202 long classNameId) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByClassNameId(classNameId); 205 } 206 207 /** 208 * Returns a range of all the d d m structure links where classNameId = ?. 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 classNameId the class name ID 215 * @param start the lower bound of the range of d d m structure links 216 * @param end the upper bound of the range of d d m structure links (not inclusive) 217 * @return the range of matching d d m structure links 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId( 221 long classNameId, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByClassNameId(classNameId, start, end); 224 } 225 226 /** 227 * Returns an ordered range of all the d d m structure links where classNameId = ?. 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 classNameId the class name ID 234 * @param start the lower bound of the range of d d m structure links 235 * @param end the upper bound of the range of d d m structure links (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 structure links 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId( 241 long classNameId, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence() 245 .findByClassNameId(classNameId, start, end, orderByComparator); 246 } 247 248 /** 249 * Returns the first d d m structure link in the ordered set where classNameId = ?. 250 * 251 * @param classNameId the class name ID 252 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 253 * @return the first matching d d m structure link 254 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 255 * @throws SystemException if a system exception occurred 256 */ 257 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_First( 258 long classNameId, 259 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 260 throws com.liferay.portal.kernel.exception.SystemException, 261 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 262 return getPersistence() 263 .findByClassNameId_First(classNameId, orderByComparator); 264 } 265 266 /** 267 * Returns the first d d m structure link in the ordered set where classNameId = ?. 268 * 269 * @param classNameId the class name ID 270 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 271 * @return the first matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found 272 * @throws SystemException if a system exception occurred 273 */ 274 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassNameId_First( 275 long classNameId, 276 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 277 throws com.liferay.portal.kernel.exception.SystemException { 278 return getPersistence() 279 .fetchByClassNameId_First(classNameId, orderByComparator); 280 } 281 282 /** 283 * Returns the last d d m structure link in the ordered set where classNameId = ?. 284 * 285 * @param classNameId the class name ID 286 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 287 * @return the last matching d d m structure link 288 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 289 * @throws SystemException if a system exception occurred 290 */ 291 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_Last( 292 long classNameId, 293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 294 throws com.liferay.portal.kernel.exception.SystemException, 295 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 296 return getPersistence() 297 .findByClassNameId_Last(classNameId, orderByComparator); 298 } 299 300 /** 301 * Returns the last d d m structure link in the ordered set where classNameId = ?. 302 * 303 * @param classNameId the class name ID 304 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 305 * @return the last matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found 306 * @throws SystemException if a system exception occurred 307 */ 308 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassNameId_Last( 309 long classNameId, 310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 311 throws com.liferay.portal.kernel.exception.SystemException { 312 return getPersistence() 313 .fetchByClassNameId_Last(classNameId, orderByComparator); 314 } 315 316 /** 317 * Returns the d d m structure links before and after the current d d m structure link in the ordered set where classNameId = ?. 318 * 319 * @param structureLinkId the primary key of the current d d m structure link 320 * @param classNameId the class name ID 321 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 322 * @return the previous, current, and next d d m structure link 323 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 324 * @throws SystemException if a system exception occurred 325 */ 326 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByClassNameId_PrevAndNext( 327 long structureLinkId, long classNameId, 328 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 329 throws com.liferay.portal.kernel.exception.SystemException, 330 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 331 return getPersistence() 332 .findByClassNameId_PrevAndNext(structureLinkId, classNameId, 333 orderByComparator); 334 } 335 336 /** 337 * Returns the d d m structure link where classPK = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException} if it could not be found. 338 * 339 * @param classPK the class p k 340 * @return the matching d d m structure link 341 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 342 * @throws SystemException if a system exception occurred 343 */ 344 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassPK( 345 long classPK) 346 throws com.liferay.portal.kernel.exception.SystemException, 347 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 348 return getPersistence().findByClassPK(classPK); 349 } 350 351 /** 352 * Returns the d d m structure link where classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 353 * 354 * @param classPK the class p k 355 * @return the matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found 356 * @throws SystemException if a system exception occurred 357 */ 358 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK( 359 long classPK) 360 throws com.liferay.portal.kernel.exception.SystemException { 361 return getPersistence().fetchByClassPK(classPK); 362 } 363 364 /** 365 * Returns the d d m structure link where classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 366 * 367 * @param classPK the class p k 368 * @param retrieveFromCache whether to use the finder cache 369 * @return the matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found 370 * @throws SystemException if a system exception occurred 371 */ 372 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK( 373 long classPK, boolean retrieveFromCache) 374 throws com.liferay.portal.kernel.exception.SystemException { 375 return getPersistence().fetchByClassPK(classPK, retrieveFromCache); 376 } 377 378 /** 379 * Returns all the d d m structure links where structureId = ?. 380 * 381 * @param structureId the structure ID 382 * @return the matching d d m structure links 383 * @throws SystemException if a system exception occurred 384 */ 385 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId( 386 long structureId) 387 throws com.liferay.portal.kernel.exception.SystemException { 388 return getPersistence().findByStructureId(structureId); 389 } 390 391 /** 392 * Returns a range of all the d d m structure links where structureId = ?. 393 * 394 * <p> 395 * 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. 396 * </p> 397 * 398 * @param structureId the structure ID 399 * @param start the lower bound of the range of d d m structure links 400 * @param end the upper bound of the range of d d m structure links (not inclusive) 401 * @return the range of matching d d m structure links 402 * @throws SystemException if a system exception occurred 403 */ 404 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId( 405 long structureId, int start, int end) 406 throws com.liferay.portal.kernel.exception.SystemException { 407 return getPersistence().findByStructureId(structureId, start, end); 408 } 409 410 /** 411 * Returns an ordered range of all the d d m structure links where structureId = ?. 412 * 413 * <p> 414 * 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. 415 * </p> 416 * 417 * @param structureId the structure ID 418 * @param start the lower bound of the range of d d m structure links 419 * @param end the upper bound of the range of d d m structure links (not inclusive) 420 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 421 * @return the ordered range of matching d d m structure links 422 * @throws SystemException if a system exception occurred 423 */ 424 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId( 425 long structureId, int start, int end, 426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 427 throws com.liferay.portal.kernel.exception.SystemException { 428 return getPersistence() 429 .findByStructureId(structureId, start, end, orderByComparator); 430 } 431 432 /** 433 * Returns the first d d m structure link in the ordered set where structureId = ?. 434 * 435 * @param structureId the structure ID 436 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 437 * @return the first matching d d m structure link 438 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 439 * @throws SystemException if a system exception occurred 440 */ 441 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_First( 442 long structureId, 443 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 444 throws com.liferay.portal.kernel.exception.SystemException, 445 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 446 return getPersistence() 447 .findByStructureId_First(structureId, orderByComparator); 448 } 449 450 /** 451 * Returns the first d d m structure link in the ordered set where structureId = ?. 452 * 453 * @param structureId the structure ID 454 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 455 * @return the first matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found 456 * @throws SystemException if a system exception occurred 457 */ 458 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByStructureId_First( 459 long structureId, 460 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 461 throws com.liferay.portal.kernel.exception.SystemException { 462 return getPersistence() 463 .fetchByStructureId_First(structureId, orderByComparator); 464 } 465 466 /** 467 * Returns the last d d m structure link in the ordered set where structureId = ?. 468 * 469 * @param structureId the structure ID 470 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 471 * @return the last matching d d m structure link 472 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 473 * @throws SystemException if a system exception occurred 474 */ 475 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_Last( 476 long structureId, 477 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 478 throws com.liferay.portal.kernel.exception.SystemException, 479 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 480 return getPersistence() 481 .findByStructureId_Last(structureId, orderByComparator); 482 } 483 484 /** 485 * Returns the last d d m structure link in the ordered set where structureId = ?. 486 * 487 * @param structureId the structure ID 488 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 489 * @return the last matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found 490 * @throws SystemException if a system exception occurred 491 */ 492 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByStructureId_Last( 493 long structureId, 494 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 495 throws com.liferay.portal.kernel.exception.SystemException { 496 return getPersistence() 497 .fetchByStructureId_Last(structureId, orderByComparator); 498 } 499 500 /** 501 * Returns the d d m structure links before and after the current d d m structure link in the ordered set where structureId = ?. 502 * 503 * @param structureLinkId the primary key of the current d d m structure link 504 * @param structureId the structure ID 505 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 506 * @return the previous, current, and next d d m structure link 507 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 508 * @throws SystemException if a system exception occurred 509 */ 510 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByStructureId_PrevAndNext( 511 long structureLinkId, long structureId, 512 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 513 throws com.liferay.portal.kernel.exception.SystemException, 514 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 515 return getPersistence() 516 .findByStructureId_PrevAndNext(structureLinkId, structureId, 517 orderByComparator); 518 } 519 520 /** 521 * Returns all the d d m structure links. 522 * 523 * @return the d d m structure links 524 * @throws SystemException if a system exception occurred 525 */ 526 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll() 527 throws com.liferay.portal.kernel.exception.SystemException { 528 return getPersistence().findAll(); 529 } 530 531 /** 532 * Returns a range of all the d d m structure links. 533 * 534 * <p> 535 * 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. 536 * </p> 537 * 538 * @param start the lower bound of the range of d d m structure links 539 * @param end the upper bound of the range of d d m structure links (not inclusive) 540 * @return the range of d d m structure links 541 * @throws SystemException if a system exception occurred 542 */ 543 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll( 544 int start, int end) 545 throws com.liferay.portal.kernel.exception.SystemException { 546 return getPersistence().findAll(start, end); 547 } 548 549 /** 550 * Returns an ordered range of all the d d m structure links. 551 * 552 * <p> 553 * 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. 554 * </p> 555 * 556 * @param start the lower bound of the range of d d m structure links 557 * @param end the upper bound of the range of d d m structure links (not inclusive) 558 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 559 * @return the ordered range of d d m structure links 560 * @throws SystemException if a system exception occurred 561 */ 562 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll( 563 int start, int end, 564 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 565 throws com.liferay.portal.kernel.exception.SystemException { 566 return getPersistence().findAll(start, end, orderByComparator); 567 } 568 569 /** 570 * Removes all the d d m structure links where classNameId = ? from the database. 571 * 572 * @param classNameId the class name ID 573 * @throws SystemException if a system exception occurred 574 */ 575 public static void removeByClassNameId(long classNameId) 576 throws com.liferay.portal.kernel.exception.SystemException { 577 getPersistence().removeByClassNameId(classNameId); 578 } 579 580 /** 581 * Removes the d d m structure link where classPK = ? from the database. 582 * 583 * @param classPK the class p k 584 * @return the d d m structure link that was removed 585 * @throws SystemException if a system exception occurred 586 */ 587 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink removeByClassPK( 588 long classPK) 589 throws com.liferay.portal.kernel.exception.SystemException, 590 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 591 return getPersistence().removeByClassPK(classPK); 592 } 593 594 /** 595 * Removes all the d d m structure links where structureId = ? from the database. 596 * 597 * @param structureId the structure ID 598 * @throws SystemException if a system exception occurred 599 */ 600 public static void removeByStructureId(long structureId) 601 throws com.liferay.portal.kernel.exception.SystemException { 602 getPersistence().removeByStructureId(structureId); 603 } 604 605 /** 606 * Removes all the d d m structure links from the database. 607 * 608 * @throws SystemException if a system exception occurred 609 */ 610 public static void removeAll() 611 throws com.liferay.portal.kernel.exception.SystemException { 612 getPersistence().removeAll(); 613 } 614 615 /** 616 * Returns the number of d d m structure links where classNameId = ?. 617 * 618 * @param classNameId the class name ID 619 * @return the number of matching d d m structure links 620 * @throws SystemException if a system exception occurred 621 */ 622 public static int countByClassNameId(long classNameId) 623 throws com.liferay.portal.kernel.exception.SystemException { 624 return getPersistence().countByClassNameId(classNameId); 625 } 626 627 /** 628 * Returns the number of d d m structure links where classPK = ?. 629 * 630 * @param classPK the class p k 631 * @return the number of matching d d m structure links 632 * @throws SystemException if a system exception occurred 633 */ 634 public static int countByClassPK(long classPK) 635 throws com.liferay.portal.kernel.exception.SystemException { 636 return getPersistence().countByClassPK(classPK); 637 } 638 639 /** 640 * Returns the number of d d m structure links where structureId = ?. 641 * 642 * @param structureId the structure ID 643 * @return the number of matching d d m structure links 644 * @throws SystemException if a system exception occurred 645 */ 646 public static int countByStructureId(long structureId) 647 throws com.liferay.portal.kernel.exception.SystemException { 648 return getPersistence().countByStructureId(structureId); 649 } 650 651 /** 652 * Returns the number of d d m structure links. 653 * 654 * @return the number of d d m structure links 655 * @throws SystemException if a system exception occurred 656 */ 657 public static int countAll() 658 throws com.liferay.portal.kernel.exception.SystemException { 659 return getPersistence().countAll(); 660 } 661 662 public static DDMStructureLinkPersistence getPersistence() { 663 if (_persistence == null) { 664 _persistence = (DDMStructureLinkPersistence)PortalBeanLocatorUtil.locate(DDMStructureLinkPersistence.class.getName()); 665 666 ReferenceRegistry.registerReference(DDMStructureLinkUtil.class, 667 "_persistence"); 668 } 669 670 return _persistence; 671 } 672 673 /** 674 * @deprecated 675 */ 676 public void setPersistence(DDMStructureLinkPersistence persistence) { 677 } 678 679 private static DDMStructureLinkPersistence _persistence; 680 }