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.DDMStructureLink; 022 023 /** 024 * The persistence interface for the d d m structure 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 DDMStructureLinkPersistenceImpl 032 * @see DDMStructureLinkUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface DDMStructureLinkPersistence extends BasePersistence<DDMStructureLink> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link DDMStructureLinkUtil} to access the d d m structure link persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the d d m structure links where classNameId = ?. 045 * 046 * @param classNameId the class name ID 047 * @return the matching d d m structure links 048 * @throws SystemException if a system exception occurred 049 */ 050 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId( 051 long classNameId) 052 throws com.liferay.portal.kernel.exception.SystemException; 053 054 /** 055 * Returns a range of all the d d m structure links where classNameId = ?. 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.DDMStructureLinkModelImpl}. 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 classNameId the class name ID 062 * @param start the lower bound of the range of d d m structure links 063 * @param end the upper bound of the range of d d m structure links (not inclusive) 064 * @return the range of matching d d m structure links 065 * @throws SystemException if a system exception occurred 066 */ 067 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId( 068 long classNameId, 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 structure links where classNameId = ?. 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.DDMStructureLinkModelImpl}. 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 classNameId the class name ID 079 * @param start the lower bound of the range of d d m structure links 080 * @param end the upper bound of the range of d d m structure 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 structure links 083 * @throws SystemException if a system exception occurred 084 */ 085 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId( 086 long classNameId, 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 structure link in the ordered set where classNameId = ?. 092 * 093 * @param classNameId the class name ID 094 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 095 * @return the first matching d d m structure link 096 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 097 * @throws SystemException if a system exception occurred 098 */ 099 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_First( 100 long classNameId, 101 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 102 throws com.liferay.portal.kernel.exception.SystemException, 103 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 104 105 /** 106 * Returns the first d d m structure link in the ordered set where classNameId = ?. 107 * 108 * @param classNameId the class name ID 109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 110 * @return the first matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found 111 * @throws SystemException if a system exception occurred 112 */ 113 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassNameId_First( 114 long classNameId, 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 structure link in the ordered set where classNameId = ?. 120 * 121 * @param classNameId the class name ID 122 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 123 * @return the last matching d d m structure link 124 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 125 * @throws SystemException if a system exception occurred 126 */ 127 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_Last( 128 long classNameId, 129 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 130 throws com.liferay.portal.kernel.exception.SystemException, 131 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 132 133 /** 134 * Returns the last d d m structure link in the ordered set where classNameId = ?. 135 * 136 * @param classNameId the class name ID 137 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 138 * @return the last matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found 139 * @throws SystemException if a system exception occurred 140 */ 141 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassNameId_Last( 142 long classNameId, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Returns the d d m structure links before and after the current d d m structure link in the ordered set where classNameId = ?. 148 * 149 * @param structureLinkId the primary key of the current d d m structure link 150 * @param classNameId the class name ID 151 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 152 * @return the previous, current, and next d d m structure link 153 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure 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.DDMStructureLink[] findByClassNameId_PrevAndNext( 157 long structureLinkId, long classNameId, 158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 159 throws com.liferay.portal.kernel.exception.SystemException, 160 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 161 162 /** 163 * Removes all the d d m structure links where classNameId = ? from the database. 164 * 165 * @param classNameId the class name ID 166 * @throws SystemException if a system exception occurred 167 */ 168 public void removeByClassNameId(long classNameId) 169 throws com.liferay.portal.kernel.exception.SystemException; 170 171 /** 172 * Returns the number of d d m structure links where classNameId = ?. 173 * 174 * @param classNameId the class name ID 175 * @return the number of matching d d m structure links 176 * @throws SystemException if a system exception occurred 177 */ 178 public int countByClassNameId(long classNameId) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns the d d m structure link where classPK = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException} if it could not be found. 183 * 184 * @param classPK the class p k 185 * @return the matching d d m structure link 186 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 187 * @throws SystemException if a system exception occurred 188 */ 189 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassPK( 190 long classPK) 191 throws com.liferay.portal.kernel.exception.SystemException, 192 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 193 194 /** 195 * Returns the d d m structure 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 structure link, or <code>null</code> if a matching d d m structure link could not be found 199 * @throws SystemException if a system exception occurred 200 */ 201 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK( 202 long classPK) 203 throws com.liferay.portal.kernel.exception.SystemException; 204 205 /** 206 * Returns the d d m structure link where classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 207 * 208 * @param classPK the class p k 209 * @param retrieveFromCache whether to use the finder cache 210 * @return the matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found 211 * @throws SystemException if a system exception occurred 212 */ 213 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK( 214 long classPK, boolean retrieveFromCache) 215 throws com.liferay.portal.kernel.exception.SystemException; 216 217 /** 218 * Removes the d d m structure link where classPK = ? from the database. 219 * 220 * @param classPK the class p k 221 * @return the d d m structure link that was removed 222 * @throws SystemException if a system exception occurred 223 */ 224 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink removeByClassPK( 225 long classPK) 226 throws com.liferay.portal.kernel.exception.SystemException, 227 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 228 229 /** 230 * Returns the number of d d m structure links where classPK = ?. 231 * 232 * @param classPK the class p k 233 * @return the number of matching d d m structure 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 structure links where structureId = ?. 241 * 242 * @param structureId the structure ID 243 * @return the matching d d m structure links 244 * @throws SystemException if a system exception occurred 245 */ 246 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId( 247 long structureId) 248 throws com.liferay.portal.kernel.exception.SystemException; 249 250 /** 251 * Returns a range of all the d d m structure 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.DDMStructureLinkModelImpl}. 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 structure links 259 * @param end the upper bound of the range of d d m structure links (not inclusive) 260 * @return the range of matching d d m structure links 261 * @throws SystemException if a system exception occurred 262 */ 263 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> 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 structure 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.DDMStructureLinkModelImpl}. 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 structure links 276 * @param end the upper bound of the range of d d m structure 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 structure links 279 * @throws SystemException if a system exception occurred 280 */ 281 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> 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 structure 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 structure link 292 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 293 * @throws SystemException if a system exception occurred 294 */ 295 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink 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.NoSuchStructureLinkException; 300 301 /** 302 * Returns the first d d m structure 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 structure link, or <code>null</code> if a matching d d m structure link could not be found 307 * @throws SystemException if a system exception occurred 308 */ 309 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink 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 structure 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 structure link 320 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 321 * @throws SystemException if a system exception occurred 322 */ 323 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink 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.NoSuchStructureLinkException; 328 329 /** 330 * Returns the last d d m structure 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 structure link, or <code>null</code> if a matching d d m structure link could not be found 335 * @throws SystemException if a system exception occurred 336 */ 337 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink 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 structure links before and after the current d d m structure link in the ordered set where structureId = ?. 344 * 345 * @param structureLinkId the primary key of the current d d m structure 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 structure link 349 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure 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.DDMStructureLink[] findByStructureId_PrevAndNext( 353 long structureLinkId, long structureId, 354 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 355 throws com.liferay.portal.kernel.exception.SystemException, 356 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 357 358 /** 359 * Removes all the d d m structure 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 structure links where structureId = ?. 369 * 370 * @param structureId the structure ID 371 * @return the number of matching d d m structure 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 structure link in the entity cache if it is enabled. 379 * 380 * @param ddmStructureLink the d d m structure link 381 */ 382 public void cacheResult( 383 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink); 384 385 /** 386 * Caches the d d m structure links in the entity cache if it is enabled. 387 * 388 * @param ddmStructureLinks the d d m structure links 389 */ 390 public void cacheResult( 391 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> ddmStructureLinks); 392 393 /** 394 * Creates a new d d m structure link with the primary key. Does not add the d d m structure link to the database. 395 * 396 * @param structureLinkId the primary key for the new d d m structure link 397 * @return the new d d m structure link 398 */ 399 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink create( 400 long structureLinkId); 401 402 /** 403 * Removes the d d m structure link with the primary key from the database. Also notifies the appropriate model listeners. 404 * 405 * @param structureLinkId the primary key of the d d m structure link 406 * @return the d d m structure link that was removed 407 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure 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.DDMStructureLink remove( 411 long structureLinkId) 412 throws com.liferay.portal.kernel.exception.SystemException, 413 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 414 415 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink updateImpl( 416 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink) 417 throws com.liferay.portal.kernel.exception.SystemException; 418 419 /** 420 * Returns the d d m structure link with the primary key or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException} if it could not be found. 421 * 422 * @param structureLinkId the primary key of the d d m structure link 423 * @return the d d m structure link 424 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure 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.DDMStructureLink findByPrimaryKey( 428 long structureLinkId) 429 throws com.liferay.portal.kernel.exception.SystemException, 430 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 431 432 /** 433 * Returns the d d m structure link with the primary key or returns <code>null</code> if it could not be found. 434 * 435 * @param structureLinkId the primary key of the d d m structure link 436 * @return the d d m structure link, or <code>null</code> if a d d m structure link with the primary key could not be found 437 * @throws SystemException if a system exception occurred 438 */ 439 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByPrimaryKey( 440 long structureLinkId) 441 throws com.liferay.portal.kernel.exception.SystemException; 442 443 /** 444 * Returns all the d d m structure links. 445 * 446 * @return the d d m structure links 447 * @throws SystemException if a system exception occurred 448 */ 449 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll() 450 throws com.liferay.portal.kernel.exception.SystemException; 451 452 /** 453 * Returns a range of all the d d m structure 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.DDMStructureLinkModelImpl}. 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 structure links 460 * @param end the upper bound of the range of d d m structure links (not inclusive) 461 * @return the range of d d m structure links 462 * @throws SystemException if a system exception occurred 463 */ 464 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> 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 structure 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.DDMStructureLinkModelImpl}. 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 structure links 476 * @param end the upper bound of the range of d d m structure 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 structure links 479 * @throws SystemException if a system exception occurred 480 */ 481 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> 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 structure 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 structure links. 496 * 497 * @return the number of d d m structure links 498 * @throws SystemException if a system exception occurred 499 */ 500 public int countAll() 501 throws com.liferay.portal.kernel.exception.SystemException; 502 }