001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.dynamicdatamapping.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.dynamicdatamapping.model.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) 099 */ 100 public static DDMStructureLink update(DDMStructureLink ddmStructureLink) 101 throws SystemException { 102 return getPersistence().update(ddmStructureLink); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static DDMStructureLink update(DDMStructureLink ddmStructureLink, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(ddmStructureLink, 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 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().updateImpl(ddmStructureLink); 163 } 164 165 /** 166 * 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. 167 * 168 * @param structureLinkId the primary key of the d d m structure link 169 * @return the d d m structure link 170 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByPrimaryKey( 174 long structureLinkId) 175 throws com.liferay.portal.kernel.exception.SystemException, 176 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 177 return getPersistence().findByPrimaryKey(structureLinkId); 178 } 179 180 /** 181 * Returns the d d m structure link with the primary key or returns <code>null</code> if it could not be found. 182 * 183 * @param structureLinkId the primary key of the d d m structure link 184 * @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 185 * @throws SystemException if a system exception occurred 186 */ 187 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByPrimaryKey( 188 long structureLinkId) 189 throws com.liferay.portal.kernel.exception.SystemException { 190 return getPersistence().fetchByPrimaryKey(structureLinkId); 191 } 192 193 /** 194 * Returns all the d d m structure links where classNameId = ?. 195 * 196 * @param classNameId the class name ID 197 * @return the matching d d m structure links 198 * @throws SystemException if a system exception occurred 199 */ 200 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId( 201 long classNameId) 202 throws com.liferay.portal.kernel.exception.SystemException { 203 return getPersistence().findByClassNameId(classNameId); 204 } 205 206 /** 207 * Returns a range of all the d d m structure links where classNameId = ?. 208 * 209 * <p> 210 * 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. 211 * </p> 212 * 213 * @param classNameId the class name ID 214 * @param start the lower bound of the range of d d m structure links 215 * @param end the upper bound of the range of d d m structure links (not inclusive) 216 * @return the range of matching d d m structure links 217 * @throws SystemException if a system exception occurred 218 */ 219 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId( 220 long classNameId, int start, int end) 221 throws com.liferay.portal.kernel.exception.SystemException { 222 return getPersistence().findByClassNameId(classNameId, start, end); 223 } 224 225 /** 226 * Returns an ordered range of all the d d m structure links where classNameId = ?. 227 * 228 * <p> 229 * 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. 230 * </p> 231 * 232 * @param classNameId the class name ID 233 * @param start the lower bound of the range of d d m structure links 234 * @param end the upper bound of the range of d d m structure links (not inclusive) 235 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 236 * @return the ordered range of matching d d m structure links 237 * @throws SystemException if a system exception occurred 238 */ 239 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId( 240 long classNameId, int start, int end, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException { 243 return getPersistence() 244 .findByClassNameId(classNameId, start, end, orderByComparator); 245 } 246 247 /** 248 * Returns the first d d m structure link in the ordered set where classNameId = ?. 249 * 250 * @param classNameId the class name ID 251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 252 * @return the first matching d d m structure link 253 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 254 * @throws SystemException if a system exception occurred 255 */ 256 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_First( 257 long classNameId, 258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 259 throws com.liferay.portal.kernel.exception.SystemException, 260 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 261 return getPersistence() 262 .findByClassNameId_First(classNameId, orderByComparator); 263 } 264 265 /** 266 * Returns the first d d m structure link in the ordered set where classNameId = ?. 267 * 268 * @param classNameId the class name ID 269 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 270 * @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 271 * @throws SystemException if a system exception occurred 272 */ 273 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassNameId_First( 274 long classNameId, 275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 276 throws com.liferay.portal.kernel.exception.SystemException { 277 return getPersistence() 278 .fetchByClassNameId_First(classNameId, orderByComparator); 279 } 280 281 /** 282 * Returns the last d d m structure link in the ordered set where classNameId = ?. 283 * 284 * @param classNameId the class name ID 285 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 286 * @return the last matching d d m structure link 287 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 288 * @throws SystemException if a system exception occurred 289 */ 290 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_Last( 291 long classNameId, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.kernel.exception.SystemException, 294 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 295 return getPersistence() 296 .findByClassNameId_Last(classNameId, orderByComparator); 297 } 298 299 /** 300 * Returns the last d d m structure link in the ordered set where classNameId = ?. 301 * 302 * @param classNameId the class name ID 303 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 304 * @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 305 * @throws SystemException if a system exception occurred 306 */ 307 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassNameId_Last( 308 long classNameId, 309 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 310 throws com.liferay.portal.kernel.exception.SystemException { 311 return getPersistence() 312 .fetchByClassNameId_Last(classNameId, orderByComparator); 313 } 314 315 /** 316 * Returns the d d m structure links before and after the current d d m structure link in the ordered set where classNameId = ?. 317 * 318 * @param structureLinkId the primary key of the current d d m structure link 319 * @param classNameId the class name ID 320 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 321 * @return the previous, current, and next d d m structure link 322 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 323 * @throws SystemException if a system exception occurred 324 */ 325 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByClassNameId_PrevAndNext( 326 long structureLinkId, long classNameId, 327 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 328 throws com.liferay.portal.kernel.exception.SystemException, 329 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 330 return getPersistence() 331 .findByClassNameId_PrevAndNext(structureLinkId, classNameId, 332 orderByComparator); 333 } 334 335 /** 336 * Returns the d d m structure link where classPK = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException} if it could not be found. 337 * 338 * @param classPK the class p k 339 * @return the matching d d m structure link 340 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 341 * @throws SystemException if a system exception occurred 342 */ 343 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassPK( 344 long classPK) 345 throws com.liferay.portal.kernel.exception.SystemException, 346 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 347 return getPersistence().findByClassPK(classPK); 348 } 349 350 /** 351 * Returns the d d m structure link where classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 352 * 353 * @param classPK the class p k 354 * @return the matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found 355 * @throws SystemException if a system exception occurred 356 */ 357 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK( 358 long classPK) 359 throws com.liferay.portal.kernel.exception.SystemException { 360 return getPersistence().fetchByClassPK(classPK); 361 } 362 363 /** 364 * 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. 365 * 366 * @param classPK the class p k 367 * @param retrieveFromCache whether to use the finder cache 368 * @return the matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found 369 * @throws SystemException if a system exception occurred 370 */ 371 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK( 372 long classPK, boolean retrieveFromCache) 373 throws com.liferay.portal.kernel.exception.SystemException { 374 return getPersistence().fetchByClassPK(classPK, retrieveFromCache); 375 } 376 377 /** 378 * Returns all the d d m structure links where structureId = ?. 379 * 380 * @param structureId the structure ID 381 * @return the matching d d m structure links 382 * @throws SystemException if a system exception occurred 383 */ 384 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId( 385 long structureId) 386 throws com.liferay.portal.kernel.exception.SystemException { 387 return getPersistence().findByStructureId(structureId); 388 } 389 390 /** 391 * Returns a range of all the d d m structure links where structureId = ?. 392 * 393 * <p> 394 * 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. 395 * </p> 396 * 397 * @param structureId the structure ID 398 * @param start the lower bound of the range of d d m structure links 399 * @param end the upper bound of the range of d d m structure links (not inclusive) 400 * @return the range of matching d d m structure links 401 * @throws SystemException if a system exception occurred 402 */ 403 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId( 404 long structureId, int start, int end) 405 throws com.liferay.portal.kernel.exception.SystemException { 406 return getPersistence().findByStructureId(structureId, start, end); 407 } 408 409 /** 410 * Returns an ordered range of all the d d m structure links where structureId = ?. 411 * 412 * <p> 413 * 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. 414 * </p> 415 * 416 * @param structureId the structure ID 417 * @param start the lower bound of the range of d d m structure links 418 * @param end the upper bound of the range of d d m structure links (not inclusive) 419 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 420 * @return the ordered range of matching d d m structure links 421 * @throws SystemException if a system exception occurred 422 */ 423 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId( 424 long structureId, int start, int end, 425 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 426 throws com.liferay.portal.kernel.exception.SystemException { 427 return getPersistence() 428 .findByStructureId(structureId, start, end, orderByComparator); 429 } 430 431 /** 432 * Returns the first d d m structure link in the ordered set where structureId = ?. 433 * 434 * @param structureId the structure ID 435 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 436 * @return the first matching d d m structure link 437 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 438 * @throws SystemException if a system exception occurred 439 */ 440 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_First( 441 long structureId, 442 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 443 throws com.liferay.portal.kernel.exception.SystemException, 444 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 445 return getPersistence() 446 .findByStructureId_First(structureId, orderByComparator); 447 } 448 449 /** 450 * Returns the first d d m structure link in the ordered set where structureId = ?. 451 * 452 * @param structureId the structure ID 453 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 454 * @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 455 * @throws SystemException if a system exception occurred 456 */ 457 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByStructureId_First( 458 long structureId, 459 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 460 throws com.liferay.portal.kernel.exception.SystemException { 461 return getPersistence() 462 .fetchByStructureId_First(structureId, orderByComparator); 463 } 464 465 /** 466 * Returns the last d d m structure link in the ordered set where structureId = ?. 467 * 468 * @param structureId the structure ID 469 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 470 * @return the last matching d d m structure link 471 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 472 * @throws SystemException if a system exception occurred 473 */ 474 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_Last( 475 long structureId, 476 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 477 throws com.liferay.portal.kernel.exception.SystemException, 478 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 479 return getPersistence() 480 .findByStructureId_Last(structureId, orderByComparator); 481 } 482 483 /** 484 * Returns the last d d m structure link in the ordered set where structureId = ?. 485 * 486 * @param structureId the structure ID 487 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 488 * @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 489 * @throws SystemException if a system exception occurred 490 */ 491 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByStructureId_Last( 492 long structureId, 493 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 494 throws com.liferay.portal.kernel.exception.SystemException { 495 return getPersistence() 496 .fetchByStructureId_Last(structureId, orderByComparator); 497 } 498 499 /** 500 * Returns the d d m structure links before and after the current d d m structure link in the ordered set where structureId = ?. 501 * 502 * @param structureLinkId the primary key of the current d d m structure link 503 * @param structureId the structure ID 504 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 505 * @return the previous, current, and next d d m structure link 506 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 507 * @throws SystemException if a system exception occurred 508 */ 509 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByStructureId_PrevAndNext( 510 long structureLinkId, long structureId, 511 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 512 throws com.liferay.portal.kernel.exception.SystemException, 513 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 514 return getPersistence() 515 .findByStructureId_PrevAndNext(structureLinkId, structureId, 516 orderByComparator); 517 } 518 519 /** 520 * Returns all the d d m structure links. 521 * 522 * @return the d d m structure links 523 * @throws SystemException if a system exception occurred 524 */ 525 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll() 526 throws com.liferay.portal.kernel.exception.SystemException { 527 return getPersistence().findAll(); 528 } 529 530 /** 531 * Returns a range of all the d d m structure links. 532 * 533 * <p> 534 * 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. 535 * </p> 536 * 537 * @param start the lower bound of the range of d d m structure links 538 * @param end the upper bound of the range of d d m structure links (not inclusive) 539 * @return the range of d d m structure links 540 * @throws SystemException if a system exception occurred 541 */ 542 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll( 543 int start, int end) 544 throws com.liferay.portal.kernel.exception.SystemException { 545 return getPersistence().findAll(start, end); 546 } 547 548 /** 549 * Returns an ordered range of all the d d m structure links. 550 * 551 * <p> 552 * 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. 553 * </p> 554 * 555 * @param start the lower bound of the range of d d m structure links 556 * @param end the upper bound of the range of d d m structure links (not inclusive) 557 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 558 * @return the ordered range of d d m structure links 559 * @throws SystemException if a system exception occurred 560 */ 561 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll( 562 int start, int end, 563 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 564 throws com.liferay.portal.kernel.exception.SystemException { 565 return getPersistence().findAll(start, end, orderByComparator); 566 } 567 568 /** 569 * Removes all the d d m structure links where classNameId = ? from the database. 570 * 571 * @param classNameId the class name ID 572 * @throws SystemException if a system exception occurred 573 */ 574 public static void removeByClassNameId(long classNameId) 575 throws com.liferay.portal.kernel.exception.SystemException { 576 getPersistence().removeByClassNameId(classNameId); 577 } 578 579 /** 580 * Removes the d d m structure link where classPK = ? from the database. 581 * 582 * @param classPK the class p k 583 * @return the d d m structure link that was removed 584 * @throws SystemException if a system exception occurred 585 */ 586 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink removeByClassPK( 587 long classPK) 588 throws com.liferay.portal.kernel.exception.SystemException, 589 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 590 return getPersistence().removeByClassPK(classPK); 591 } 592 593 /** 594 * Removes all the d d m structure links where structureId = ? from the database. 595 * 596 * @param structureId the structure ID 597 * @throws SystemException if a system exception occurred 598 */ 599 public static void removeByStructureId(long structureId) 600 throws com.liferay.portal.kernel.exception.SystemException { 601 getPersistence().removeByStructureId(structureId); 602 } 603 604 /** 605 * Removes all the d d m structure links from the database. 606 * 607 * @throws SystemException if a system exception occurred 608 */ 609 public static void removeAll() 610 throws com.liferay.portal.kernel.exception.SystemException { 611 getPersistence().removeAll(); 612 } 613 614 /** 615 * Returns the number of d d m structure links where classNameId = ?. 616 * 617 * @param classNameId the class name ID 618 * @return the number of matching d d m structure links 619 * @throws SystemException if a system exception occurred 620 */ 621 public static int countByClassNameId(long classNameId) 622 throws com.liferay.portal.kernel.exception.SystemException { 623 return getPersistence().countByClassNameId(classNameId); 624 } 625 626 /** 627 * Returns the number of d d m structure links where classPK = ?. 628 * 629 * @param classPK the class p k 630 * @return the number of matching d d m structure links 631 * @throws SystemException if a system exception occurred 632 */ 633 public static int countByClassPK(long classPK) 634 throws com.liferay.portal.kernel.exception.SystemException { 635 return getPersistence().countByClassPK(classPK); 636 } 637 638 /** 639 * Returns the number of d d m structure links where structureId = ?. 640 * 641 * @param structureId the structure ID 642 * @return the number of matching d d m structure links 643 * @throws SystemException if a system exception occurred 644 */ 645 public static int countByStructureId(long structureId) 646 throws com.liferay.portal.kernel.exception.SystemException { 647 return getPersistence().countByStructureId(structureId); 648 } 649 650 /** 651 * Returns the number of d d m structure links. 652 * 653 * @return the number of d d m structure links 654 * @throws SystemException if a system exception occurred 655 */ 656 public static int countAll() 657 throws com.liferay.portal.kernel.exception.SystemException { 658 return getPersistence().countAll(); 659 } 660 661 public static DDMStructureLinkPersistence getPersistence() { 662 if (_persistence == null) { 663 _persistence = (DDMStructureLinkPersistence)PortalBeanLocatorUtil.locate(DDMStructureLinkPersistence.class.getName()); 664 665 ReferenceRegistry.registerReference(DDMStructureLinkUtil.class, 666 "_persistence"); 667 } 668 669 return _persistence; 670 } 671 672 /** 673 * @deprecated 674 */ 675 public void setPersistence(DDMStructureLinkPersistence persistence) { 676 } 677 678 private static DDMStructureLinkPersistence _persistence; 679 }