001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.dynamicdatamapping.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the d d m structure link service. This utility wraps {@link DDMStructureLinkPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see DDMStructureLinkPersistence 037 * @see DDMStructureLinkPersistenceImpl 038 * @generated 039 */ 040 public class DDMStructureLinkUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(DDMStructureLink ddmStructureLink) { 058 getPersistence().clearCache(ddmStructureLink); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<DDMStructureLink> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<DDMStructureLink> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<DDMStructureLink> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 099 */ 100 public static DDMStructureLink remove(DDMStructureLink ddmStructureLink) 101 throws SystemException { 102 return getPersistence().remove(ddmStructureLink); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 107 */ 108 public static DDMStructureLink update(DDMStructureLink ddmStructureLink, 109 boolean merge) throws SystemException { 110 return getPersistence().update(ddmStructureLink, merge); 111 } 112 113 /** 114 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 115 */ 116 public static DDMStructureLink update(DDMStructureLink ddmStructureLink, 117 boolean merge, ServiceContext serviceContext) throws SystemException { 118 return getPersistence().update(ddmStructureLink, merge, serviceContext); 119 } 120 121 /** 122 * Caches the d d m structure link in the entity cache if it is enabled. 123 * 124 * @param ddmStructureLink the d d m structure link 125 */ 126 public static void cacheResult( 127 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink) { 128 getPersistence().cacheResult(ddmStructureLink); 129 } 130 131 /** 132 * Caches the d d m structure links in the entity cache if it is enabled. 133 * 134 * @param ddmStructureLinks the d d m structure links 135 */ 136 public static void cacheResult( 137 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> ddmStructureLinks) { 138 getPersistence().cacheResult(ddmStructureLinks); 139 } 140 141 /** 142 * Creates a new d d m structure link with the primary key. Does not add the d d m structure link to the database. 143 * 144 * @param structureLinkId the primary key for the new d d m structure link 145 * @return the new d d m structure link 146 */ 147 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink create( 148 long structureLinkId) { 149 return getPersistence().create(structureLinkId); 150 } 151 152 /** 153 * Removes the d d m structure link with the primary key from the database. Also notifies the appropriate model listeners. 154 * 155 * @param structureLinkId the primary key of the d d m structure link 156 * @return the d d m structure link that was removed 157 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 158 * @throws SystemException if a system exception occurred 159 */ 160 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink remove( 161 long structureLinkId) 162 throws com.liferay.portal.kernel.exception.SystemException, 163 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 164 return getPersistence().remove(structureLinkId); 165 } 166 167 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink updateImpl( 168 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink, 169 boolean merge) 170 throws com.liferay.portal.kernel.exception.SystemException { 171 return getPersistence().updateImpl(ddmStructureLink, merge); 172 } 173 174 /** 175 * 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. 176 * 177 * @param structureLinkId the primary key of the d d m structure link 178 * @return the d d m structure link 179 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 180 * @throws SystemException if a system exception occurred 181 */ 182 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByPrimaryKey( 183 long structureLinkId) 184 throws com.liferay.portal.kernel.exception.SystemException, 185 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 186 return getPersistence().findByPrimaryKey(structureLinkId); 187 } 188 189 /** 190 * Returns the d d m structure link with the primary key or returns <code>null</code> if it could not be found. 191 * 192 * @param structureLinkId the primary key of the d d m structure link 193 * @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 194 * @throws SystemException if a system exception occurred 195 */ 196 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByPrimaryKey( 197 long structureLinkId) 198 throws com.liferay.portal.kernel.exception.SystemException { 199 return getPersistence().fetchByPrimaryKey(structureLinkId); 200 } 201 202 /** 203 * Returns all the d d m structure links where classNameId = ?. 204 * 205 * @param classNameId the class name ID 206 * @return the matching d d m structure links 207 * @throws SystemException if a system exception occurred 208 */ 209 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId( 210 long classNameId) 211 throws com.liferay.portal.kernel.exception.SystemException { 212 return getPersistence().findByClassNameId(classNameId); 213 } 214 215 /** 216 * Returns a range of all the d d m structure links where classNameId = ?. 217 * 218 * <p> 219 * 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. 220 * </p> 221 * 222 * @param classNameId the class name ID 223 * @param start the lower bound of the range of d d m structure links 224 * @param end the upper bound of the range of d d m structure links (not inclusive) 225 * @return the range of matching d d m structure links 226 * @throws SystemException if a system exception occurred 227 */ 228 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId( 229 long classNameId, int start, int end) 230 throws com.liferay.portal.kernel.exception.SystemException { 231 return getPersistence().findByClassNameId(classNameId, start, end); 232 } 233 234 /** 235 * Returns an ordered range of all the d d m structure links where classNameId = ?. 236 * 237 * <p> 238 * 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. 239 * </p> 240 * 241 * @param classNameId the class name ID 242 * @param start the lower bound of the range of d d m structure links 243 * @param end the upper bound of the range of d d m structure links (not inclusive) 244 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 245 * @return the ordered range of matching d d m structure links 246 * @throws SystemException if a system exception occurred 247 */ 248 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId( 249 long classNameId, int start, int end, 250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 251 throws com.liferay.portal.kernel.exception.SystemException { 252 return getPersistence() 253 .findByClassNameId(classNameId, start, end, orderByComparator); 254 } 255 256 /** 257 * Returns the first d d m structure link in the ordered set where classNameId = ?. 258 * 259 * <p> 260 * 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. 261 * </p> 262 * 263 * @param classNameId the class name ID 264 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 265 * @return the first matching d d m structure link 266 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 267 * @throws SystemException if a system exception occurred 268 */ 269 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_First( 270 long classNameId, 271 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 272 throws com.liferay.portal.kernel.exception.SystemException, 273 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 274 return getPersistence() 275 .findByClassNameId_First(classNameId, orderByComparator); 276 } 277 278 /** 279 * Returns the last d d m structure link in the ordered set where classNameId = ?. 280 * 281 * <p> 282 * 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. 283 * </p> 284 * 285 * @param classNameId the class name ID 286 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 287 * @return the last matching d d m structure link 288 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 289 * @throws SystemException if a system exception occurred 290 */ 291 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_Last( 292 long classNameId, 293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 294 throws com.liferay.portal.kernel.exception.SystemException, 295 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 296 return getPersistence() 297 .findByClassNameId_Last(classNameId, orderByComparator); 298 } 299 300 /** 301 * Returns the d d m structure links before and after the current d d m structure link in the ordered set where classNameId = ?. 302 * 303 * <p> 304 * 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. 305 * </p> 306 * 307 * @param structureLinkId the primary key of the current d d m structure link 308 * @param classNameId the class name ID 309 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 310 * @return the previous, current, and next d d m structure link 311 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 312 * @throws SystemException if a system exception occurred 313 */ 314 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByClassNameId_PrevAndNext( 315 long structureLinkId, long classNameId, 316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 317 throws com.liferay.portal.kernel.exception.SystemException, 318 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 319 return getPersistence() 320 .findByClassNameId_PrevAndNext(structureLinkId, classNameId, 321 orderByComparator); 322 } 323 324 /** 325 * Returns all the d d m structure links that the user has permission to view where classNameId = ?. 326 * 327 * @param classNameId the class name ID 328 * @return the matching d d m structure links that the user has permission to view 329 * @throws SystemException if a system exception occurred 330 */ 331 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> filterFindByClassNameId( 332 long classNameId) 333 throws com.liferay.portal.kernel.exception.SystemException { 334 return getPersistence().filterFindByClassNameId(classNameId); 335 } 336 337 /** 338 * Returns a range of all the d d m structure links that the user has permission to view where classNameId = ?. 339 * 340 * <p> 341 * 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. 342 * </p> 343 * 344 * @param classNameId the class name ID 345 * @param start the lower bound of the range of d d m structure links 346 * @param end the upper bound of the range of d d m structure links (not inclusive) 347 * @return the range of matching d d m structure links that the user has permission to view 348 * @throws SystemException if a system exception occurred 349 */ 350 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> filterFindByClassNameId( 351 long classNameId, int start, int end) 352 throws com.liferay.portal.kernel.exception.SystemException { 353 return getPersistence().filterFindByClassNameId(classNameId, start, end); 354 } 355 356 /** 357 * Returns an ordered range of all the d d m structure links that the user has permissions to view where classNameId = ?. 358 * 359 * <p> 360 * 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. 361 * </p> 362 * 363 * @param classNameId the class name ID 364 * @param start the lower bound of the range of d d m structure links 365 * @param end the upper bound of the range of d d m structure links (not inclusive) 366 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 367 * @return the ordered range of matching d d m structure links that the user has permission to view 368 * @throws SystemException if a system exception occurred 369 */ 370 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> filterFindByClassNameId( 371 long classNameId, int start, int end, 372 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 373 throws com.liferay.portal.kernel.exception.SystemException { 374 return getPersistence() 375 .filterFindByClassNameId(classNameId, start, end, 376 orderByComparator); 377 } 378 379 /** 380 * 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 = ?. 381 * 382 * @param structureLinkId the primary key of the current d d m structure link 383 * @param classNameId the class name ID 384 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 385 * @return the previous, current, and next d d m structure link 386 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 387 * @throws SystemException if a system exception occurred 388 */ 389 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] filterFindByClassNameId_PrevAndNext( 390 long structureLinkId, long classNameId, 391 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 392 throws com.liferay.portal.kernel.exception.SystemException, 393 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 394 return getPersistence() 395 .filterFindByClassNameId_PrevAndNext(structureLinkId, 396 classNameId, orderByComparator); 397 } 398 399 /** 400 * Returns the d d m structure link where classPK = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException} if it could not be found. 401 * 402 * @param classPK the class p k 403 * @return the matching d d m structure link 404 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 405 * @throws SystemException if a system exception occurred 406 */ 407 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassPK( 408 long classPK) 409 throws com.liferay.portal.kernel.exception.SystemException, 410 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 411 return getPersistence().findByClassPK(classPK); 412 } 413 414 /** 415 * Returns the d d m structure link where classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 416 * 417 * @param classPK the class p k 418 * @return the matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found 419 * @throws SystemException if a system exception occurred 420 */ 421 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK( 422 long classPK) 423 throws com.liferay.portal.kernel.exception.SystemException { 424 return getPersistence().fetchByClassPK(classPK); 425 } 426 427 /** 428 * 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. 429 * 430 * @param classPK the class p k 431 * @param retrieveFromCache whether to use the finder cache 432 * @return the matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found 433 * @throws SystemException if a system exception occurred 434 */ 435 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK( 436 long classPK, boolean retrieveFromCache) 437 throws com.liferay.portal.kernel.exception.SystemException { 438 return getPersistence().fetchByClassPK(classPK, retrieveFromCache); 439 } 440 441 /** 442 * Returns all the d d m structure links where structureId = ?. 443 * 444 * @param structureId the structure ID 445 * @return the matching d d m structure links 446 * @throws SystemException if a system exception occurred 447 */ 448 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId( 449 long structureId) 450 throws com.liferay.portal.kernel.exception.SystemException { 451 return getPersistence().findByStructureId(structureId); 452 } 453 454 /** 455 * Returns a range of all the d d m structure links where structureId = ?. 456 * 457 * <p> 458 * 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. 459 * </p> 460 * 461 * @param structureId the structure ID 462 * @param start the lower bound of the range of d d m structure links 463 * @param end the upper bound of the range of d d m structure links (not inclusive) 464 * @return the range of matching d d m structure links 465 * @throws SystemException if a system exception occurred 466 */ 467 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId( 468 long structureId, int start, int end) 469 throws com.liferay.portal.kernel.exception.SystemException { 470 return getPersistence().findByStructureId(structureId, start, end); 471 } 472 473 /** 474 * Returns an ordered range of all the d d m structure links where structureId = ?. 475 * 476 * <p> 477 * 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. 478 * </p> 479 * 480 * @param structureId the structure ID 481 * @param start the lower bound of the range of d d m structure links 482 * @param end the upper bound of the range of d d m structure links (not inclusive) 483 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 484 * @return the ordered range of matching d d m structure links 485 * @throws SystemException if a system exception occurred 486 */ 487 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId( 488 long structureId, int start, int end, 489 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 490 throws com.liferay.portal.kernel.exception.SystemException { 491 return getPersistence() 492 .findByStructureId(structureId, start, end, orderByComparator); 493 } 494 495 /** 496 * Returns the first d d m structure link in the ordered set where structureId = ?. 497 * 498 * <p> 499 * 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. 500 * </p> 501 * 502 * @param structureId the structure ID 503 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 504 * @return the first matching d d m structure link 505 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 506 * @throws SystemException if a system exception occurred 507 */ 508 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_First( 509 long structureId, 510 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 511 throws com.liferay.portal.kernel.exception.SystemException, 512 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 513 return getPersistence() 514 .findByStructureId_First(structureId, orderByComparator); 515 } 516 517 /** 518 * Returns the last d d m structure link in the ordered set where structureId = ?. 519 * 520 * <p> 521 * 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. 522 * </p> 523 * 524 * @param structureId the structure ID 525 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 526 * @return the last matching d d m structure link 527 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found 528 * @throws SystemException if a system exception occurred 529 */ 530 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_Last( 531 long structureId, 532 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 533 throws com.liferay.portal.kernel.exception.SystemException, 534 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 535 return getPersistence() 536 .findByStructureId_Last(structureId, orderByComparator); 537 } 538 539 /** 540 * Returns the d d m structure links before and after the current d d m structure link in the ordered set where structureId = ?. 541 * 542 * <p> 543 * 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. 544 * </p> 545 * 546 * @param structureLinkId the primary key of the current d d m structure link 547 * @param structureId the structure ID 548 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 549 * @return the previous, current, and next d d m structure link 550 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 551 * @throws SystemException if a system exception occurred 552 */ 553 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByStructureId_PrevAndNext( 554 long structureLinkId, long structureId, 555 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 556 throws com.liferay.portal.kernel.exception.SystemException, 557 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 558 return getPersistence() 559 .findByStructureId_PrevAndNext(structureLinkId, structureId, 560 orderByComparator); 561 } 562 563 /** 564 * Returns all the d d m structure links that the user has permission to view where structureId = ?. 565 * 566 * @param structureId the structure ID 567 * @return the matching d d m structure links that the user has permission to view 568 * @throws SystemException if a system exception occurred 569 */ 570 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> filterFindByStructureId( 571 long structureId) 572 throws com.liferay.portal.kernel.exception.SystemException { 573 return getPersistence().filterFindByStructureId(structureId); 574 } 575 576 /** 577 * Returns a range of all the d d m structure links that the user has permission to view where structureId = ?. 578 * 579 * <p> 580 * 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. 581 * </p> 582 * 583 * @param structureId the structure ID 584 * @param start the lower bound of the range of d d m structure links 585 * @param end the upper bound of the range of d d m structure links (not inclusive) 586 * @return the range of matching d d m structure links that the user has permission to view 587 * @throws SystemException if a system exception occurred 588 */ 589 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> filterFindByStructureId( 590 long structureId, int start, int end) 591 throws com.liferay.portal.kernel.exception.SystemException { 592 return getPersistence().filterFindByStructureId(structureId, start, end); 593 } 594 595 /** 596 * Returns an ordered range of all the d d m structure links that the user has permissions to view where structureId = ?. 597 * 598 * <p> 599 * 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. 600 * </p> 601 * 602 * @param structureId the structure ID 603 * @param start the lower bound of the range of d d m structure links 604 * @param end the upper bound of the range of d d m structure links (not inclusive) 605 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 606 * @return the ordered range of matching d d m structure links that the user has permission to view 607 * @throws SystemException if a system exception occurred 608 */ 609 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> filterFindByStructureId( 610 long structureId, int start, int end, 611 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 612 throws com.liferay.portal.kernel.exception.SystemException { 613 return getPersistence() 614 .filterFindByStructureId(structureId, start, end, 615 orderByComparator); 616 } 617 618 /** 619 * 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 = ?. 620 * 621 * @param structureLinkId the primary key of the current d d m structure link 622 * @param structureId the structure ID 623 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 624 * @return the previous, current, and next d d m structure link 625 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found 626 * @throws SystemException if a system exception occurred 627 */ 628 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] filterFindByStructureId_PrevAndNext( 629 long structureLinkId, long structureId, 630 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 631 throws com.liferay.portal.kernel.exception.SystemException, 632 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 633 return getPersistence() 634 .filterFindByStructureId_PrevAndNext(structureLinkId, 635 structureId, orderByComparator); 636 } 637 638 /** 639 * Returns all the d d m structure links. 640 * 641 * @return the d d m structure links 642 * @throws SystemException if a system exception occurred 643 */ 644 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll() 645 throws com.liferay.portal.kernel.exception.SystemException { 646 return getPersistence().findAll(); 647 } 648 649 /** 650 * Returns a range of all the d d m structure links. 651 * 652 * <p> 653 * 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. 654 * </p> 655 * 656 * @param start the lower bound of the range of d d m structure links 657 * @param end the upper bound of the range of d d m structure links (not inclusive) 658 * @return the range of d d m structure links 659 * @throws SystemException if a system exception occurred 660 */ 661 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll( 662 int start, int end) 663 throws com.liferay.portal.kernel.exception.SystemException { 664 return getPersistence().findAll(start, end); 665 } 666 667 /** 668 * Returns an ordered range of all the d d m structure links. 669 * 670 * <p> 671 * 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. 672 * </p> 673 * 674 * @param start the lower bound of the range of d d m structure links 675 * @param end the upper bound of the range of d d m structure links (not inclusive) 676 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 677 * @return the ordered range of d d m structure links 678 * @throws SystemException if a system exception occurred 679 */ 680 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll( 681 int start, int end, 682 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 683 throws com.liferay.portal.kernel.exception.SystemException { 684 return getPersistence().findAll(start, end, orderByComparator); 685 } 686 687 /** 688 * Removes all the d d m structure links where classNameId = ? from the database. 689 * 690 * @param classNameId the class name ID 691 * @throws SystemException if a system exception occurred 692 */ 693 public static void removeByClassNameId(long classNameId) 694 throws com.liferay.portal.kernel.exception.SystemException { 695 getPersistence().removeByClassNameId(classNameId); 696 } 697 698 /** 699 * Removes the d d m structure link where classPK = ? from the database. 700 * 701 * @param classPK the class p k 702 * @throws SystemException if a system exception occurred 703 */ 704 public static void removeByClassPK(long classPK) 705 throws com.liferay.portal.kernel.exception.SystemException, 706 com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException { 707 getPersistence().removeByClassPK(classPK); 708 } 709 710 /** 711 * Removes all the d d m structure links where structureId = ? from the database. 712 * 713 * @param structureId the structure ID 714 * @throws SystemException if a system exception occurred 715 */ 716 public static void removeByStructureId(long structureId) 717 throws com.liferay.portal.kernel.exception.SystemException { 718 getPersistence().removeByStructureId(structureId); 719 } 720 721 /** 722 * Removes all the d d m structure links from the database. 723 * 724 * @throws SystemException if a system exception occurred 725 */ 726 public static void removeAll() 727 throws com.liferay.portal.kernel.exception.SystemException { 728 getPersistence().removeAll(); 729 } 730 731 /** 732 * Returns the number of d d m structure links where classNameId = ?. 733 * 734 * @param classNameId the class name ID 735 * @return the number of matching d d m structure links 736 * @throws SystemException if a system exception occurred 737 */ 738 public static int countByClassNameId(long classNameId) 739 throws com.liferay.portal.kernel.exception.SystemException { 740 return getPersistence().countByClassNameId(classNameId); 741 } 742 743 /** 744 * Returns the number of d d m structure links that the user has permission to view where classNameId = ?. 745 * 746 * @param classNameId the class name ID 747 * @return the number of matching d d m structure links that the user has permission to view 748 * @throws SystemException if a system exception occurred 749 */ 750 public static int filterCountByClassNameId(long classNameId) 751 throws com.liferay.portal.kernel.exception.SystemException { 752 return getPersistence().filterCountByClassNameId(classNameId); 753 } 754 755 /** 756 * Returns the number of d d m structure links where classPK = ?. 757 * 758 * @param classPK the class p k 759 * @return the number of matching d d m structure links 760 * @throws SystemException if a system exception occurred 761 */ 762 public static int countByClassPK(long classPK) 763 throws com.liferay.portal.kernel.exception.SystemException { 764 return getPersistence().countByClassPK(classPK); 765 } 766 767 /** 768 * Returns the number of d d m structure links where structureId = ?. 769 * 770 * @param structureId the structure ID 771 * @return the number of matching d d m structure links 772 * @throws SystemException if a system exception occurred 773 */ 774 public static int countByStructureId(long structureId) 775 throws com.liferay.portal.kernel.exception.SystemException { 776 return getPersistence().countByStructureId(structureId); 777 } 778 779 /** 780 * Returns the number of d d m structure links that the user has permission to view where structureId = ?. 781 * 782 * @param structureId the structure ID 783 * @return the number of matching d d m structure links that the user has permission to view 784 * @throws SystemException if a system exception occurred 785 */ 786 public static int filterCountByStructureId(long structureId) 787 throws com.liferay.portal.kernel.exception.SystemException { 788 return getPersistence().filterCountByStructureId(structureId); 789 } 790 791 /** 792 * Returns the number of d d m structure links. 793 * 794 * @return the number of d d m structure links 795 * @throws SystemException if a system exception occurred 796 */ 797 public static int countAll() 798 throws com.liferay.portal.kernel.exception.SystemException { 799 return getPersistence().countAll(); 800 } 801 802 public static DDMStructureLinkPersistence getPersistence() { 803 if (_persistence == null) { 804 _persistence = (DDMStructureLinkPersistence)PortalBeanLocatorUtil.locate(DDMStructureLinkPersistence.class.getName()); 805 806 ReferenceRegistry.registerReference(DDMStructureLinkUtil.class, 807 "_persistence"); 808 } 809 810 return _persistence; 811 } 812 813 public void setPersistence(DDMStructureLinkPersistence persistence) { 814 _persistence = persistence; 815 816 ReferenceRegistry.registerReference(DDMStructureLinkUtil.class, 817 "_persistence"); 818 } 819 820 private static DDMStructureLinkPersistence _persistence; 821 }