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.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink; 022 023 /** 024 * The persistence interface for the d d m storage link service. 025 * 026 * <p> 027 * Caching information and settings can be found in <code>portal.properties</code> 028 * </p> 029 * 030 * @author Brian Wing Shun Chan 031 * @see DDMStorageLinkPersistenceImpl 032 * @see DDMStorageLinkUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface DDMStorageLinkPersistence extends BasePersistence<DDMStorageLink> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link DDMStorageLinkUtil} to access the d d m storage link persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the d d m storage links where uuid = ?. 045 * 046 * @param uuid the uuid 047 * @return the matching d d m storage links 048 * @throws SystemException if a system exception occurred 049 */ 050 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByUuid( 051 java.lang.String uuid) 052 throws com.liferay.portal.kernel.exception.SystemException; 053 054 /** 055 * Returns a range of all the d d m storage links where uuid = ?. 056 * 057 * <p> 058 * 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. 059 * </p> 060 * 061 * @param uuid the uuid 062 * @param start the lower bound of the range of d d m storage links 063 * @param end the upper bound of the range of d d m storage links (not inclusive) 064 * @return the range of matching d d m storage links 065 * @throws SystemException if a system exception occurred 066 */ 067 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByUuid( 068 java.lang.String uuid, int start, int end) 069 throws com.liferay.portal.kernel.exception.SystemException; 070 071 /** 072 * Returns an ordered range of all the d d m storage links where uuid = ?. 073 * 074 * <p> 075 * 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. 076 * </p> 077 * 078 * @param uuid the uuid 079 * @param start the lower bound of the range of d d m storage links 080 * @param end the upper bound of the range of d d m storage links (not inclusive) 081 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 082 * @return the ordered range of matching d d m storage links 083 * @throws SystemException if a system exception occurred 084 */ 085 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByUuid( 086 java.lang.String uuid, int start, int end, 087 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 088 throws com.liferay.portal.kernel.exception.SystemException; 089 090 /** 091 * Returns the first d d m storage link in the ordered set where uuid = ?. 092 * 093 * @param uuid the uuid 094 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 095 * @return the first matching d d m storage link 096 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found 097 * @throws SystemException if a system exception occurred 098 */ 099 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByUuid_First( 100 java.lang.String uuid, 101 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 102 throws com.liferay.portal.kernel.exception.SystemException, 103 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException; 104 105 /** 106 * Returns the first d d m storage link in the ordered set where uuid = ?. 107 * 108 * @param uuid the uuid 109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 110 * @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 111 * @throws SystemException if a system exception occurred 112 */ 113 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByUuid_First( 114 java.lang.String uuid, 115 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns the last d d m storage link in the ordered set where uuid = ?. 120 * 121 * @param uuid the uuid 122 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 123 * @return the last matching d d m storage link 124 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found 125 * @throws SystemException if a system exception occurred 126 */ 127 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByUuid_Last( 128 java.lang.String uuid, 129 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 130 throws com.liferay.portal.kernel.exception.SystemException, 131 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException; 132 133 /** 134 * Returns the last d d m storage link in the ordered set where uuid = ?. 135 * 136 * @param uuid the uuid 137 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 138 * @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 139 * @throws SystemException if a system exception occurred 140 */ 141 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByUuid_Last( 142 java.lang.String uuid, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Returns the d d m storage links before and after the current d d m storage link in the ordered set where uuid = ?. 148 * 149 * @param storageLinkId the primary key of the current d d m storage link 150 * @param uuid the uuid 151 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 152 * @return the previous, current, and next d d m storage link 153 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage link with the primary key could not be found 154 * @throws SystemException if a system exception occurred 155 */ 156 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink[] findByUuid_PrevAndNext( 157 long storageLinkId, java.lang.String uuid, 158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 159 throws com.liferay.portal.kernel.exception.SystemException, 160 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException; 161 162 /** 163 * Removes all the d d m storage links where uuid = ? from the database. 164 * 165 * @param uuid the uuid 166 * @throws SystemException if a system exception occurred 167 */ 168 public void removeByUuid(java.lang.String uuid) 169 throws com.liferay.portal.kernel.exception.SystemException; 170 171 /** 172 * Returns the number of d d m storage links where uuid = ?. 173 * 174 * @param uuid the uuid 175 * @return the number of matching d d m storage links 176 * @throws SystemException if a system exception occurred 177 */ 178 public int countByUuid(java.lang.String uuid) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns the d d m storage link where classPK = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException} if it could not be found. 183 * 184 * @param classPK the class p k 185 * @return the matching d d m storage link 186 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found 187 * @throws SystemException if a system exception occurred 188 */ 189 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByClassPK( 190 long classPK) 191 throws com.liferay.portal.kernel.exception.SystemException, 192 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException; 193 194 /** 195 * Returns the d d m storage link where classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 196 * 197 * @param classPK the class p k 198 * @return the matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found 199 * @throws SystemException if a system exception occurred 200 */ 201 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByClassPK( 202 long classPK) 203 throws com.liferay.portal.kernel.exception.SystemException; 204 205 /** 206 * 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. 207 * 208 * @param classPK the class p k 209 * @param retrieveFromCache whether to use the finder cache 210 * @return the matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found 211 * @throws SystemException if a system exception occurred 212 */ 213 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByClassPK( 214 long classPK, boolean retrieveFromCache) 215 throws com.liferay.portal.kernel.exception.SystemException; 216 217 /** 218 * Removes the d d m storage link where classPK = ? from the database. 219 * 220 * @param classPK the class p k 221 * @return the d d m storage link that was removed 222 * @throws SystemException if a system exception occurred 223 */ 224 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink removeByClassPK( 225 long classPK) 226 throws com.liferay.portal.kernel.exception.SystemException, 227 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException; 228 229 /** 230 * Returns the number of d d m storage links where classPK = ?. 231 * 232 * @param classPK the class p k 233 * @return the number of matching d d m storage links 234 * @throws SystemException if a system exception occurred 235 */ 236 public int countByClassPK(long classPK) 237 throws com.liferay.portal.kernel.exception.SystemException; 238 239 /** 240 * Returns all the d d m storage links where structureId = ?. 241 * 242 * @param structureId the structure ID 243 * @return the matching d d m storage links 244 * @throws SystemException if a system exception occurred 245 */ 246 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByStructureId( 247 long structureId) 248 throws com.liferay.portal.kernel.exception.SystemException; 249 250 /** 251 * Returns a range of all the d d m storage links where structureId = ?. 252 * 253 * <p> 254 * 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. 255 * </p> 256 * 257 * @param structureId the structure ID 258 * @param start the lower bound of the range of d d m storage links 259 * @param end the upper bound of the range of d d m storage links (not inclusive) 260 * @return the range of matching d d m storage links 261 * @throws SystemException if a system exception occurred 262 */ 263 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByStructureId( 264 long structureId, int start, int end) 265 throws com.liferay.portal.kernel.exception.SystemException; 266 267 /** 268 * Returns an ordered range of all the d d m storage links where structureId = ?. 269 * 270 * <p> 271 * 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. 272 * </p> 273 * 274 * @param structureId the structure ID 275 * @param start the lower bound of the range of d d m storage links 276 * @param end the upper bound of the range of d d m storage links (not inclusive) 277 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 278 * @return the ordered range of matching d d m storage links 279 * @throws SystemException if a system exception occurred 280 */ 281 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByStructureId( 282 long structureId, int start, int end, 283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 284 throws com.liferay.portal.kernel.exception.SystemException; 285 286 /** 287 * Returns the first d d m storage link in the ordered set where structureId = ?. 288 * 289 * @param structureId the structure ID 290 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 291 * @return the first matching d d m storage link 292 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found 293 * @throws SystemException if a system exception occurred 294 */ 295 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByStructureId_First( 296 long structureId, 297 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 298 throws com.liferay.portal.kernel.exception.SystemException, 299 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException; 300 301 /** 302 * Returns the first d d m storage link in the ordered set where structureId = ?. 303 * 304 * @param structureId the structure ID 305 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 306 * @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 307 * @throws SystemException if a system exception occurred 308 */ 309 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByStructureId_First( 310 long structureId, 311 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 312 throws com.liferay.portal.kernel.exception.SystemException; 313 314 /** 315 * Returns the last d d m storage link in the ordered set where structureId = ?. 316 * 317 * @param structureId the structure ID 318 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 319 * @return the last matching d d m storage link 320 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found 321 * @throws SystemException if a system exception occurred 322 */ 323 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByStructureId_Last( 324 long structureId, 325 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 326 throws com.liferay.portal.kernel.exception.SystemException, 327 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException; 328 329 /** 330 * Returns the last d d m storage link in the ordered set where structureId = ?. 331 * 332 * @param structureId the structure ID 333 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 334 * @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 335 * @throws SystemException if a system exception occurred 336 */ 337 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByStructureId_Last( 338 long structureId, 339 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 340 throws com.liferay.portal.kernel.exception.SystemException; 341 342 /** 343 * Returns the d d m storage links before and after the current d d m storage link in the ordered set where structureId = ?. 344 * 345 * @param storageLinkId the primary key of the current d d m storage link 346 * @param structureId the structure ID 347 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 348 * @return the previous, current, and next d d m storage link 349 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage link with the primary key could not be found 350 * @throws SystemException if a system exception occurred 351 */ 352 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink[] findByStructureId_PrevAndNext( 353 long storageLinkId, long structureId, 354 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 355 throws com.liferay.portal.kernel.exception.SystemException, 356 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException; 357 358 /** 359 * Removes all the d d m storage links where structureId = ? from the database. 360 * 361 * @param structureId the structure ID 362 * @throws SystemException if a system exception occurred 363 */ 364 public void removeByStructureId(long structureId) 365 throws com.liferay.portal.kernel.exception.SystemException; 366 367 /** 368 * Returns the number of d d m storage links where structureId = ?. 369 * 370 * @param structureId the structure ID 371 * @return the number of matching d d m storage links 372 * @throws SystemException if a system exception occurred 373 */ 374 public int countByStructureId(long structureId) 375 throws com.liferay.portal.kernel.exception.SystemException; 376 377 /** 378 * Caches the d d m storage link in the entity cache if it is enabled. 379 * 380 * @param ddmStorageLink the d d m storage link 381 */ 382 public void cacheResult( 383 com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink ddmStorageLink); 384 385 /** 386 * Caches the d d m storage links in the entity cache if it is enabled. 387 * 388 * @param ddmStorageLinks the d d m storage links 389 */ 390 public void cacheResult( 391 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> ddmStorageLinks); 392 393 /** 394 * Creates a new d d m storage link with the primary key. Does not add the d d m storage link to the database. 395 * 396 * @param storageLinkId the primary key for the new d d m storage link 397 * @return the new d d m storage link 398 */ 399 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink create( 400 long storageLinkId); 401 402 /** 403 * Removes the d d m storage link with the primary key from the database. Also notifies the appropriate model listeners. 404 * 405 * @param storageLinkId the primary key of the d d m storage link 406 * @return the d d m storage link that was removed 407 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage link with the primary key could not be found 408 * @throws SystemException if a system exception occurred 409 */ 410 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink remove( 411 long storageLinkId) 412 throws com.liferay.portal.kernel.exception.SystemException, 413 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException; 414 415 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink updateImpl( 416 com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink ddmStorageLink) 417 throws com.liferay.portal.kernel.exception.SystemException; 418 419 /** 420 * 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. 421 * 422 * @param storageLinkId the primary key of the d d m storage link 423 * @return the d d m storage link 424 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage link with the primary key could not be found 425 * @throws SystemException if a system exception occurred 426 */ 427 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByPrimaryKey( 428 long storageLinkId) 429 throws com.liferay.portal.kernel.exception.SystemException, 430 com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException; 431 432 /** 433 * Returns the d d m storage link with the primary key or returns <code>null</code> if it could not be found. 434 * 435 * @param storageLinkId the primary key of the d d m storage link 436 * @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 437 * @throws SystemException if a system exception occurred 438 */ 439 public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByPrimaryKey( 440 long storageLinkId) 441 throws com.liferay.portal.kernel.exception.SystemException; 442 443 /** 444 * Returns all the d d m storage links. 445 * 446 * @return the d d m storage links 447 * @throws SystemException if a system exception occurred 448 */ 449 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findAll() 450 throws com.liferay.portal.kernel.exception.SystemException; 451 452 /** 453 * Returns a range of all the d d m storage links. 454 * 455 * <p> 456 * 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. 457 * </p> 458 * 459 * @param start the lower bound of the range of d d m storage links 460 * @param end the upper bound of the range of d d m storage links (not inclusive) 461 * @return the range of d d m storage links 462 * @throws SystemException if a system exception occurred 463 */ 464 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findAll( 465 int start, int end) 466 throws com.liferay.portal.kernel.exception.SystemException; 467 468 /** 469 * Returns an ordered range of all the d d m storage links. 470 * 471 * <p> 472 * 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. 473 * </p> 474 * 475 * @param start the lower bound of the range of d d m storage links 476 * @param end the upper bound of the range of d d m storage links (not inclusive) 477 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 478 * @return the ordered range of d d m storage links 479 * @throws SystemException if a system exception occurred 480 */ 481 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findAll( 482 int start, int end, 483 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 484 throws com.liferay.portal.kernel.exception.SystemException; 485 486 /** 487 * Removes all the d d m storage links from the database. 488 * 489 * @throws SystemException if a system exception occurred 490 */ 491 public void removeAll() 492 throws com.liferay.portal.kernel.exception.SystemException; 493 494 /** 495 * Returns the number of d d m storage links. 496 * 497 * @return the number of d d m storage links 498 * @throws SystemException if a system exception occurred 499 */ 500 public int countAll() 501 throws com.liferay.portal.kernel.exception.SystemException; 502 }