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