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.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.DDMTemplate; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the d d m template service. This utility wraps {@link DDMTemplatePersistenceImpl} 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 DDMTemplatePersistence 037 * @see DDMTemplatePersistenceImpl 038 * @generated 039 */ 040 public class DDMTemplateUtil { 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(DDMTemplate ddmTemplate) { 058 getPersistence().clearCache(ddmTemplate); 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<DDMTemplate> 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<DDMTemplate> 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<DDMTemplate> 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 DDMTemplate remove(DDMTemplate ddmTemplate) 101 throws SystemException { 102 return getPersistence().remove(ddmTemplate); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 107 */ 108 public static DDMTemplate update(DDMTemplate ddmTemplate, boolean merge) 109 throws SystemException { 110 return getPersistence().update(ddmTemplate, merge); 111 } 112 113 /** 114 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 115 */ 116 public static DDMTemplate update(DDMTemplate ddmTemplate, boolean merge, 117 ServiceContext serviceContext) throws SystemException { 118 return getPersistence().update(ddmTemplate, merge, serviceContext); 119 } 120 121 /** 122 * Caches the d d m template in the entity cache if it is enabled. 123 * 124 * @param ddmTemplate the d d m template 125 */ 126 public static void cacheResult( 127 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate) { 128 getPersistence().cacheResult(ddmTemplate); 129 } 130 131 /** 132 * Caches the d d m templates in the entity cache if it is enabled. 133 * 134 * @param ddmTemplates the d d m templates 135 */ 136 public static void cacheResult( 137 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> ddmTemplates) { 138 getPersistence().cacheResult(ddmTemplates); 139 } 140 141 /** 142 * Creates a new d d m template with the primary key. Does not add the d d m template to the database. 143 * 144 * @param templateId the primary key for the new d d m template 145 * @return the new d d m template 146 */ 147 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate create( 148 long templateId) { 149 return getPersistence().create(templateId); 150 } 151 152 /** 153 * Removes the d d m template with the primary key from the database. Also notifies the appropriate model listeners. 154 * 155 * @param templateId the primary key of the d d m template 156 * @return the d d m template that was removed 157 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template 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.DDMTemplate remove( 161 long templateId) 162 throws com.liferay.portal.kernel.exception.SystemException, 163 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 164 return getPersistence().remove(templateId); 165 } 166 167 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateImpl( 168 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate, 169 boolean merge) 170 throws com.liferay.portal.kernel.exception.SystemException { 171 return getPersistence().updateImpl(ddmTemplate, merge); 172 } 173 174 /** 175 * Returns the d d m template with the primary key or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException} if it could not be found. 176 * 177 * @param templateId the primary key of the d d m template 178 * @return the d d m template 179 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template 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.DDMTemplate findByPrimaryKey( 183 long templateId) 184 throws com.liferay.portal.kernel.exception.SystemException, 185 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 186 return getPersistence().findByPrimaryKey(templateId); 187 } 188 189 /** 190 * Returns the d d m template with the primary key or returns <code>null</code> if it could not be found. 191 * 192 * @param templateId the primary key of the d d m template 193 * @return the d d m template, or <code>null</code> if a d d m template 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.DDMTemplate fetchByPrimaryKey( 197 long templateId) 198 throws com.liferay.portal.kernel.exception.SystemException { 199 return getPersistence().fetchByPrimaryKey(templateId); 200 } 201 202 /** 203 * Returns all the d d m templates where uuid = ?. 204 * 205 * @param uuid the uuid 206 * @return the matching d d m templates 207 * @throws SystemException if a system exception occurred 208 */ 209 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid( 210 java.lang.String uuid) 211 throws com.liferay.portal.kernel.exception.SystemException { 212 return getPersistence().findByUuid(uuid); 213 } 214 215 /** 216 * Returns a range of all the d d m templates where uuid = ?. 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 uuid the uuid 223 * @param start the lower bound of the range of d d m templates 224 * @param end the upper bound of the range of d d m templates (not inclusive) 225 * @return the range of matching d d m templates 226 * @throws SystemException if a system exception occurred 227 */ 228 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid( 229 java.lang.String uuid, int start, int end) 230 throws com.liferay.portal.kernel.exception.SystemException { 231 return getPersistence().findByUuid(uuid, start, end); 232 } 233 234 /** 235 * Returns an ordered range of all the d d m templates where uuid = ?. 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 uuid the uuid 242 * @param start the lower bound of the range of d d m templates 243 * @param end the upper bound of the range of d d m templates (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 templates 246 * @throws SystemException if a system exception occurred 247 */ 248 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid( 249 java.lang.String uuid, int start, int end, 250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 251 throws com.liferay.portal.kernel.exception.SystemException { 252 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 253 } 254 255 /** 256 * Returns the first d d m template in the ordered set where uuid = ?. 257 * 258 * <p> 259 * 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. 260 * </p> 261 * 262 * @param uuid the uuid 263 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 264 * @return the first matching d d m template 265 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 266 * @throws SystemException if a system exception occurred 267 */ 268 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_First( 269 java.lang.String uuid, 270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 271 throws com.liferay.portal.kernel.exception.SystemException, 272 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 273 return getPersistence().findByUuid_First(uuid, orderByComparator); 274 } 275 276 /** 277 * Returns the last d d m template in the ordered set where uuid = ?. 278 * 279 * <p> 280 * 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. 281 * </p> 282 * 283 * @param uuid the uuid 284 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 285 * @return the last matching d d m template 286 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 287 * @throws SystemException if a system exception occurred 288 */ 289 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_Last( 290 java.lang.String uuid, 291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 292 throws com.liferay.portal.kernel.exception.SystemException, 293 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 294 return getPersistence().findByUuid_Last(uuid, orderByComparator); 295 } 296 297 /** 298 * Returns the d d m templates before and after the current d d m template in the ordered set where uuid = ?. 299 * 300 * <p> 301 * 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. 302 * </p> 303 * 304 * @param templateId the primary key of the current d d m template 305 * @param uuid the uuid 306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 307 * @return the previous, current, and next d d m template 308 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByUuid_PrevAndNext( 312 long templateId, java.lang.String uuid, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.kernel.exception.SystemException, 315 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 316 return getPersistence() 317 .findByUuid_PrevAndNext(templateId, uuid, orderByComparator); 318 } 319 320 /** 321 * Returns the d d m template where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException} if it could not be found. 322 * 323 * @param uuid the uuid 324 * @param groupId the group ID 325 * @return the matching d d m template 326 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 327 * @throws SystemException if a system exception occurred 328 */ 329 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUUID_G( 330 java.lang.String uuid, long groupId) 331 throws com.liferay.portal.kernel.exception.SystemException, 332 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 333 return getPersistence().findByUUID_G(uuid, groupId); 334 } 335 336 /** 337 * Returns the d d m template where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 338 * 339 * @param uuid the uuid 340 * @param groupId the group ID 341 * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found 342 * @throws SystemException if a system exception occurred 343 */ 344 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G( 345 java.lang.String uuid, long groupId) 346 throws com.liferay.portal.kernel.exception.SystemException { 347 return getPersistence().fetchByUUID_G(uuid, groupId); 348 } 349 350 /** 351 * Returns the d d m template where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 352 * 353 * @param uuid the uuid 354 * @param groupId the group ID 355 * @param retrieveFromCache whether to use the finder cache 356 * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found 357 * @throws SystemException if a system exception occurred 358 */ 359 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G( 360 java.lang.String uuid, long groupId, boolean retrieveFromCache) 361 throws com.liferay.portal.kernel.exception.SystemException { 362 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 363 } 364 365 /** 366 * Returns all the d d m templates where groupId = ?. 367 * 368 * @param groupId the group ID 369 * @return the matching d d m templates 370 * @throws SystemException if a system exception occurred 371 */ 372 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId( 373 long groupId) 374 throws com.liferay.portal.kernel.exception.SystemException { 375 return getPersistence().findByGroupId(groupId); 376 } 377 378 /** 379 * Returns a range of all the d d m templates where groupId = ?. 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 groupId the group ID 386 * @param start the lower bound of the range of d d m templates 387 * @param end the upper bound of the range of d d m templates (not inclusive) 388 * @return the range of matching d d m templates 389 * @throws SystemException if a system exception occurred 390 */ 391 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId( 392 long groupId, int start, int end) 393 throws com.liferay.portal.kernel.exception.SystemException { 394 return getPersistence().findByGroupId(groupId, start, end); 395 } 396 397 /** 398 * Returns an ordered range of all the d d m templates where groupId = ?. 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 groupId the group ID 405 * @param start the lower bound of the range of d d m templates 406 * @param end the upper bound of the range of d d m templates (not inclusive) 407 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 408 * @return the ordered range of matching d d m templates 409 * @throws SystemException if a system exception occurred 410 */ 411 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId( 412 long groupId, int start, int end, 413 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 414 throws com.liferay.portal.kernel.exception.SystemException { 415 return getPersistence() 416 .findByGroupId(groupId, start, end, orderByComparator); 417 } 418 419 /** 420 * Returns the first d d m template in the ordered set where groupId = ?. 421 * 422 * <p> 423 * 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. 424 * </p> 425 * 426 * @param groupId the group ID 427 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 428 * @return the first matching d d m template 429 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 430 * @throws SystemException if a system exception occurred 431 */ 432 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_First( 433 long groupId, 434 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 435 throws com.liferay.portal.kernel.exception.SystemException, 436 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 437 return getPersistence().findByGroupId_First(groupId, orderByComparator); 438 } 439 440 /** 441 * Returns the last d d m template in the ordered set where groupId = ?. 442 * 443 * <p> 444 * 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. 445 * </p> 446 * 447 * @param groupId the group ID 448 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 449 * @return the last matching d d m template 450 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 451 * @throws SystemException if a system exception occurred 452 */ 453 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_Last( 454 long groupId, 455 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 456 throws com.liferay.portal.kernel.exception.SystemException, 457 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 458 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 459 } 460 461 /** 462 * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ?. 463 * 464 * <p> 465 * 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. 466 * </p> 467 * 468 * @param templateId the primary key of the current d d m template 469 * @param groupId the group ID 470 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 471 * @return the previous, current, and next d d m template 472 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 473 * @throws SystemException if a system exception occurred 474 */ 475 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByGroupId_PrevAndNext( 476 long templateId, long groupId, 477 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 478 throws com.liferay.portal.kernel.exception.SystemException, 479 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 480 return getPersistence() 481 .findByGroupId_PrevAndNext(templateId, groupId, 482 orderByComparator); 483 } 484 485 /** 486 * Returns all the d d m templates that the user has permission to view where groupId = ?. 487 * 488 * @param groupId the group ID 489 * @return the matching d d m templates that the user has permission to view 490 * @throws SystemException if a system exception occurred 491 */ 492 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId( 493 long groupId) 494 throws com.liferay.portal.kernel.exception.SystemException { 495 return getPersistence().filterFindByGroupId(groupId); 496 } 497 498 /** 499 * Returns a range of all the d d m templates that the user has permission to view where groupId = ?. 500 * 501 * <p> 502 * 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. 503 * </p> 504 * 505 * @param groupId the group ID 506 * @param start the lower bound of the range of d d m templates 507 * @param end the upper bound of the range of d d m templates (not inclusive) 508 * @return the range of matching d d m templates that the user has permission to view 509 * @throws SystemException if a system exception occurred 510 */ 511 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId( 512 long groupId, int start, int end) 513 throws com.liferay.portal.kernel.exception.SystemException { 514 return getPersistence().filterFindByGroupId(groupId, start, end); 515 } 516 517 /** 518 * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ?. 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 groupId the group ID 525 * @param start the lower bound of the range of d d m templates 526 * @param end the upper bound of the range of d d m templates (not inclusive) 527 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 528 * @return the ordered range of matching d d m templates that the user has permission to view 529 * @throws SystemException if a system exception occurred 530 */ 531 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId( 532 long groupId, int start, int end, 533 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 534 throws com.liferay.portal.kernel.exception.SystemException { 535 return getPersistence() 536 .filterFindByGroupId(groupId, start, end, orderByComparator); 537 } 538 539 /** 540 * Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ?. 541 * 542 * @param templateId the primary key of the current d d m template 543 * @param groupId the group ID 544 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 545 * @return the previous, current, and next d d m template 546 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 547 * @throws SystemException if a system exception occurred 548 */ 549 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByGroupId_PrevAndNext( 550 long templateId, long groupId, 551 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 552 throws com.liferay.portal.kernel.exception.SystemException, 553 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 554 return getPersistence() 555 .filterFindByGroupId_PrevAndNext(templateId, groupId, 556 orderByComparator); 557 } 558 559 /** 560 * Returns all the d d m templates where structureId = ?. 561 * 562 * @param structureId the structure ID 563 * @return the matching d d m templates 564 * @throws SystemException if a system exception occurred 565 */ 566 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByStructureId( 567 long structureId) 568 throws com.liferay.portal.kernel.exception.SystemException { 569 return getPersistence().findByStructureId(structureId); 570 } 571 572 /** 573 * Returns a range of all the d d m templates where structureId = ?. 574 * 575 * <p> 576 * 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. 577 * </p> 578 * 579 * @param structureId the structure ID 580 * @param start the lower bound of the range of d d m templates 581 * @param end the upper bound of the range of d d m templates (not inclusive) 582 * @return the range of matching d d m templates 583 * @throws SystemException if a system exception occurred 584 */ 585 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByStructureId( 586 long structureId, int start, int end) 587 throws com.liferay.portal.kernel.exception.SystemException { 588 return getPersistence().findByStructureId(structureId, start, end); 589 } 590 591 /** 592 * Returns an ordered range of all the d d m templates where structureId = ?. 593 * 594 * <p> 595 * 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. 596 * </p> 597 * 598 * @param structureId the structure ID 599 * @param start the lower bound of the range of d d m templates 600 * @param end the upper bound of the range of d d m templates (not inclusive) 601 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 602 * @return the ordered range of matching d d m templates 603 * @throws SystemException if a system exception occurred 604 */ 605 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByStructureId( 606 long structureId, int start, int end, 607 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 608 throws com.liferay.portal.kernel.exception.SystemException { 609 return getPersistence() 610 .findByStructureId(structureId, start, end, orderByComparator); 611 } 612 613 /** 614 * Returns the first d d m template in the ordered set where structureId = ?. 615 * 616 * <p> 617 * 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. 618 * </p> 619 * 620 * @param structureId the structure ID 621 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 622 * @return the first matching d d m template 623 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 624 * @throws SystemException if a system exception occurred 625 */ 626 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByStructureId_First( 627 long structureId, 628 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 629 throws com.liferay.portal.kernel.exception.SystemException, 630 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 631 return getPersistence() 632 .findByStructureId_First(structureId, orderByComparator); 633 } 634 635 /** 636 * Returns the last d d m template in the ordered set where structureId = ?. 637 * 638 * <p> 639 * 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. 640 * </p> 641 * 642 * @param structureId the structure ID 643 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 644 * @return the last matching d d m template 645 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 646 * @throws SystemException if a system exception occurred 647 */ 648 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByStructureId_Last( 649 long structureId, 650 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 651 throws com.liferay.portal.kernel.exception.SystemException, 652 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 653 return getPersistence() 654 .findByStructureId_Last(structureId, orderByComparator); 655 } 656 657 /** 658 * Returns the d d m templates before and after the current d d m template in the ordered set where structureId = ?. 659 * 660 * <p> 661 * 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. 662 * </p> 663 * 664 * @param templateId the primary key of the current d d m template 665 * @param structureId the structure ID 666 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 667 * @return the previous, current, and next d d m template 668 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 669 * @throws SystemException if a system exception occurred 670 */ 671 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByStructureId_PrevAndNext( 672 long templateId, long structureId, 673 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 674 throws com.liferay.portal.kernel.exception.SystemException, 675 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 676 return getPersistence() 677 .findByStructureId_PrevAndNext(templateId, structureId, 678 orderByComparator); 679 } 680 681 /** 682 * Returns all the d d m templates where type = ?. 683 * 684 * @param type the type 685 * @return the matching d d m templates 686 * @throws SystemException if a system exception occurred 687 */ 688 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType( 689 java.lang.String type) 690 throws com.liferay.portal.kernel.exception.SystemException { 691 return getPersistence().findByType(type); 692 } 693 694 /** 695 * Returns a range of all the d d m templates where type = ?. 696 * 697 * <p> 698 * 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. 699 * </p> 700 * 701 * @param type the type 702 * @param start the lower bound of the range of d d m templates 703 * @param end the upper bound of the range of d d m templates (not inclusive) 704 * @return the range of matching d d m templates 705 * @throws SystemException if a system exception occurred 706 */ 707 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType( 708 java.lang.String type, int start, int end) 709 throws com.liferay.portal.kernel.exception.SystemException { 710 return getPersistence().findByType(type, start, end); 711 } 712 713 /** 714 * Returns an ordered range of all the d d m templates where type = ?. 715 * 716 * <p> 717 * 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. 718 * </p> 719 * 720 * @param type the type 721 * @param start the lower bound of the range of d d m templates 722 * @param end the upper bound of the range of d d m templates (not inclusive) 723 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 724 * @return the ordered range of matching d d m templates 725 * @throws SystemException if a system exception occurred 726 */ 727 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType( 728 java.lang.String type, int start, int end, 729 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 730 throws com.liferay.portal.kernel.exception.SystemException { 731 return getPersistence().findByType(type, start, end, orderByComparator); 732 } 733 734 /** 735 * Returns the first d d m template in the ordered set where type = ?. 736 * 737 * <p> 738 * 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. 739 * </p> 740 * 741 * @param type the type 742 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 743 * @return the first matching d d m template 744 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 745 * @throws SystemException if a system exception occurred 746 */ 747 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_First( 748 java.lang.String type, 749 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 750 throws com.liferay.portal.kernel.exception.SystemException, 751 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 752 return getPersistence().findByType_First(type, orderByComparator); 753 } 754 755 /** 756 * Returns the last d d m template in the ordered set where type = ?. 757 * 758 * <p> 759 * 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. 760 * </p> 761 * 762 * @param type the type 763 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 764 * @return the last matching d d m template 765 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 766 * @throws SystemException if a system exception occurred 767 */ 768 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_Last( 769 java.lang.String type, 770 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 771 throws com.liferay.portal.kernel.exception.SystemException, 772 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 773 return getPersistence().findByType_Last(type, orderByComparator); 774 } 775 776 /** 777 * Returns the d d m templates before and after the current d d m template in the ordered set where type = ?. 778 * 779 * <p> 780 * 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. 781 * </p> 782 * 783 * @param templateId the primary key of the current d d m template 784 * @param type the type 785 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 786 * @return the previous, current, and next d d m template 787 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 788 * @throws SystemException if a system exception occurred 789 */ 790 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByType_PrevAndNext( 791 long templateId, java.lang.String type, 792 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 793 throws com.liferay.portal.kernel.exception.SystemException, 794 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 795 return getPersistence() 796 .findByType_PrevAndNext(templateId, type, orderByComparator); 797 } 798 799 /** 800 * Returns all the d d m templates where language = ?. 801 * 802 * @param language the language 803 * @return the matching d d m templates 804 * @throws SystemException if a system exception occurred 805 */ 806 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage( 807 java.lang.String language) 808 throws com.liferay.portal.kernel.exception.SystemException { 809 return getPersistence().findByLanguage(language); 810 } 811 812 /** 813 * Returns a range of all the d d m templates where language = ?. 814 * 815 * <p> 816 * 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. 817 * </p> 818 * 819 * @param language the language 820 * @param start the lower bound of the range of d d m templates 821 * @param end the upper bound of the range of d d m templates (not inclusive) 822 * @return the range of matching d d m templates 823 * @throws SystemException if a system exception occurred 824 */ 825 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage( 826 java.lang.String language, int start, int end) 827 throws com.liferay.portal.kernel.exception.SystemException { 828 return getPersistence().findByLanguage(language, start, end); 829 } 830 831 /** 832 * Returns an ordered range of all the d d m templates where language = ?. 833 * 834 * <p> 835 * 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. 836 * </p> 837 * 838 * @param language the language 839 * @param start the lower bound of the range of d d m templates 840 * @param end the upper bound of the range of d d m templates (not inclusive) 841 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 842 * @return the ordered range of matching d d m templates 843 * @throws SystemException if a system exception occurred 844 */ 845 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage( 846 java.lang.String language, int start, int end, 847 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 848 throws com.liferay.portal.kernel.exception.SystemException { 849 return getPersistence() 850 .findByLanguage(language, start, end, orderByComparator); 851 } 852 853 /** 854 * Returns the first d d m template in the ordered set where language = ?. 855 * 856 * <p> 857 * 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. 858 * </p> 859 * 860 * @param language the language 861 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 862 * @return the first matching d d m template 863 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 864 * @throws SystemException if a system exception occurred 865 */ 866 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_First( 867 java.lang.String language, 868 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 869 throws com.liferay.portal.kernel.exception.SystemException, 870 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 871 return getPersistence().findByLanguage_First(language, orderByComparator); 872 } 873 874 /** 875 * Returns the last d d m template in the ordered set where language = ?. 876 * 877 * <p> 878 * 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. 879 * </p> 880 * 881 * @param language the language 882 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 883 * @return the last matching d d m template 884 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 885 * @throws SystemException if a system exception occurred 886 */ 887 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_Last( 888 java.lang.String language, 889 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 890 throws com.liferay.portal.kernel.exception.SystemException, 891 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 892 return getPersistence().findByLanguage_Last(language, orderByComparator); 893 } 894 895 /** 896 * Returns the d d m templates before and after the current d d m template in the ordered set where language = ?. 897 * 898 * <p> 899 * 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. 900 * </p> 901 * 902 * @param templateId the primary key of the current d d m template 903 * @param language the language 904 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 905 * @return the previous, current, and next d d m template 906 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 907 * @throws SystemException if a system exception occurred 908 */ 909 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByLanguage_PrevAndNext( 910 long templateId, java.lang.String language, 911 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 912 throws com.liferay.portal.kernel.exception.SystemException, 913 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 914 return getPersistence() 915 .findByLanguage_PrevAndNext(templateId, language, 916 orderByComparator); 917 } 918 919 /** 920 * Returns all the d d m templates where structureId = ? and type = ? and mode = ?. 921 * 922 * @param structureId the structure ID 923 * @param type the type 924 * @param mode the mode 925 * @return the matching d d m templates 926 * @throws SystemException if a system exception occurred 927 */ 928 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T_M( 929 long structureId, java.lang.String type, java.lang.String mode) 930 throws com.liferay.portal.kernel.exception.SystemException { 931 return getPersistence().findByS_T_M(structureId, type, mode); 932 } 933 934 /** 935 * Returns a range of all the d d m templates where structureId = ? and type = ? and mode = ?. 936 * 937 * <p> 938 * 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. 939 * </p> 940 * 941 * @param structureId the structure ID 942 * @param type the type 943 * @param mode the mode 944 * @param start the lower bound of the range of d d m templates 945 * @param end the upper bound of the range of d d m templates (not inclusive) 946 * @return the range of matching d d m templates 947 * @throws SystemException if a system exception occurred 948 */ 949 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T_M( 950 long structureId, java.lang.String type, java.lang.String mode, 951 int start, int end) 952 throws com.liferay.portal.kernel.exception.SystemException { 953 return getPersistence().findByS_T_M(structureId, type, mode, start, end); 954 } 955 956 /** 957 * Returns an ordered range of all the d d m templates where structureId = ? and type = ? and mode = ?. 958 * 959 * <p> 960 * 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. 961 * </p> 962 * 963 * @param structureId the structure ID 964 * @param type the type 965 * @param mode the mode 966 * @param start the lower bound of the range of d d m templates 967 * @param end the upper bound of the range of d d m templates (not inclusive) 968 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 969 * @return the ordered range of matching d d m templates 970 * @throws SystemException if a system exception occurred 971 */ 972 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T_M( 973 long structureId, java.lang.String type, java.lang.String mode, 974 int start, int end, 975 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 976 throws com.liferay.portal.kernel.exception.SystemException { 977 return getPersistence() 978 .findByS_T_M(structureId, type, mode, start, end, 979 orderByComparator); 980 } 981 982 /** 983 * Returns the first d d m template in the ordered set where structureId = ? and type = ? and mode = ?. 984 * 985 * <p> 986 * 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. 987 * </p> 988 * 989 * @param structureId the structure ID 990 * @param type the type 991 * @param mode the mode 992 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 993 * @return the first matching d d m template 994 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 995 * @throws SystemException if a system exception occurred 996 */ 997 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_M_First( 998 long structureId, java.lang.String type, java.lang.String mode, 999 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1000 throws com.liferay.portal.kernel.exception.SystemException, 1001 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 1002 return getPersistence() 1003 .findByS_T_M_First(structureId, type, mode, orderByComparator); 1004 } 1005 1006 /** 1007 * Returns the last d d m template in the ordered set where structureId = ? and type = ? and mode = ?. 1008 * 1009 * <p> 1010 * 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. 1011 * </p> 1012 * 1013 * @param structureId the structure ID 1014 * @param type the type 1015 * @param mode the mode 1016 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1017 * @return the last matching d d m template 1018 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 1019 * @throws SystemException if a system exception occurred 1020 */ 1021 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_M_Last( 1022 long structureId, java.lang.String type, java.lang.String mode, 1023 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1024 throws com.liferay.portal.kernel.exception.SystemException, 1025 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 1026 return getPersistence() 1027 .findByS_T_M_Last(structureId, type, mode, orderByComparator); 1028 } 1029 1030 /** 1031 * Returns the d d m templates before and after the current d d m template in the ordered set where structureId = ? and type = ? and mode = ?. 1032 * 1033 * <p> 1034 * 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. 1035 * </p> 1036 * 1037 * @param templateId the primary key of the current d d m template 1038 * @param structureId the structure ID 1039 * @param type the type 1040 * @param mode the mode 1041 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1042 * @return the previous, current, and next d d m template 1043 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 1044 * @throws SystemException if a system exception occurred 1045 */ 1046 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByS_T_M_PrevAndNext( 1047 long templateId, long structureId, java.lang.String type, 1048 java.lang.String mode, 1049 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1050 throws com.liferay.portal.kernel.exception.SystemException, 1051 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 1052 return getPersistence() 1053 .findByS_T_M_PrevAndNext(templateId, structureId, type, 1054 mode, orderByComparator); 1055 } 1056 1057 /** 1058 * Returns all the d d m templates. 1059 * 1060 * @return the d d m templates 1061 * @throws SystemException if a system exception occurred 1062 */ 1063 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll() 1064 throws com.liferay.portal.kernel.exception.SystemException { 1065 return getPersistence().findAll(); 1066 } 1067 1068 /** 1069 * Returns a range of all the d d m templates. 1070 * 1071 * <p> 1072 * 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. 1073 * </p> 1074 * 1075 * @param start the lower bound of the range of d d m templates 1076 * @param end the upper bound of the range of d d m templates (not inclusive) 1077 * @return the range of d d m templates 1078 * @throws SystemException if a system exception occurred 1079 */ 1080 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll( 1081 int start, int end) 1082 throws com.liferay.portal.kernel.exception.SystemException { 1083 return getPersistence().findAll(start, end); 1084 } 1085 1086 /** 1087 * Returns an ordered range of all the d d m templates. 1088 * 1089 * <p> 1090 * 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. 1091 * </p> 1092 * 1093 * @param start the lower bound of the range of d d m templates 1094 * @param end the upper bound of the range of d d m templates (not inclusive) 1095 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1096 * @return the ordered range of d d m templates 1097 * @throws SystemException if a system exception occurred 1098 */ 1099 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll( 1100 int start, int end, 1101 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1102 throws com.liferay.portal.kernel.exception.SystemException { 1103 return getPersistence().findAll(start, end, orderByComparator); 1104 } 1105 1106 /** 1107 * Removes all the d d m templates where uuid = ? from the database. 1108 * 1109 * @param uuid the uuid 1110 * @throws SystemException if a system exception occurred 1111 */ 1112 public static void removeByUuid(java.lang.String uuid) 1113 throws com.liferay.portal.kernel.exception.SystemException { 1114 getPersistence().removeByUuid(uuid); 1115 } 1116 1117 /** 1118 * Removes the d d m template where uuid = ? and groupId = ? from the database. 1119 * 1120 * @param uuid the uuid 1121 * @param groupId the group ID 1122 * @throws SystemException if a system exception occurred 1123 */ 1124 public static void removeByUUID_G(java.lang.String uuid, long groupId) 1125 throws com.liferay.portal.kernel.exception.SystemException, 1126 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 1127 getPersistence().removeByUUID_G(uuid, groupId); 1128 } 1129 1130 /** 1131 * Removes all the d d m templates where groupId = ? from the database. 1132 * 1133 * @param groupId the group ID 1134 * @throws SystemException if a system exception occurred 1135 */ 1136 public static void removeByGroupId(long groupId) 1137 throws com.liferay.portal.kernel.exception.SystemException { 1138 getPersistence().removeByGroupId(groupId); 1139 } 1140 1141 /** 1142 * Removes all the d d m templates where structureId = ? from the database. 1143 * 1144 * @param structureId the structure ID 1145 * @throws SystemException if a system exception occurred 1146 */ 1147 public static void removeByStructureId(long structureId) 1148 throws com.liferay.portal.kernel.exception.SystemException { 1149 getPersistence().removeByStructureId(structureId); 1150 } 1151 1152 /** 1153 * Removes all the d d m templates where type = ? from the database. 1154 * 1155 * @param type the type 1156 * @throws SystemException if a system exception occurred 1157 */ 1158 public static void removeByType(java.lang.String type) 1159 throws com.liferay.portal.kernel.exception.SystemException { 1160 getPersistence().removeByType(type); 1161 } 1162 1163 /** 1164 * Removes all the d d m templates where language = ? from the database. 1165 * 1166 * @param language the language 1167 * @throws SystemException if a system exception occurred 1168 */ 1169 public static void removeByLanguage(java.lang.String language) 1170 throws com.liferay.portal.kernel.exception.SystemException { 1171 getPersistence().removeByLanguage(language); 1172 } 1173 1174 /** 1175 * Removes all the d d m templates where structureId = ? and type = ? and mode = ? from the database. 1176 * 1177 * @param structureId the structure ID 1178 * @param type the type 1179 * @param mode the mode 1180 * @throws SystemException if a system exception occurred 1181 */ 1182 public static void removeByS_T_M(long structureId, java.lang.String type, 1183 java.lang.String mode) 1184 throws com.liferay.portal.kernel.exception.SystemException { 1185 getPersistence().removeByS_T_M(structureId, type, mode); 1186 } 1187 1188 /** 1189 * Removes all the d d m templates from the database. 1190 * 1191 * @throws SystemException if a system exception occurred 1192 */ 1193 public static void removeAll() 1194 throws com.liferay.portal.kernel.exception.SystemException { 1195 getPersistence().removeAll(); 1196 } 1197 1198 /** 1199 * Returns the number of d d m templates where uuid = ?. 1200 * 1201 * @param uuid the uuid 1202 * @return the number of matching d d m templates 1203 * @throws SystemException if a system exception occurred 1204 */ 1205 public static int countByUuid(java.lang.String uuid) 1206 throws com.liferay.portal.kernel.exception.SystemException { 1207 return getPersistence().countByUuid(uuid); 1208 } 1209 1210 /** 1211 * Returns the number of d d m templates where uuid = ? and groupId = ?. 1212 * 1213 * @param uuid the uuid 1214 * @param groupId the group ID 1215 * @return the number of matching d d m templates 1216 * @throws SystemException if a system exception occurred 1217 */ 1218 public static int countByUUID_G(java.lang.String uuid, long groupId) 1219 throws com.liferay.portal.kernel.exception.SystemException { 1220 return getPersistence().countByUUID_G(uuid, groupId); 1221 } 1222 1223 /** 1224 * Returns the number of d d m templates where groupId = ?. 1225 * 1226 * @param groupId the group ID 1227 * @return the number of matching d d m templates 1228 * @throws SystemException if a system exception occurred 1229 */ 1230 public static int countByGroupId(long groupId) 1231 throws com.liferay.portal.kernel.exception.SystemException { 1232 return getPersistence().countByGroupId(groupId); 1233 } 1234 1235 /** 1236 * Returns the number of d d m templates that the user has permission to view where groupId = ?. 1237 * 1238 * @param groupId the group ID 1239 * @return the number of matching d d m templates that the user has permission to view 1240 * @throws SystemException if a system exception occurred 1241 */ 1242 public static int filterCountByGroupId(long groupId) 1243 throws com.liferay.portal.kernel.exception.SystemException { 1244 return getPersistence().filterCountByGroupId(groupId); 1245 } 1246 1247 /** 1248 * Returns the number of d d m templates where structureId = ?. 1249 * 1250 * @param structureId the structure ID 1251 * @return the number of matching d d m templates 1252 * @throws SystemException if a system exception occurred 1253 */ 1254 public static int countByStructureId(long structureId) 1255 throws com.liferay.portal.kernel.exception.SystemException { 1256 return getPersistence().countByStructureId(structureId); 1257 } 1258 1259 /** 1260 * Returns the number of d d m templates where type = ?. 1261 * 1262 * @param type the type 1263 * @return the number of matching d d m templates 1264 * @throws SystemException if a system exception occurred 1265 */ 1266 public static int countByType(java.lang.String type) 1267 throws com.liferay.portal.kernel.exception.SystemException { 1268 return getPersistence().countByType(type); 1269 } 1270 1271 /** 1272 * Returns the number of d d m templates where language = ?. 1273 * 1274 * @param language the language 1275 * @return the number of matching d d m templates 1276 * @throws SystemException if a system exception occurred 1277 */ 1278 public static int countByLanguage(java.lang.String language) 1279 throws com.liferay.portal.kernel.exception.SystemException { 1280 return getPersistence().countByLanguage(language); 1281 } 1282 1283 /** 1284 * Returns the number of d d m templates where structureId = ? and type = ? and mode = ?. 1285 * 1286 * @param structureId the structure ID 1287 * @param type the type 1288 * @param mode the mode 1289 * @return the number of matching d d m templates 1290 * @throws SystemException if a system exception occurred 1291 */ 1292 public static int countByS_T_M(long structureId, java.lang.String type, 1293 java.lang.String mode) 1294 throws com.liferay.portal.kernel.exception.SystemException { 1295 return getPersistence().countByS_T_M(structureId, type, mode); 1296 } 1297 1298 /** 1299 * Returns the number of d d m templates. 1300 * 1301 * @return the number of d d m templates 1302 * @throws SystemException if a system exception occurred 1303 */ 1304 public static int countAll() 1305 throws com.liferay.portal.kernel.exception.SystemException { 1306 return getPersistence().countAll(); 1307 } 1308 1309 public static DDMTemplatePersistence getPersistence() { 1310 if (_persistence == null) { 1311 _persistence = (DDMTemplatePersistence)PortalBeanLocatorUtil.locate(DDMTemplatePersistence.class.getName()); 1312 1313 ReferenceRegistry.registerReference(DDMTemplateUtil.class, 1314 "_persistence"); 1315 } 1316 1317 return _persistence; 1318 } 1319 1320 public void setPersistence(DDMTemplatePersistence persistence) { 1321 _persistence = persistence; 1322 1323 ReferenceRegistry.registerReference(DDMTemplateUtil.class, 1324 "_persistence"); 1325 } 1326 1327 private static DDMTemplatePersistence _persistence; 1328 }