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 aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 021 import com.liferay.portal.kernel.exception.SystemException; 022 import com.liferay.portal.kernel.util.OrderByComparator; 023 import com.liferay.portal.kernel.util.ReferenceRegistry; 024 import com.liferay.portal.service.ServiceContext; 025 026 import com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink; 027 028 import java.util.List; 029 030 /** 031 * The persistence utility for the d d m storage link service. This utility wraps {@link DDMStorageLinkPersistenceImpl} 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. 032 * 033 * <p> 034 * Caching information and settings can be found in <code>portal.properties</code> 035 * </p> 036 * 037 * @author Brian Wing Shun Chan 038 * @see DDMStorageLinkPersistence 039 * @see DDMStorageLinkPersistenceImpl 040 * @generated 041 */ 042 @ProviderType 043 public class DDMStorageLinkUtil { 044 /* 045 * NOTE FOR DEVELOPERS: 046 * 047 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 048 */ 049 050 /** 051 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 052 */ 053 public static void clearCache() { 054 getPersistence().clearCache(); 055 } 056 057 /** 058 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 059 */ 060 public static void clearCache(DDMStorageLink ddmStorageLink) { 061 getPersistence().clearCache(ddmStorageLink); 062 } 063 064 /** 065 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 066 */ 067 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) 068 throws SystemException { 069 return getPersistence().countWithDynamicQuery(dynamicQuery); 070 } 071 072 /** 073 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 074 */ 075 public static List<DDMStorageLink> findWithDynamicQuery( 076 DynamicQuery dynamicQuery) throws SystemException { 077 return getPersistence().findWithDynamicQuery(dynamicQuery); 078 } 079 080 /** 081 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 082 */ 083 public static List<DDMStorageLink> findWithDynamicQuery( 084 DynamicQuery dynamicQuery, int start, int end) 085 throws SystemException { 086 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 087 } 088 089 /** 090 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 091 */ 092 public static List<DDMStorageLink> findWithDynamicQuery( 093 DynamicQuery dynamicQuery, int start, int end, 094 OrderByComparator orderByComparator) throws SystemException { 095 return getPersistence() 096 .findWithDynamicQuery(dynamicQuery, start, end, 097 orderByComparator); 098 } 099 100 /** 101 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 102 */ 103 public static DDMStorageLink update(DDMStorageLink ddmStorageLink) 104 throws SystemException { 105 return getPersistence().update(ddmStorageLink); 106 } 107 108 /** 109 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 110 */ 111 public static DDMStorageLink update(DDMStorageLink ddmStorageLink, 112 ServiceContext serviceContext) throws SystemException { 113 return getPersistence().update(ddmStorageLink, serviceContext); 114 } 115 116 /** 117 * Returns all the d d m storage links where uuid = ?. 118 * 119 * @param uuid the uuid 120 * @return the matching d d m storage links 121 * @throws SystemException if a system exception occurred 122 */ 123 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByUuid( 124 java.lang.String uuid) 125 throws com.liferay.portal.kernel.exception.SystemException { 126 return getPersistence().findByUuid(uuid); 127 } 128 129 /** 130 * Returns a range of all the d d m storage links where uuid = ?. 131 * 132 * <p> 133 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMStorageLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 134 * </p> 135 * 136 * @param uuid the uuid 137 * @param start the lower bound of the range of d d m storage links 138 * @param end the upper bound of the range of d d m storage links (not inclusive) 139 * @return the range of matching d d m storage links 140 * @throws SystemException if a system exception occurred 141 */ 142 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByUuid( 143 java.lang.String uuid, int start, int end) 144 throws com.liferay.portal.kernel.exception.SystemException { 145 return getPersistence().findByUuid(uuid, start, end); 146 } 147 148 /** 149 * Returns an ordered range of all the d d m storage links where uuid = ?. 150 * 151 * <p> 152 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMStorageLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 153 * </p> 154 * 155 * @param uuid the uuid 156 * @param start the lower bound of the range of d d m storage links 157 * @param end the upper bound of the range of d d m storage links (not inclusive) 158 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 159 * @return the ordered range of matching d d m storage links 160 * @throws SystemException if a system exception occurred 161 */ 162 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByUuid( 163 java.lang.String uuid, int start, int end, 164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 165 throws com.liferay.portal.kernel.exception.SystemException { 166 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 167 } 168 169 /** 170 * Returns the first d d m storage link in the ordered set where uuid = ?. 171 * 172 * @param uuid the uuid 173 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 174 * @return the first matching d d m storage link 175 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found 176 * @throws SystemException if a system exception occurred 177 */ 178 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByUuid_First( 179 java.lang.String uuid, 180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 181 throws com.liferay.portal.kernel.exception.SystemException, 182 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException { 183 return getPersistence().findByUuid_First(uuid, orderByComparator); 184 } 185 186 /** 187 * Returns the first d d m storage link in the ordered set where uuid = ?. 188 * 189 * @param uuid the uuid 190 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 191 * @return the first matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found 192 * @throws SystemException if a system exception occurred 193 */ 194 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByUuid_First( 195 java.lang.String uuid, 196 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 197 throws com.liferay.portal.kernel.exception.SystemException { 198 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 199 } 200 201 /** 202 * Returns the last d d m storage link in the ordered set where uuid = ?. 203 * 204 * @param uuid the uuid 205 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 206 * @return the last matching d d m storage link 207 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found 208 * @throws SystemException if a system exception occurred 209 */ 210 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByUuid_Last( 211 java.lang.String uuid, 212 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 213 throws com.liferay.portal.kernel.exception.SystemException, 214 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException { 215 return getPersistence().findByUuid_Last(uuid, orderByComparator); 216 } 217 218 /** 219 * Returns the last d d m storage link in the ordered set where uuid = ?. 220 * 221 * @param uuid the uuid 222 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 223 * @return the last matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found 224 * @throws SystemException if a system exception occurred 225 */ 226 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByUuid_Last( 227 java.lang.String uuid, 228 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 229 throws com.liferay.portal.kernel.exception.SystemException { 230 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 231 } 232 233 /** 234 * Returns the d d m storage links before and after the current d d m storage link in the ordered set where uuid = ?. 235 * 236 * @param storageLinkId the primary key of the current d d m storage link 237 * @param uuid the uuid 238 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 239 * @return the previous, current, and next d d m storage link 240 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage link with the primary key could not be found 241 * @throws SystemException if a system exception occurred 242 */ 243 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink[] findByUuid_PrevAndNext( 244 long storageLinkId, java.lang.String uuid, 245 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 246 throws com.liferay.portal.kernel.exception.SystemException, 247 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException { 248 return getPersistence() 249 .findByUuid_PrevAndNext(storageLinkId, uuid, 250 orderByComparator); 251 } 252 253 /** 254 * Removes all the d d m storage links where uuid = ? from the database. 255 * 256 * @param uuid the uuid 257 * @throws SystemException if a system exception occurred 258 */ 259 public static void removeByUuid(java.lang.String uuid) 260 throws com.liferay.portal.kernel.exception.SystemException { 261 getPersistence().removeByUuid(uuid); 262 } 263 264 /** 265 * Returns the number of d d m storage links where uuid = ?. 266 * 267 * @param uuid the uuid 268 * @return the number of matching d d m storage links 269 * @throws SystemException if a system exception occurred 270 */ 271 public static int countByUuid(java.lang.String uuid) 272 throws com.liferay.portal.kernel.exception.SystemException { 273 return getPersistence().countByUuid(uuid); 274 } 275 276 /** 277 * Returns the d d m storage link where classPK = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException} if it could not be found. 278 * 279 * @param classPK the class p k 280 * @return the matching d d m storage link 281 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found 282 * @throws SystemException if a system exception occurred 283 */ 284 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByClassPK( 285 long classPK) 286 throws com.liferay.portal.kernel.exception.SystemException, 287 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException { 288 return getPersistence().findByClassPK(classPK); 289 } 290 291 /** 292 * Returns the d d m storage link where classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 293 * 294 * @param classPK the class p k 295 * @return the matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found 296 * @throws SystemException if a system exception occurred 297 */ 298 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByClassPK( 299 long classPK) 300 throws com.liferay.portal.kernel.exception.SystemException { 301 return getPersistence().fetchByClassPK(classPK); 302 } 303 304 /** 305 * Returns the d d m storage link where classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 306 * 307 * @param classPK the class p k 308 * @param retrieveFromCache whether to use the finder cache 309 * @return the matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found 310 * @throws SystemException if a system exception occurred 311 */ 312 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByClassPK( 313 long classPK, boolean retrieveFromCache) 314 throws com.liferay.portal.kernel.exception.SystemException { 315 return getPersistence().fetchByClassPK(classPK, retrieveFromCache); 316 } 317 318 /** 319 * Removes the d d m storage link where classPK = ? from the database. 320 * 321 * @param classPK the class p k 322 * @return the d d m storage link that was removed 323 * @throws SystemException if a system exception occurred 324 */ 325 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink removeByClassPK( 326 long classPK) 327 throws com.liferay.portal.kernel.exception.SystemException, 328 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException { 329 return getPersistence().removeByClassPK(classPK); 330 } 331 332 /** 333 * Returns the number of d d m storage links where classPK = ?. 334 * 335 * @param classPK the class p k 336 * @return the number of matching d d m storage links 337 * @throws SystemException if a system exception occurred 338 */ 339 public static int countByClassPK(long classPK) 340 throws com.liferay.portal.kernel.exception.SystemException { 341 return getPersistence().countByClassPK(classPK); 342 } 343 344 /** 345 * Returns all the d d m storage links where structureId = ?. 346 * 347 * @param structureId the structure ID 348 * @return the matching d d m storage links 349 * @throws SystemException if a system exception occurred 350 */ 351 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByStructureId( 352 long structureId) 353 throws com.liferay.portal.kernel.exception.SystemException { 354 return getPersistence().findByStructureId(structureId); 355 } 356 357 /** 358 * Returns a range of all the d d m storage links where structureId = ?. 359 * 360 * <p> 361 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMStorageLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 362 * </p> 363 * 364 * @param structureId the structure ID 365 * @param start the lower bound of the range of d d m storage links 366 * @param end the upper bound of the range of d d m storage links (not inclusive) 367 * @return the range of matching d d m storage links 368 * @throws SystemException if a system exception occurred 369 */ 370 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByStructureId( 371 long structureId, int start, int end) 372 throws com.liferay.portal.kernel.exception.SystemException { 373 return getPersistence().findByStructureId(structureId, start, end); 374 } 375 376 /** 377 * Returns an ordered range of all the d d m storage links where structureId = ?. 378 * 379 * <p> 380 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMStorageLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 381 * </p> 382 * 383 * @param structureId the structure ID 384 * @param start the lower bound of the range of d d m storage links 385 * @param end the upper bound of the range of d d m storage links (not inclusive) 386 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 387 * @return the ordered range of matching d d m storage links 388 * @throws SystemException if a system exception occurred 389 */ 390 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByStructureId( 391 long structureId, int start, int end, 392 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 393 throws com.liferay.portal.kernel.exception.SystemException { 394 return getPersistence() 395 .findByStructureId(structureId, start, end, orderByComparator); 396 } 397 398 /** 399 * Returns the first d d m storage link in the ordered set where structureId = ?. 400 * 401 * @param structureId the structure ID 402 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 403 * @return the first matching d d m storage link 404 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found 405 * @throws SystemException if a system exception occurred 406 */ 407 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByStructureId_First( 408 long structureId, 409 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 410 throws com.liferay.portal.kernel.exception.SystemException, 411 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException { 412 return getPersistence() 413 .findByStructureId_First(structureId, orderByComparator); 414 } 415 416 /** 417 * Returns the first d d m storage link in the ordered set where structureId = ?. 418 * 419 * @param structureId the structure ID 420 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 421 * @return the first matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found 422 * @throws SystemException if a system exception occurred 423 */ 424 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByStructureId_First( 425 long structureId, 426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 427 throws com.liferay.portal.kernel.exception.SystemException { 428 return getPersistence() 429 .fetchByStructureId_First(structureId, orderByComparator); 430 } 431 432 /** 433 * Returns the last d d m storage 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 last matching d d m storage link 438 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found 439 * @throws SystemException if a system exception occurred 440 */ 441 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByStructureId_Last( 442 long structureId, 443 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 444 throws com.liferay.portal.kernel.exception.SystemException, 445 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException { 446 return getPersistence() 447 .findByStructureId_Last(structureId, orderByComparator); 448 } 449 450 /** 451 * Returns the last d d m storage 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 last matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found 456 * @throws SystemException if a system exception occurred 457 */ 458 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByStructureId_Last( 459 long structureId, 460 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 461 throws com.liferay.portal.kernel.exception.SystemException { 462 return getPersistence() 463 .fetchByStructureId_Last(structureId, orderByComparator); 464 } 465 466 /** 467 * Returns the d d m storage links before and after the current d d m storage link in the ordered set where structureId = ?. 468 * 469 * @param storageLinkId the primary key of the current d d m storage link 470 * @param structureId the structure ID 471 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 472 * @return the previous, current, and next d d m storage link 473 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage link with the primary key could not be found 474 * @throws SystemException if a system exception occurred 475 */ 476 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink[] findByStructureId_PrevAndNext( 477 long storageLinkId, long structureId, 478 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 479 throws com.liferay.portal.kernel.exception.SystemException, 480 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException { 481 return getPersistence() 482 .findByStructureId_PrevAndNext(storageLinkId, structureId, 483 orderByComparator); 484 } 485 486 /** 487 * Removes all the d d m storage links where structureId = ? from the database. 488 * 489 * @param structureId the structure ID 490 * @throws SystemException if a system exception occurred 491 */ 492 public static void removeByStructureId(long structureId) 493 throws com.liferay.portal.kernel.exception.SystemException { 494 getPersistence().removeByStructureId(structureId); 495 } 496 497 /** 498 * Returns the number of d d m storage links where structureId = ?. 499 * 500 * @param structureId the structure ID 501 * @return the number of matching d d m storage links 502 * @throws SystemException if a system exception occurred 503 */ 504 public static int countByStructureId(long structureId) 505 throws com.liferay.portal.kernel.exception.SystemException { 506 return getPersistence().countByStructureId(structureId); 507 } 508 509 /** 510 * Caches the d d m storage link in the entity cache if it is enabled. 511 * 512 * @param ddmStorageLink the d d m storage link 513 */ 514 public static void cacheResult( 515 com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink ddmStorageLink) { 516 getPersistence().cacheResult(ddmStorageLink); 517 } 518 519 /** 520 * Caches the d d m storage links in the entity cache if it is enabled. 521 * 522 * @param ddmStorageLinks the d d m storage links 523 */ 524 public static void cacheResult( 525 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> ddmStorageLinks) { 526 getPersistence().cacheResult(ddmStorageLinks); 527 } 528 529 /** 530 * Creates a new d d m storage link with the primary key. Does not add the d d m storage link to the database. 531 * 532 * @param storageLinkId the primary key for the new d d m storage link 533 * @return the new d d m storage link 534 */ 535 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink create( 536 long storageLinkId) { 537 return getPersistence().create(storageLinkId); 538 } 539 540 /** 541 * Removes the d d m storage link with the primary key from the database. Also notifies the appropriate model listeners. 542 * 543 * @param storageLinkId the primary key of the d d m storage link 544 * @return the d d m storage link that was removed 545 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage link with the primary key could not be found 546 * @throws SystemException if a system exception occurred 547 */ 548 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink remove( 549 long storageLinkId) 550 throws com.liferay.portal.kernel.exception.SystemException, 551 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException { 552 return getPersistence().remove(storageLinkId); 553 } 554 555 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink updateImpl( 556 com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink ddmStorageLink) 557 throws com.liferay.portal.kernel.exception.SystemException { 558 return getPersistence().updateImpl(ddmStorageLink); 559 } 560 561 /** 562 * Returns the d d m storage link with the primary key or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException} if it could not be found. 563 * 564 * @param storageLinkId the primary key of the d d m storage link 565 * @return the d d m storage link 566 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage link with the primary key could not be found 567 * @throws SystemException if a system exception occurred 568 */ 569 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByPrimaryKey( 570 long storageLinkId) 571 throws com.liferay.portal.kernel.exception.SystemException, 572 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException { 573 return getPersistence().findByPrimaryKey(storageLinkId); 574 } 575 576 /** 577 * Returns the d d m storage link with the primary key or returns <code>null</code> if it could not be found. 578 * 579 * @param storageLinkId the primary key of the d d m storage link 580 * @return the d d m storage link, or <code>null</code> if a d d m storage link with the primary key could not be found 581 * @throws SystemException if a system exception occurred 582 */ 583 public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByPrimaryKey( 584 long storageLinkId) 585 throws com.liferay.portal.kernel.exception.SystemException { 586 return getPersistence().fetchByPrimaryKey(storageLinkId); 587 } 588 589 /** 590 * Returns all the d d m storage links. 591 * 592 * @return the d d m storage links 593 * @throws SystemException if a system exception occurred 594 */ 595 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findAll() 596 throws com.liferay.portal.kernel.exception.SystemException { 597 return getPersistence().findAll(); 598 } 599 600 /** 601 * Returns a range of all the d d m storage links. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMStorageLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 605 * </p> 606 * 607 * @param start the lower bound of the range of d d m storage links 608 * @param end the upper bound of the range of d d m storage links (not inclusive) 609 * @return the range of d d m storage links 610 * @throws SystemException if a system exception occurred 611 */ 612 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findAll( 613 int start, int end) 614 throws com.liferay.portal.kernel.exception.SystemException { 615 return getPersistence().findAll(start, end); 616 } 617 618 /** 619 * Returns an ordered range of all the d d m storage links. 620 * 621 * <p> 622 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMStorageLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 623 * </p> 624 * 625 * @param start the lower bound of the range of d d m storage links 626 * @param end the upper bound of the range of d d m storage links (not inclusive) 627 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 628 * @return the ordered range of d d m storage links 629 * @throws SystemException if a system exception occurred 630 */ 631 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findAll( 632 int start, int end, 633 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 634 throws com.liferay.portal.kernel.exception.SystemException { 635 return getPersistence().findAll(start, end, orderByComparator); 636 } 637 638 /** 639 * Removes all the d d m storage links from the database. 640 * 641 * @throws SystemException if a system exception occurred 642 */ 643 public static void removeAll() 644 throws com.liferay.portal.kernel.exception.SystemException { 645 getPersistence().removeAll(); 646 } 647 648 /** 649 * Returns the number of d d m storage links. 650 * 651 * @return the number of d d m storage links 652 * @throws SystemException if a system exception occurred 653 */ 654 public static int countAll() 655 throws com.liferay.portal.kernel.exception.SystemException { 656 return getPersistence().countAll(); 657 } 658 659 public static DDMStorageLinkPersistence getPersistence() { 660 if (_persistence == null) { 661 _persistence = (DDMStorageLinkPersistence)PortalBeanLocatorUtil.locate(DDMStorageLinkPersistence.class.getName()); 662 663 ReferenceRegistry.registerReference(DDMStorageLinkUtil.class, 664 "_persistence"); 665 } 666 667 return _persistence; 668 } 669 670 /** 671 * @deprecated As of 6.2.0 672 */ 673 public void setPersistence(DDMStorageLinkPersistence persistence) { 674 } 675 676 private static DDMStorageLinkPersistence _persistence; 677 }