001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.dynamicdatamapping.service.persistence; 016 017 import com.liferay.portal.kernel.exception.SystemException; 018 import com.liferay.portal.service.persistence.BasePersistence; 019 020 import com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink; 021 022 /** 023 * The persistence interface for the d d m structure link service. 024 * 025 * <p> 026 * Caching information and settings can be found in <code>portal.properties</code> 027 * </p> 028 * 029 * @author Brian Wing Shun Chan 030 * @see DDMStructureLinkPersistenceImpl 031 * @see DDMStructureLinkUtil 032 * @generated 033 */ 034 public interface DDMStructureLinkPersistence extends BasePersistence<DDMStructureLink> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * 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. 039 */ 040 041 /** 042 * Caches the d d m structure link in the entity cache if it is enabled. 043 * 044 * @param ddmStructureLink the d d m structure link 045 */ 046 public void cacheResult( 047 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink); 048 049 /** 050 * Caches the d d m structure links in the entity cache if it is enabled. 051 * 052 * @param ddmStructureLinks the d d m structure links 053 */ 054 public void cacheResult( 055 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> ddmStructureLinks); 056 057 /** 058 * Creates a new d d m structure link with the primary key. Does not add the d d m structure link to the database. 059 * 060 * @param structureLinkId the primary key for the new d d m structure link 061 * @return the new d d m structure link 062 */ 063 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink create( 064 long structureLinkId); 065 066 /** 067 * Removes the d d m structure link with the primary key from the database. Also notifies the appropriate model listeners. 068 * 069 * @param structureLinkId the primary key of the d d m structure link 070 * @return the d d m structure link that was removed 071 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 072 * @throws SystemException if a system exception occurred 073 */ 074 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink remove( 075 long structureLinkId) 076 throws com.liferay.portal.kernel.exception.SystemException, 077 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 078 079 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink updateImpl( 080 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink, 081 boolean merge) 082 throws com.liferay.portal.kernel.exception.SystemException; 083 084 /** 085 * 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. 086 * 087 * @param structureLinkId the primary key of the d d m structure link 088 * @return the d d m structure link 089 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 090 * @throws SystemException if a system exception occurred 091 */ 092 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByPrimaryKey( 093 long structureLinkId) 094 throws com.liferay.portal.kernel.exception.SystemException, 095 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 096 097 /** 098 * Returns the d d m structure link with the primary key or returns <code>null</code> if it could not be found. 099 * 100 * @param structureLinkId the primary key of the d d m structure link 101 * @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 102 * @throws SystemException if a system exception occurred 103 */ 104 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByPrimaryKey( 105 long structureLinkId) 106 throws com.liferay.portal.kernel.exception.SystemException; 107 108 /** 109 * Returns all the d d m structure links where classNameId = ?. 110 * 111 * @param classNameId the class name ID 112 * @return the matching d d m structure links 113 * @throws SystemException if a system exception occurred 114 */ 115 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId( 116 long classNameId) 117 throws com.liferay.portal.kernel.exception.SystemException; 118 119 /** 120 * Returns a range of all the d d m structure links where classNameId = ?. 121 * 122 * <p> 123 * 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. 124 * </p> 125 * 126 * @param classNameId the class name ID 127 * @param start the lower bound of the range of d d m structure links 128 * @param end the upper bound of the range of d d m structure links (not inclusive) 129 * @return the range of matching d d m structure links 130 * @throws SystemException if a system exception occurred 131 */ 132 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId( 133 long classNameId, int start, int end) 134 throws com.liferay.portal.kernel.exception.SystemException; 135 136 /** 137 * Returns an ordered range of all the d d m structure links where classNameId = ?. 138 * 139 * <p> 140 * 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. 141 * </p> 142 * 143 * @param classNameId the class name ID 144 * @param start the lower bound of the range of d d m structure links 145 * @param end the upper bound of the range of d d m structure links (not inclusive) 146 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 147 * @return the ordered range of matching d d m structure links 148 * @throws SystemException if a system exception occurred 149 */ 150 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId( 151 long classNameId, int start, int end, 152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 153 throws com.liferay.portal.kernel.exception.SystemException; 154 155 /** 156 * Returns the first d d m structure link in the ordered set where classNameId = ?. 157 * 158 * <p> 159 * 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. 160 * </p> 161 * 162 * @param classNameId the class name ID 163 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 164 * @return the first matching d d m structure link 165 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 166 * @throws SystemException if a system exception occurred 167 */ 168 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_First( 169 long classNameId, 170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 171 throws com.liferay.portal.kernel.exception.SystemException, 172 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 173 174 /** 175 * Returns the last d d m structure link in the ordered set where classNameId = ?. 176 * 177 * <p> 178 * 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. 179 * </p> 180 * 181 * @param classNameId the class name ID 182 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 183 * @return the last matching d d m structure link 184 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_Last( 188 long classNameId, 189 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 190 throws com.liferay.portal.kernel.exception.SystemException, 191 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 192 193 /** 194 * Returns the d d m structure links before and after the current d d m structure link in the ordered set where classNameId = ?. 195 * 196 * <p> 197 * 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. 198 * </p> 199 * 200 * @param structureLinkId the primary key of the current d d m structure link 201 * @param classNameId the class name ID 202 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 203 * @return the previous, current, and next d d m structure link 204 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 205 * @throws SystemException if a system exception occurred 206 */ 207 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByClassNameId_PrevAndNext( 208 long structureLinkId, long classNameId, 209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 210 throws com.liferay.portal.kernel.exception.SystemException, 211 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 212 213 /** 214 * Returns all the d d m structure links that the user has permission to view where classNameId = ?. 215 * 216 * @param classNameId the class name ID 217 * @return the matching d d m structure links that the user has permission to view 218 * @throws SystemException if a system exception occurred 219 */ 220 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> filterFindByClassNameId( 221 long classNameId) 222 throws com.liferay.portal.kernel.exception.SystemException; 223 224 /** 225 * Returns a range of all the d d m structure links that the user has permission to view where classNameId = ?. 226 * 227 * <p> 228 * 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. 229 * </p> 230 * 231 * @param classNameId the class name ID 232 * @param start the lower bound of the range of d d m structure links 233 * @param end the upper bound of the range of d d m structure links (not inclusive) 234 * @return the range of matching d d m structure links that the user has permission to view 235 * @throws SystemException if a system exception occurred 236 */ 237 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> filterFindByClassNameId( 238 long classNameId, int start, int end) 239 throws com.liferay.portal.kernel.exception.SystemException; 240 241 /** 242 * Returns an ordered range of all the d d m structure links that the user has permissions to view where classNameId = ?. 243 * 244 * <p> 245 * 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. 246 * </p> 247 * 248 * @param classNameId the class name ID 249 * @param start the lower bound of the range of d d m structure links 250 * @param end the upper bound of the range of d d m structure links (not inclusive) 251 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 252 * @return the ordered range of matching d d m structure links that the user has permission to view 253 * @throws SystemException if a system exception occurred 254 */ 255 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> filterFindByClassNameId( 256 long classNameId, int start, int end, 257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 258 throws com.liferay.portal.kernel.exception.SystemException; 259 260 /** 261 * Returns the d d m structure links before and after the current d d m structure link in the ordered set of d d m structure links that the user has permission to view where classNameId = ?. 262 * 263 * @param structureLinkId the primary key of the current d d m structure link 264 * @param classNameId the class name ID 265 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 266 * @return the previous, current, and next d d m structure link 267 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 268 * @throws SystemException if a system exception occurred 269 */ 270 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] filterFindByClassNameId_PrevAndNext( 271 long structureLinkId, long classNameId, 272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 273 throws com.liferay.portal.kernel.exception.SystemException, 274 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 275 276 /** 277 * Returns the d d m structure link where classPK = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException} if it could not be found. 278 * 279 * @param classPK the class p k 280 * @return the matching d d m structure link 281 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 282 * @throws SystemException if a system exception occurred 283 */ 284 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassPK( 285 long classPK) 286 throws com.liferay.portal.kernel.exception.SystemException, 287 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 288 289 /** 290 * Returns the d d m structure link where classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 291 * 292 * @param classPK the class p k 293 * @return the matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found 294 * @throws SystemException if a system exception occurred 295 */ 296 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK( 297 long classPK) 298 throws com.liferay.portal.kernel.exception.SystemException; 299 300 /** 301 * 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. 302 * 303 * @param classPK the class p k 304 * @param retrieveFromCache whether to use the finder cache 305 * @return the matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found 306 * @throws SystemException if a system exception occurred 307 */ 308 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK( 309 long classPK, boolean retrieveFromCache) 310 throws com.liferay.portal.kernel.exception.SystemException; 311 312 /** 313 * Returns all the d d m structure links where structureId = ?. 314 * 315 * @param structureId the structure ID 316 * @return the matching d d m structure links 317 * @throws SystemException if a system exception occurred 318 */ 319 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId( 320 long structureId) 321 throws com.liferay.portal.kernel.exception.SystemException; 322 323 /** 324 * Returns a range of all the d d m structure links where structureId = ?. 325 * 326 * <p> 327 * 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. 328 * </p> 329 * 330 * @param structureId the structure ID 331 * @param start the lower bound of the range of d d m structure links 332 * @param end the upper bound of the range of d d m structure links (not inclusive) 333 * @return the range of matching d d m structure links 334 * @throws SystemException if a system exception occurred 335 */ 336 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId( 337 long structureId, int start, int end) 338 throws com.liferay.portal.kernel.exception.SystemException; 339 340 /** 341 * Returns an ordered range of all the d d m structure links where structureId = ?. 342 * 343 * <p> 344 * 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. 345 * </p> 346 * 347 * @param structureId the structure ID 348 * @param start the lower bound of the range of d d m structure links 349 * @param end the upper bound of the range of d d m structure links (not inclusive) 350 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 351 * @return the ordered range of matching d d m structure links 352 * @throws SystemException if a system exception occurred 353 */ 354 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId( 355 long structureId, int start, int end, 356 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 357 throws com.liferay.portal.kernel.exception.SystemException; 358 359 /** 360 * Returns the first d d m structure link in the ordered set where structureId = ?. 361 * 362 * <p> 363 * 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. 364 * </p> 365 * 366 * @param structureId the structure ID 367 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 368 * @return the first matching d d m structure link 369 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 370 * @throws SystemException if a system exception occurred 371 */ 372 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_First( 373 long structureId, 374 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 375 throws com.liferay.portal.kernel.exception.SystemException, 376 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 377 378 /** 379 * Returns the last d d m structure link in the ordered set where structureId = ?. 380 * 381 * <p> 382 * 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. 383 * </p> 384 * 385 * @param structureId the structure ID 386 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 387 * @return the last matching d d m structure link 388 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 389 * @throws SystemException if a system exception occurred 390 */ 391 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_Last( 392 long structureId, 393 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 394 throws com.liferay.portal.kernel.exception.SystemException, 395 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 396 397 /** 398 * Returns the d d m structure links before and after the current d d m structure link in the ordered set where structureId = ?. 399 * 400 * <p> 401 * 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. 402 * </p> 403 * 404 * @param structureLinkId the primary key of the current d d m structure link 405 * @param structureId the structure ID 406 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 407 * @return the previous, current, and next d d m structure link 408 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 409 * @throws SystemException if a system exception occurred 410 */ 411 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByStructureId_PrevAndNext( 412 long structureLinkId, long structureId, 413 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 414 throws com.liferay.portal.kernel.exception.SystemException, 415 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 416 417 /** 418 * Returns all the d d m structure links that the user has permission to view where structureId = ?. 419 * 420 * @param structureId the structure ID 421 * @return the matching d d m structure links that the user has permission to view 422 * @throws SystemException if a system exception occurred 423 */ 424 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> filterFindByStructureId( 425 long structureId) 426 throws com.liferay.portal.kernel.exception.SystemException; 427 428 /** 429 * Returns a range of all the d d m structure links that the user has permission to view where structureId = ?. 430 * 431 * <p> 432 * 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. 433 * </p> 434 * 435 * @param structureId the structure ID 436 * @param start the lower bound of the range of d d m structure links 437 * @param end the upper bound of the range of d d m structure links (not inclusive) 438 * @return the range of matching d d m structure links that the user has permission to view 439 * @throws SystemException if a system exception occurred 440 */ 441 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> filterFindByStructureId( 442 long structureId, int start, int end) 443 throws com.liferay.portal.kernel.exception.SystemException; 444 445 /** 446 * Returns an ordered range of all the d d m structure links that the user has permissions to view where structureId = ?. 447 * 448 * <p> 449 * 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. 450 * </p> 451 * 452 * @param structureId the structure ID 453 * @param start the lower bound of the range of d d m structure links 454 * @param end the upper bound of the range of d d m structure links (not inclusive) 455 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 456 * @return the ordered range of matching d d m structure links that the user has permission to view 457 * @throws SystemException if a system exception occurred 458 */ 459 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> filterFindByStructureId( 460 long structureId, int start, int end, 461 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 462 throws com.liferay.portal.kernel.exception.SystemException; 463 464 /** 465 * Returns the d d m structure links before and after the current d d m structure link in the ordered set of d d m structure links that the user has permission to view where structureId = ?. 466 * 467 * @param structureLinkId the primary key of the current d d m structure link 468 * @param structureId the structure ID 469 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 470 * @return the previous, current, and next d d m structure link 471 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 472 * @throws SystemException if a system exception occurred 473 */ 474 public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] filterFindByStructureId_PrevAndNext( 475 long structureLinkId, long structureId, 476 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 477 throws com.liferay.portal.kernel.exception.SystemException, 478 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 479 480 /** 481 * Returns all the d d m structure links. 482 * 483 * @return the d d m structure links 484 * @throws SystemException if a system exception occurred 485 */ 486 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll() 487 throws com.liferay.portal.kernel.exception.SystemException; 488 489 /** 490 * Returns a range of all the d d m structure links. 491 * 492 * <p> 493 * 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. 494 * </p> 495 * 496 * @param start the lower bound of the range of d d m structure links 497 * @param end the upper bound of the range of d d m structure links (not inclusive) 498 * @return the range of d d m structure links 499 * @throws SystemException if a system exception occurred 500 */ 501 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll( 502 int start, int end) 503 throws com.liferay.portal.kernel.exception.SystemException; 504 505 /** 506 * Returns an ordered range of all the d d m structure links. 507 * 508 * <p> 509 * 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. 510 * </p> 511 * 512 * @param start the lower bound of the range of d d m structure links 513 * @param end the upper bound of the range of d d m structure links (not inclusive) 514 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 515 * @return the ordered range of d d m structure links 516 * @throws SystemException if a system exception occurred 517 */ 518 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll( 519 int start, int end, 520 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 521 throws com.liferay.portal.kernel.exception.SystemException; 522 523 /** 524 * Removes all the d d m structure links where classNameId = ? from the database. 525 * 526 * @param classNameId the class name ID 527 * @throws SystemException if a system exception occurred 528 */ 529 public void removeByClassNameId(long classNameId) 530 throws com.liferay.portal.kernel.exception.SystemException; 531 532 /** 533 * Removes the d d m structure link where classPK = ? from the database. 534 * 535 * @param classPK the class p k 536 * @throws SystemException if a system exception occurred 537 */ 538 public void removeByClassPK(long classPK) 539 throws com.liferay.portal.kernel.exception.SystemException, 540 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException; 541 542 /** 543 * Removes all the d d m structure links where structureId = ? from the database. 544 * 545 * @param structureId the structure ID 546 * @throws SystemException if a system exception occurred 547 */ 548 public void removeByStructureId(long structureId) 549 throws com.liferay.portal.kernel.exception.SystemException; 550 551 /** 552 * Removes all the d d m structure links from the database. 553 * 554 * @throws SystemException if a system exception occurred 555 */ 556 public void removeAll() 557 throws com.liferay.portal.kernel.exception.SystemException; 558 559 /** 560 * Returns the number of d d m structure links where classNameId = ?. 561 * 562 * @param classNameId the class name ID 563 * @return the number of matching d d m structure links 564 * @throws SystemException if a system exception occurred 565 */ 566 public int countByClassNameId(long classNameId) 567 throws com.liferay.portal.kernel.exception.SystemException; 568 569 /** 570 * Returns the number of d d m structure links that the user has permission to view where classNameId = ?. 571 * 572 * @param classNameId the class name ID 573 * @return the number of matching d d m structure links that the user has permission to view 574 * @throws SystemException if a system exception occurred 575 */ 576 public int filterCountByClassNameId(long classNameId) 577 throws com.liferay.portal.kernel.exception.SystemException; 578 579 /** 580 * Returns the number of d d m structure links where classPK = ?. 581 * 582 * @param classPK the class p k 583 * @return the number of matching d d m structure links 584 * @throws SystemException if a system exception occurred 585 */ 586 public int countByClassPK(long classPK) 587 throws com.liferay.portal.kernel.exception.SystemException; 588 589 /** 590 * Returns the number of d d m structure links where structureId = ?. 591 * 592 * @param structureId the structure ID 593 * @return the number of matching d d m structure links 594 * @throws SystemException if a system exception occurred 595 */ 596 public int countByStructureId(long structureId) 597 throws com.liferay.portal.kernel.exception.SystemException; 598 599 /** 600 * Returns the number of d d m structure links that the user has permission to view where structureId = ?. 601 * 602 * @param structureId the structure ID 603 * @return the number of matching d d m structure links that the user has permission to view 604 * @throws SystemException if a system exception occurred 605 */ 606 public int filterCountByStructureId(long structureId) 607 throws com.liferay.portal.kernel.exception.SystemException; 608 609 /** 610 * Returns the number of d d m structure links. 611 * 612 * @return the number of d d m structure links 613 * @throws SystemException if a system exception occurred 614 */ 615 public int countAll() 616 throws com.liferay.portal.kernel.exception.SystemException; 617 618 public DDMStructureLink remove(DDMStructureLink ddmStructureLink) 619 throws SystemException; 620 }