001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.dynamicdatamapping.service.persistence; 016 017 import 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#update(com.liferay.portal.model.BaseModel, boolean) 099 */ 100 public static DDMTemplate update(DDMTemplate ddmTemplate, boolean merge) 101 throws SystemException { 102 return getPersistence().update(ddmTemplate, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static DDMTemplate update(DDMTemplate ddmTemplate, boolean merge, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(ddmTemplate, merge, serviceContext); 111 } 112 113 /** 114 * Caches the d d m template in the entity cache if it is enabled. 115 * 116 * @param ddmTemplate the d d m template 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate) { 120 getPersistence().cacheResult(ddmTemplate); 121 } 122 123 /** 124 * Caches the d d m templates in the entity cache if it is enabled. 125 * 126 * @param ddmTemplates the d d m templates 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> ddmTemplates) { 130 getPersistence().cacheResult(ddmTemplates); 131 } 132 133 /** 134 * Creates a new d d m template with the primary key. Does not add the d d m template to the database. 135 * 136 * @param templateId the primary key for the new d d m template 137 * @return the new d d m template 138 */ 139 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate create( 140 long templateId) { 141 return getPersistence().create(templateId); 142 } 143 144 /** 145 * Removes the d d m template with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param templateId the primary key of the d d m template 148 * @return the d d m template that was removed 149 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate remove( 153 long templateId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 156 return getPersistence().remove(templateId); 157 } 158 159 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateImpl( 160 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate, 161 boolean merge) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(ddmTemplate, merge); 164 } 165 166 /** 167 * 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. 168 * 169 * @param templateId the primary key of the d d m template 170 * @return the d d m template 171 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByPrimaryKey( 175 long templateId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 178 return getPersistence().findByPrimaryKey(templateId); 179 } 180 181 /** 182 * Returns the d d m template with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param templateId the primary key of the d d m template 185 * @return the d d m template, or <code>null</code> if a d d m template with the primary key could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByPrimaryKey( 189 long templateId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(templateId); 192 } 193 194 /** 195 * Returns all the d d m templates where uuid = ?. 196 * 197 * @param uuid the uuid 198 * @return the matching d d m templates 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid( 202 java.lang.String uuid) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByUuid(uuid); 205 } 206 207 /** 208 * Returns a range of all the d d m templates where uuid = ?. 209 * 210 * <p> 211 * 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. 212 * </p> 213 * 214 * @param uuid the uuid 215 * @param start the lower bound of the range of d d m templates 216 * @param end the upper bound of the range of d d m templates (not inclusive) 217 * @return the range of matching d d m templates 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid( 221 java.lang.String uuid, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByUuid(uuid, start, end); 224 } 225 226 /** 227 * Returns an ordered range of all the d d m templates where uuid = ?. 228 * 229 * <p> 230 * 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. 231 * </p> 232 * 233 * @param uuid the uuid 234 * @param start the lower bound of the range of d d m templates 235 * @param end the upper bound of the range of d d m templates (not inclusive) 236 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 237 * @return the ordered range of matching d d m templates 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid( 241 java.lang.String uuid, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 245 } 246 247 /** 248 * Returns the first d d m template in the ordered set where uuid = ?. 249 * 250 * @param uuid the uuid 251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 252 * @return the first matching d d m template 253 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 254 * @throws SystemException if a system exception occurred 255 */ 256 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_First( 257 java.lang.String uuid, 258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 259 throws com.liferay.portal.kernel.exception.SystemException, 260 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 261 return getPersistence().findByUuid_First(uuid, orderByComparator); 262 } 263 264 /** 265 * Returns the first d d m template in the ordered set where uuid = ?. 266 * 267 * @param uuid the uuid 268 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 269 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 270 * @throws SystemException if a system exception occurred 271 */ 272 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_First( 273 java.lang.String uuid, 274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 275 throws com.liferay.portal.kernel.exception.SystemException { 276 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 277 } 278 279 /** 280 * Returns the last d d m template in the ordered set where uuid = ?. 281 * 282 * @param uuid the uuid 283 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 284 * @return the last matching d d m template 285 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 286 * @throws SystemException if a system exception occurred 287 */ 288 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_Last( 289 java.lang.String uuid, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.kernel.exception.SystemException, 292 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 293 return getPersistence().findByUuid_Last(uuid, orderByComparator); 294 } 295 296 /** 297 * Returns the last d d m template in the ordered set where uuid = ?. 298 * 299 * @param uuid the uuid 300 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 301 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_Last( 305 java.lang.String uuid, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException { 308 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 309 } 310 311 /** 312 * Returns the d d m templates before and after the current d d m template in the ordered set where uuid = ?. 313 * 314 * @param templateId the primary key of the current d d m template 315 * @param uuid the uuid 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the previous, current, and next d d m template 318 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByUuid_PrevAndNext( 322 long templateId, java.lang.String uuid, 323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 326 return getPersistence() 327 .findByUuid_PrevAndNext(templateId, uuid, orderByComparator); 328 } 329 330 /** 331 * 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. 332 * 333 * @param uuid the uuid 334 * @param groupId the group ID 335 * @return the matching d d m template 336 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 337 * @throws SystemException if a system exception occurred 338 */ 339 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUUID_G( 340 java.lang.String uuid, long groupId) 341 throws com.liferay.portal.kernel.exception.SystemException, 342 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 343 return getPersistence().findByUUID_G(uuid, groupId); 344 } 345 346 /** 347 * 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. 348 * 349 * @param uuid the uuid 350 * @param groupId the group ID 351 * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found 352 * @throws SystemException if a system exception occurred 353 */ 354 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G( 355 java.lang.String uuid, long groupId) 356 throws com.liferay.portal.kernel.exception.SystemException { 357 return getPersistence().fetchByUUID_G(uuid, groupId); 358 } 359 360 /** 361 * 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. 362 * 363 * @param uuid the uuid 364 * @param groupId the group ID 365 * @param retrieveFromCache whether to use the finder cache 366 * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found 367 * @throws SystemException if a system exception occurred 368 */ 369 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G( 370 java.lang.String uuid, long groupId, boolean retrieveFromCache) 371 throws com.liferay.portal.kernel.exception.SystemException { 372 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 373 } 374 375 /** 376 * Returns all the d d m templates where groupId = ?. 377 * 378 * @param groupId the group ID 379 * @return the matching d d m templates 380 * @throws SystemException if a system exception occurred 381 */ 382 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId( 383 long groupId) 384 throws com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence().findByGroupId(groupId); 386 } 387 388 /** 389 * Returns a range of all the d d m templates where groupId = ?. 390 * 391 * <p> 392 * 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. 393 * </p> 394 * 395 * @param groupId the group ID 396 * @param start the lower bound of the range of d d m templates 397 * @param end the upper bound of the range of d d m templates (not inclusive) 398 * @return the range of matching d d m templates 399 * @throws SystemException if a system exception occurred 400 */ 401 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId( 402 long groupId, int start, int end) 403 throws com.liferay.portal.kernel.exception.SystemException { 404 return getPersistence().findByGroupId(groupId, start, end); 405 } 406 407 /** 408 * Returns an ordered range of all the d d m templates where groupId = ?. 409 * 410 * <p> 411 * 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. 412 * </p> 413 * 414 * @param groupId the group ID 415 * @param start the lower bound of the range of d d m templates 416 * @param end the upper bound of the range of d d m templates (not inclusive) 417 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 418 * @return the ordered range of matching d d m templates 419 * @throws SystemException if a system exception occurred 420 */ 421 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId( 422 long groupId, int start, int end, 423 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 424 throws com.liferay.portal.kernel.exception.SystemException { 425 return getPersistence() 426 .findByGroupId(groupId, start, end, orderByComparator); 427 } 428 429 /** 430 * Returns the first d d m template in the ordered set where groupId = ?. 431 * 432 * @param groupId the group ID 433 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 434 * @return the first matching d d m template 435 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 436 * @throws SystemException if a system exception occurred 437 */ 438 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_First( 439 long groupId, 440 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 441 throws com.liferay.portal.kernel.exception.SystemException, 442 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 443 return getPersistence().findByGroupId_First(groupId, orderByComparator); 444 } 445 446 /** 447 * Returns the first d d m template in the ordered set where groupId = ?. 448 * 449 * @param groupId the group ID 450 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 451 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 452 * @throws SystemException if a system exception occurred 453 */ 454 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByGroupId_First( 455 long groupId, 456 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 457 throws com.liferay.portal.kernel.exception.SystemException { 458 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 459 } 460 461 /** 462 * Returns the last d d m template in the ordered set where groupId = ?. 463 * 464 * @param groupId the group ID 465 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 466 * @return the last matching d d m template 467 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 468 * @throws SystemException if a system exception occurred 469 */ 470 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_Last( 471 long groupId, 472 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 473 throws com.liferay.portal.kernel.exception.SystemException, 474 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 475 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 476 } 477 478 /** 479 * Returns the last d d m template in the ordered set where groupId = ?. 480 * 481 * @param groupId the group ID 482 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 483 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 484 * @throws SystemException if a system exception occurred 485 */ 486 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByGroupId_Last( 487 long groupId, 488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 489 throws com.liferay.portal.kernel.exception.SystemException { 490 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 491 } 492 493 /** 494 * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ?. 495 * 496 * @param templateId the primary key of the current d d m template 497 * @param groupId the group ID 498 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 499 * @return the previous, current, and next d d m template 500 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 501 * @throws SystemException if a system exception occurred 502 */ 503 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByGroupId_PrevAndNext( 504 long templateId, long groupId, 505 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 506 throws com.liferay.portal.kernel.exception.SystemException, 507 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 508 return getPersistence() 509 .findByGroupId_PrevAndNext(templateId, groupId, 510 orderByComparator); 511 } 512 513 /** 514 * Returns all the d d m templates that the user has permission to view where groupId = ?. 515 * 516 * @param groupId the group ID 517 * @return the matching d d m templates that the user has permission to view 518 * @throws SystemException if a system exception occurred 519 */ 520 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId( 521 long groupId) 522 throws com.liferay.portal.kernel.exception.SystemException { 523 return getPersistence().filterFindByGroupId(groupId); 524 } 525 526 /** 527 * Returns a range of all the d d m templates that the user has permission to view where groupId = ?. 528 * 529 * <p> 530 * 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. 531 * </p> 532 * 533 * @param groupId the group ID 534 * @param start the lower bound of the range of d d m templates 535 * @param end the upper bound of the range of d d m templates (not inclusive) 536 * @return the range of matching d d m templates that the user has permission to view 537 * @throws SystemException if a system exception occurred 538 */ 539 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId( 540 long groupId, int start, int end) 541 throws com.liferay.portal.kernel.exception.SystemException { 542 return getPersistence().filterFindByGroupId(groupId, start, end); 543 } 544 545 /** 546 * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ?. 547 * 548 * <p> 549 * 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. 550 * </p> 551 * 552 * @param groupId the group ID 553 * @param start the lower bound of the range of d d m templates 554 * @param end the upper bound of the range of d d m templates (not inclusive) 555 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 556 * @return the ordered range of matching d d m templates that the user has permission to view 557 * @throws SystemException if a system exception occurred 558 */ 559 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId( 560 long groupId, int start, int end, 561 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 562 throws com.liferay.portal.kernel.exception.SystemException { 563 return getPersistence() 564 .filterFindByGroupId(groupId, start, end, orderByComparator); 565 } 566 567 /** 568 * 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 = ?. 569 * 570 * @param templateId the primary key of the current d d m template 571 * @param groupId the group ID 572 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 573 * @return the previous, current, and next d d m template 574 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 575 * @throws SystemException if a system exception occurred 576 */ 577 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByGroupId_PrevAndNext( 578 long templateId, long groupId, 579 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 580 throws com.liferay.portal.kernel.exception.SystemException, 581 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 582 return getPersistence() 583 .filterFindByGroupId_PrevAndNext(templateId, groupId, 584 orderByComparator); 585 } 586 587 /** 588 * Returns all the d d m templates where structureId = ?. 589 * 590 * @param structureId the structure ID 591 * @return the matching d d m templates 592 * @throws SystemException if a system exception occurred 593 */ 594 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByStructureId( 595 long structureId) 596 throws com.liferay.portal.kernel.exception.SystemException { 597 return getPersistence().findByStructureId(structureId); 598 } 599 600 /** 601 * Returns a range of all the d d m templates where structureId = ?. 602 * 603 * <p> 604 * 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. 605 * </p> 606 * 607 * @param structureId the structure ID 608 * @param start the lower bound of the range of d d m templates 609 * @param end the upper bound of the range of d d m templates (not inclusive) 610 * @return the range of matching d d m templates 611 * @throws SystemException if a system exception occurred 612 */ 613 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByStructureId( 614 long structureId, int start, int end) 615 throws com.liferay.portal.kernel.exception.SystemException { 616 return getPersistence().findByStructureId(structureId, start, end); 617 } 618 619 /** 620 * Returns an ordered range of all the d d m templates where structureId = ?. 621 * 622 * <p> 623 * 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. 624 * </p> 625 * 626 * @param structureId the structure ID 627 * @param start the lower bound of the range of d d m templates 628 * @param end the upper bound of the range of d d m templates (not inclusive) 629 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 630 * @return the ordered range of matching d d m templates 631 * @throws SystemException if a system exception occurred 632 */ 633 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByStructureId( 634 long structureId, int start, int end, 635 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 636 throws com.liferay.portal.kernel.exception.SystemException { 637 return getPersistence() 638 .findByStructureId(structureId, start, end, orderByComparator); 639 } 640 641 /** 642 * Returns the first d d m template in the ordered set where structureId = ?. 643 * 644 * @param structureId the structure ID 645 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 646 * @return the first matching d d m template 647 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 648 * @throws SystemException if a system exception occurred 649 */ 650 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByStructureId_First( 651 long structureId, 652 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 653 throws com.liferay.portal.kernel.exception.SystemException, 654 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 655 return getPersistence() 656 .findByStructureId_First(structureId, orderByComparator); 657 } 658 659 /** 660 * Returns the first d d m template in the ordered set where structureId = ?. 661 * 662 * @param structureId the structure ID 663 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 664 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 665 * @throws SystemException if a system exception occurred 666 */ 667 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByStructureId_First( 668 long structureId, 669 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 670 throws com.liferay.portal.kernel.exception.SystemException { 671 return getPersistence() 672 .fetchByStructureId_First(structureId, orderByComparator); 673 } 674 675 /** 676 * Returns the last d d m template in the ordered set where structureId = ?. 677 * 678 * @param structureId the structure ID 679 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 680 * @return the last matching d d m template 681 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 682 * @throws SystemException if a system exception occurred 683 */ 684 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByStructureId_Last( 685 long structureId, 686 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 687 throws com.liferay.portal.kernel.exception.SystemException, 688 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 689 return getPersistence() 690 .findByStructureId_Last(structureId, orderByComparator); 691 } 692 693 /** 694 * Returns the last d d m template in the ordered set where structureId = ?. 695 * 696 * @param structureId the structure ID 697 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 698 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 699 * @throws SystemException if a system exception occurred 700 */ 701 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByStructureId_Last( 702 long structureId, 703 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 704 throws com.liferay.portal.kernel.exception.SystemException { 705 return getPersistence() 706 .fetchByStructureId_Last(structureId, orderByComparator); 707 } 708 709 /** 710 * Returns the d d m templates before and after the current d d m template in the ordered set where structureId = ?. 711 * 712 * @param templateId the primary key of the current d d m template 713 * @param structureId the structure ID 714 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 715 * @return the previous, current, and next d d m template 716 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 717 * @throws SystemException if a system exception occurred 718 */ 719 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByStructureId_PrevAndNext( 720 long templateId, long structureId, 721 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 722 throws com.liferay.portal.kernel.exception.SystemException, 723 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 724 return getPersistence() 725 .findByStructureId_PrevAndNext(templateId, structureId, 726 orderByComparator); 727 } 728 729 /** 730 * Returns all the d d m templates where type = ?. 731 * 732 * @param type the type 733 * @return the matching d d m templates 734 * @throws SystemException if a system exception occurred 735 */ 736 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType( 737 java.lang.String type) 738 throws com.liferay.portal.kernel.exception.SystemException { 739 return getPersistence().findByType(type); 740 } 741 742 /** 743 * Returns a range of all the d d m templates where type = ?. 744 * 745 * <p> 746 * 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. 747 * </p> 748 * 749 * @param type the type 750 * @param start the lower bound of the range of d d m templates 751 * @param end the upper bound of the range of d d m templates (not inclusive) 752 * @return the range of matching d d m templates 753 * @throws SystemException if a system exception occurred 754 */ 755 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType( 756 java.lang.String type, int start, int end) 757 throws com.liferay.portal.kernel.exception.SystemException { 758 return getPersistence().findByType(type, start, end); 759 } 760 761 /** 762 * Returns an ordered range of all the d d m templates where type = ?. 763 * 764 * <p> 765 * 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. 766 * </p> 767 * 768 * @param type the type 769 * @param start the lower bound of the range of d d m templates 770 * @param end the upper bound of the range of d d m templates (not inclusive) 771 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 772 * @return the ordered range of matching d d m templates 773 * @throws SystemException if a system exception occurred 774 */ 775 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType( 776 java.lang.String type, int start, int end, 777 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 778 throws com.liferay.portal.kernel.exception.SystemException { 779 return getPersistence().findByType(type, start, end, orderByComparator); 780 } 781 782 /** 783 * Returns the first d d m template in the ordered set where type = ?. 784 * 785 * @param type the type 786 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 787 * @return the first matching d d m template 788 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 789 * @throws SystemException if a system exception occurred 790 */ 791 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_First( 792 java.lang.String type, 793 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 794 throws com.liferay.portal.kernel.exception.SystemException, 795 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 796 return getPersistence().findByType_First(type, orderByComparator); 797 } 798 799 /** 800 * Returns the first d d m template in the ordered set where type = ?. 801 * 802 * @param type the type 803 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 804 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 805 * @throws SystemException if a system exception occurred 806 */ 807 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByType_First( 808 java.lang.String type, 809 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 810 throws com.liferay.portal.kernel.exception.SystemException { 811 return getPersistence().fetchByType_First(type, orderByComparator); 812 } 813 814 /** 815 * Returns the last d d m template in the ordered set where type = ?. 816 * 817 * @param type the type 818 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 819 * @return the last matching d d m template 820 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 821 * @throws SystemException if a system exception occurred 822 */ 823 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_Last( 824 java.lang.String type, 825 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 826 throws com.liferay.portal.kernel.exception.SystemException, 827 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 828 return getPersistence().findByType_Last(type, orderByComparator); 829 } 830 831 /** 832 * Returns the last d d m template in the ordered set where type = ?. 833 * 834 * @param type the type 835 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 836 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 837 * @throws SystemException if a system exception occurred 838 */ 839 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByType_Last( 840 java.lang.String type, 841 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 842 throws com.liferay.portal.kernel.exception.SystemException { 843 return getPersistence().fetchByType_Last(type, orderByComparator); 844 } 845 846 /** 847 * Returns the d d m templates before and after the current d d m template in the ordered set where type = ?. 848 * 849 * @param templateId the primary key of the current d d m template 850 * @param type the type 851 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 852 * @return the previous, current, and next d d m template 853 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 854 * @throws SystemException if a system exception occurred 855 */ 856 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByType_PrevAndNext( 857 long templateId, java.lang.String type, 858 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 859 throws com.liferay.portal.kernel.exception.SystemException, 860 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 861 return getPersistence() 862 .findByType_PrevAndNext(templateId, type, orderByComparator); 863 } 864 865 /** 866 * Returns all the d d m templates where language = ?. 867 * 868 * @param language the language 869 * @return the matching d d m templates 870 * @throws SystemException if a system exception occurred 871 */ 872 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage( 873 java.lang.String language) 874 throws com.liferay.portal.kernel.exception.SystemException { 875 return getPersistence().findByLanguage(language); 876 } 877 878 /** 879 * Returns a range of all the d d m templates where language = ?. 880 * 881 * <p> 882 * 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. 883 * </p> 884 * 885 * @param language the language 886 * @param start the lower bound of the range of d d m templates 887 * @param end the upper bound of the range of d d m templates (not inclusive) 888 * @return the range of matching d d m templates 889 * @throws SystemException if a system exception occurred 890 */ 891 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage( 892 java.lang.String language, int start, int end) 893 throws com.liferay.portal.kernel.exception.SystemException { 894 return getPersistence().findByLanguage(language, start, end); 895 } 896 897 /** 898 * Returns an ordered range of all the d d m templates where language = ?. 899 * 900 * <p> 901 * 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. 902 * </p> 903 * 904 * @param language the language 905 * @param start the lower bound of the range of d d m templates 906 * @param end the upper bound of the range of d d m templates (not inclusive) 907 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 908 * @return the ordered range of matching d d m templates 909 * @throws SystemException if a system exception occurred 910 */ 911 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage( 912 java.lang.String language, int start, int end, 913 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 914 throws com.liferay.portal.kernel.exception.SystemException { 915 return getPersistence() 916 .findByLanguage(language, start, end, orderByComparator); 917 } 918 919 /** 920 * Returns the first d d m template in the ordered set where language = ?. 921 * 922 * @param language the language 923 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 924 * @return the first matching d d m template 925 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 926 * @throws SystemException if a system exception occurred 927 */ 928 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_First( 929 java.lang.String language, 930 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 931 throws com.liferay.portal.kernel.exception.SystemException, 932 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 933 return getPersistence().findByLanguage_First(language, orderByComparator); 934 } 935 936 /** 937 * Returns the first d d m template in the ordered set where language = ?. 938 * 939 * @param language the language 940 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 941 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 942 * @throws SystemException if a system exception occurred 943 */ 944 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByLanguage_First( 945 java.lang.String language, 946 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 947 throws com.liferay.portal.kernel.exception.SystemException { 948 return getPersistence() 949 .fetchByLanguage_First(language, orderByComparator); 950 } 951 952 /** 953 * Returns the last d d m template in the ordered set where language = ?. 954 * 955 * @param language the language 956 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 957 * @return the last matching d d m template 958 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 959 * @throws SystemException if a system exception occurred 960 */ 961 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_Last( 962 java.lang.String language, 963 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 964 throws com.liferay.portal.kernel.exception.SystemException, 965 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 966 return getPersistence().findByLanguage_Last(language, orderByComparator); 967 } 968 969 /** 970 * Returns the last d d m template in the ordered set where language = ?. 971 * 972 * @param language the language 973 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 974 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 975 * @throws SystemException if a system exception occurred 976 */ 977 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByLanguage_Last( 978 java.lang.String language, 979 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 980 throws com.liferay.portal.kernel.exception.SystemException { 981 return getPersistence().fetchByLanguage_Last(language, orderByComparator); 982 } 983 984 /** 985 * Returns the d d m templates before and after the current d d m template in the ordered set where language = ?. 986 * 987 * @param templateId the primary key of the current d d m template 988 * @param language the language 989 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 990 * @return the previous, current, and next d d m template 991 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 992 * @throws SystemException if a system exception occurred 993 */ 994 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByLanguage_PrevAndNext( 995 long templateId, java.lang.String language, 996 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 997 throws com.liferay.portal.kernel.exception.SystemException, 998 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 999 return getPersistence() 1000 .findByLanguage_PrevAndNext(templateId, language, 1001 orderByComparator); 1002 } 1003 1004 /** 1005 * Returns all the d d m templates where structureId = ? and type = ?. 1006 * 1007 * @param structureId the structure ID 1008 * @param type the type 1009 * @return the matching d d m templates 1010 * @throws SystemException if a system exception occurred 1011 */ 1012 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T( 1013 long structureId, java.lang.String type) 1014 throws com.liferay.portal.kernel.exception.SystemException { 1015 return getPersistence().findByS_T(structureId, type); 1016 } 1017 1018 /** 1019 * Returns a range of all the d d m templates where structureId = ? and type = ?. 1020 * 1021 * <p> 1022 * 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. 1023 * </p> 1024 * 1025 * @param structureId the structure ID 1026 * @param type the type 1027 * @param start the lower bound of the range of d d m templates 1028 * @param end the upper bound of the range of d d m templates (not inclusive) 1029 * @return the range of matching d d m templates 1030 * @throws SystemException if a system exception occurred 1031 */ 1032 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T( 1033 long structureId, java.lang.String type, int start, int end) 1034 throws com.liferay.portal.kernel.exception.SystemException { 1035 return getPersistence().findByS_T(structureId, type, start, end); 1036 } 1037 1038 /** 1039 * Returns an ordered range of all the d d m templates where structureId = ? and type = ?. 1040 * 1041 * <p> 1042 * 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. 1043 * </p> 1044 * 1045 * @param structureId the structure ID 1046 * @param type the type 1047 * @param start the lower bound of the range of d d m templates 1048 * @param end the upper bound of the range of d d m templates (not inclusive) 1049 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1050 * @return the ordered range of matching d d m templates 1051 * @throws SystemException if a system exception occurred 1052 */ 1053 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T( 1054 long structureId, java.lang.String type, int start, int end, 1055 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1056 throws com.liferay.portal.kernel.exception.SystemException { 1057 return getPersistence() 1058 .findByS_T(structureId, type, start, end, orderByComparator); 1059 } 1060 1061 /** 1062 * Returns the first d d m template in the ordered set where structureId = ? and type = ?. 1063 * 1064 * @param structureId the structure ID 1065 * @param type the type 1066 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1067 * @return the first matching d d m template 1068 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 1069 * @throws SystemException if a system exception occurred 1070 */ 1071 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_First( 1072 long structureId, java.lang.String type, 1073 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1074 throws com.liferay.portal.kernel.exception.SystemException, 1075 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 1076 return getPersistence() 1077 .findByS_T_First(structureId, type, orderByComparator); 1078 } 1079 1080 /** 1081 * Returns the first d d m template in the ordered set where structureId = ? and type = ?. 1082 * 1083 * @param structureId the structure ID 1084 * @param type the type 1085 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1086 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 1087 * @throws SystemException if a system exception occurred 1088 */ 1089 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByS_T_First( 1090 long structureId, java.lang.String type, 1091 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1092 throws com.liferay.portal.kernel.exception.SystemException { 1093 return getPersistence() 1094 .fetchByS_T_First(structureId, type, orderByComparator); 1095 } 1096 1097 /** 1098 * Returns the last d d m template in the ordered set where structureId = ? and type = ?. 1099 * 1100 * @param structureId the structure ID 1101 * @param type the type 1102 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1103 * @return the last matching d d m template 1104 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 1105 * @throws SystemException if a system exception occurred 1106 */ 1107 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_Last( 1108 long structureId, java.lang.String type, 1109 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1110 throws com.liferay.portal.kernel.exception.SystemException, 1111 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 1112 return getPersistence() 1113 .findByS_T_Last(structureId, type, orderByComparator); 1114 } 1115 1116 /** 1117 * Returns the last d d m template in the ordered set where structureId = ? and type = ?. 1118 * 1119 * @param structureId the structure ID 1120 * @param type the type 1121 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1122 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 1123 * @throws SystemException if a system exception occurred 1124 */ 1125 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByS_T_Last( 1126 long structureId, java.lang.String type, 1127 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1128 throws com.liferay.portal.kernel.exception.SystemException { 1129 return getPersistence() 1130 .fetchByS_T_Last(structureId, type, orderByComparator); 1131 } 1132 1133 /** 1134 * Returns the d d m templates before and after the current d d m template in the ordered set where structureId = ? and type = ?. 1135 * 1136 * @param templateId the primary key of the current d d m template 1137 * @param structureId the structure ID 1138 * @param type the type 1139 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1140 * @return the previous, current, and next d d m template 1141 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 1142 * @throws SystemException if a system exception occurred 1143 */ 1144 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByS_T_PrevAndNext( 1145 long templateId, long structureId, java.lang.String type, 1146 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1147 throws com.liferay.portal.kernel.exception.SystemException, 1148 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 1149 return getPersistence() 1150 .findByS_T_PrevAndNext(templateId, structureId, type, 1151 orderByComparator); 1152 } 1153 1154 /** 1155 * Returns all the d d m templates where structureId = ? and type = ? and mode = ?. 1156 * 1157 * @param structureId the structure ID 1158 * @param type the type 1159 * @param mode the mode 1160 * @return the matching d d m templates 1161 * @throws SystemException if a system exception occurred 1162 */ 1163 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T_M( 1164 long structureId, java.lang.String type, java.lang.String mode) 1165 throws com.liferay.portal.kernel.exception.SystemException { 1166 return getPersistence().findByS_T_M(structureId, type, mode); 1167 } 1168 1169 /** 1170 * Returns a range of all the d d m templates where structureId = ? and type = ? and mode = ?. 1171 * 1172 * <p> 1173 * 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. 1174 * </p> 1175 * 1176 * @param structureId the structure ID 1177 * @param type the type 1178 * @param mode the mode 1179 * @param start the lower bound of the range of d d m templates 1180 * @param end the upper bound of the range of d d m templates (not inclusive) 1181 * @return the range of matching d d m templates 1182 * @throws SystemException if a system exception occurred 1183 */ 1184 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T_M( 1185 long structureId, java.lang.String type, java.lang.String mode, 1186 int start, int end) 1187 throws com.liferay.portal.kernel.exception.SystemException { 1188 return getPersistence().findByS_T_M(structureId, type, mode, start, end); 1189 } 1190 1191 /** 1192 * Returns an ordered range of all the d d m templates where structureId = ? and type = ? and mode = ?. 1193 * 1194 * <p> 1195 * 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. 1196 * </p> 1197 * 1198 * @param structureId the structure ID 1199 * @param type the type 1200 * @param mode the mode 1201 * @param start the lower bound of the range of d d m templates 1202 * @param end the upper bound of the range of d d m templates (not inclusive) 1203 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1204 * @return the ordered range of matching d d m templates 1205 * @throws SystemException if a system exception occurred 1206 */ 1207 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T_M( 1208 long structureId, java.lang.String type, java.lang.String mode, 1209 int start, int end, 1210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1211 throws com.liferay.portal.kernel.exception.SystemException { 1212 return getPersistence() 1213 .findByS_T_M(structureId, type, mode, start, end, 1214 orderByComparator); 1215 } 1216 1217 /** 1218 * Returns the first d d m template in the ordered set where structureId = ? and type = ? and mode = ?. 1219 * 1220 * @param structureId the structure ID 1221 * @param type the type 1222 * @param mode the mode 1223 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1224 * @return the first matching d d m template 1225 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 1226 * @throws SystemException if a system exception occurred 1227 */ 1228 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_M_First( 1229 long structureId, java.lang.String type, java.lang.String mode, 1230 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1231 throws com.liferay.portal.kernel.exception.SystemException, 1232 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 1233 return getPersistence() 1234 .findByS_T_M_First(structureId, type, mode, orderByComparator); 1235 } 1236 1237 /** 1238 * Returns the first d d m template in the ordered set where structureId = ? and type = ? and mode = ?. 1239 * 1240 * @param structureId the structure ID 1241 * @param type the type 1242 * @param mode the mode 1243 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1244 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 1245 * @throws SystemException if a system exception occurred 1246 */ 1247 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByS_T_M_First( 1248 long structureId, java.lang.String type, java.lang.String mode, 1249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1250 throws com.liferay.portal.kernel.exception.SystemException { 1251 return getPersistence() 1252 .fetchByS_T_M_First(structureId, type, mode, 1253 orderByComparator); 1254 } 1255 1256 /** 1257 * Returns the last d d m template in the ordered set where structureId = ? and type = ? and mode = ?. 1258 * 1259 * @param structureId the structure ID 1260 * @param type the type 1261 * @param mode the mode 1262 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1263 * @return the last matching d d m template 1264 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 1265 * @throws SystemException if a system exception occurred 1266 */ 1267 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_M_Last( 1268 long structureId, java.lang.String type, java.lang.String mode, 1269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1270 throws com.liferay.portal.kernel.exception.SystemException, 1271 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 1272 return getPersistence() 1273 .findByS_T_M_Last(structureId, type, mode, orderByComparator); 1274 } 1275 1276 /** 1277 * Returns the last d d m template in the ordered set where structureId = ? and type = ? and mode = ?. 1278 * 1279 * @param structureId the structure ID 1280 * @param type the type 1281 * @param mode the mode 1282 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1283 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 1284 * @throws SystemException if a system exception occurred 1285 */ 1286 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByS_T_M_Last( 1287 long structureId, java.lang.String type, java.lang.String mode, 1288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1289 throws com.liferay.portal.kernel.exception.SystemException { 1290 return getPersistence() 1291 .fetchByS_T_M_Last(structureId, type, mode, orderByComparator); 1292 } 1293 1294 /** 1295 * 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 = ?. 1296 * 1297 * @param templateId the primary key of the current d d m template 1298 * @param structureId the structure ID 1299 * @param type the type 1300 * @param mode the mode 1301 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1302 * @return the previous, current, and next d d m template 1303 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 1304 * @throws SystemException if a system exception occurred 1305 */ 1306 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByS_T_M_PrevAndNext( 1307 long templateId, long structureId, java.lang.String type, 1308 java.lang.String mode, 1309 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1310 throws com.liferay.portal.kernel.exception.SystemException, 1311 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 1312 return getPersistence() 1313 .findByS_T_M_PrevAndNext(templateId, structureId, type, 1314 mode, orderByComparator); 1315 } 1316 1317 /** 1318 * Returns all the d d m templates. 1319 * 1320 * @return the d d m templates 1321 * @throws SystemException if a system exception occurred 1322 */ 1323 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll() 1324 throws com.liferay.portal.kernel.exception.SystemException { 1325 return getPersistence().findAll(); 1326 } 1327 1328 /** 1329 * Returns a range of all the d d m templates. 1330 * 1331 * <p> 1332 * 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. 1333 * </p> 1334 * 1335 * @param start the lower bound of the range of d d m templates 1336 * @param end the upper bound of the range of d d m templates (not inclusive) 1337 * @return the range of d d m templates 1338 * @throws SystemException if a system exception occurred 1339 */ 1340 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll( 1341 int start, int end) 1342 throws com.liferay.portal.kernel.exception.SystemException { 1343 return getPersistence().findAll(start, end); 1344 } 1345 1346 /** 1347 * Returns an ordered range of all the d d m templates. 1348 * 1349 * <p> 1350 * 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. 1351 * </p> 1352 * 1353 * @param start the lower bound of the range of d d m templates 1354 * @param end the upper bound of the range of d d m templates (not inclusive) 1355 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1356 * @return the ordered range of d d m templates 1357 * @throws SystemException if a system exception occurred 1358 */ 1359 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll( 1360 int start, int end, 1361 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1362 throws com.liferay.portal.kernel.exception.SystemException { 1363 return getPersistence().findAll(start, end, orderByComparator); 1364 } 1365 1366 /** 1367 * Removes all the d d m templates where uuid = ? from the database. 1368 * 1369 * @param uuid the uuid 1370 * @throws SystemException if a system exception occurred 1371 */ 1372 public static void removeByUuid(java.lang.String uuid) 1373 throws com.liferay.portal.kernel.exception.SystemException { 1374 getPersistence().removeByUuid(uuid); 1375 } 1376 1377 /** 1378 * Removes the d d m template where uuid = ? and groupId = ? from the database. 1379 * 1380 * @param uuid the uuid 1381 * @param groupId the group ID 1382 * @return the d d m template that was removed 1383 * @throws SystemException if a system exception occurred 1384 */ 1385 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeByUUID_G( 1386 java.lang.String uuid, long groupId) 1387 throws com.liferay.portal.kernel.exception.SystemException, 1388 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException { 1389 return getPersistence().removeByUUID_G(uuid, groupId); 1390 } 1391 1392 /** 1393 * Removes all the d d m templates where groupId = ? from the database. 1394 * 1395 * @param groupId the group ID 1396 * @throws SystemException if a system exception occurred 1397 */ 1398 public static void removeByGroupId(long groupId) 1399 throws com.liferay.portal.kernel.exception.SystemException { 1400 getPersistence().removeByGroupId(groupId); 1401 } 1402 1403 /** 1404 * Removes all the d d m templates where structureId = ? from the database. 1405 * 1406 * @param structureId the structure ID 1407 * @throws SystemException if a system exception occurred 1408 */ 1409 public static void removeByStructureId(long structureId) 1410 throws com.liferay.portal.kernel.exception.SystemException { 1411 getPersistence().removeByStructureId(structureId); 1412 } 1413 1414 /** 1415 * Removes all the d d m templates where type = ? from the database. 1416 * 1417 * @param type the type 1418 * @throws SystemException if a system exception occurred 1419 */ 1420 public static void removeByType(java.lang.String type) 1421 throws com.liferay.portal.kernel.exception.SystemException { 1422 getPersistence().removeByType(type); 1423 } 1424 1425 /** 1426 * Removes all the d d m templates where language = ? from the database. 1427 * 1428 * @param language the language 1429 * @throws SystemException if a system exception occurred 1430 */ 1431 public static void removeByLanguage(java.lang.String language) 1432 throws com.liferay.portal.kernel.exception.SystemException { 1433 getPersistence().removeByLanguage(language); 1434 } 1435 1436 /** 1437 * Removes all the d d m templates where structureId = ? and type = ? from the database. 1438 * 1439 * @param structureId the structure ID 1440 * @param type the type 1441 * @throws SystemException if a system exception occurred 1442 */ 1443 public static void removeByS_T(long structureId, java.lang.String type) 1444 throws com.liferay.portal.kernel.exception.SystemException { 1445 getPersistence().removeByS_T(structureId, type); 1446 } 1447 1448 /** 1449 * Removes all the d d m templates where structureId = ? and type = ? and mode = ? from the database. 1450 * 1451 * @param structureId the structure ID 1452 * @param type the type 1453 * @param mode the mode 1454 * @throws SystemException if a system exception occurred 1455 */ 1456 public static void removeByS_T_M(long structureId, java.lang.String type, 1457 java.lang.String mode) 1458 throws com.liferay.portal.kernel.exception.SystemException { 1459 getPersistence().removeByS_T_M(structureId, type, mode); 1460 } 1461 1462 /** 1463 * Removes all the d d m templates from the database. 1464 * 1465 * @throws SystemException if a system exception occurred 1466 */ 1467 public static void removeAll() 1468 throws com.liferay.portal.kernel.exception.SystemException { 1469 getPersistence().removeAll(); 1470 } 1471 1472 /** 1473 * Returns the number of d d m templates where uuid = ?. 1474 * 1475 * @param uuid the uuid 1476 * @return the number of matching d d m templates 1477 * @throws SystemException if a system exception occurred 1478 */ 1479 public static int countByUuid(java.lang.String uuid) 1480 throws com.liferay.portal.kernel.exception.SystemException { 1481 return getPersistence().countByUuid(uuid); 1482 } 1483 1484 /** 1485 * Returns the number of d d m templates where uuid = ? and groupId = ?. 1486 * 1487 * @param uuid the uuid 1488 * @param groupId the group ID 1489 * @return the number of matching d d m templates 1490 * @throws SystemException if a system exception occurred 1491 */ 1492 public static int countByUUID_G(java.lang.String uuid, long groupId) 1493 throws com.liferay.portal.kernel.exception.SystemException { 1494 return getPersistence().countByUUID_G(uuid, groupId); 1495 } 1496 1497 /** 1498 * Returns the number of d d m templates where groupId = ?. 1499 * 1500 * @param groupId the group ID 1501 * @return the number of matching d d m templates 1502 * @throws SystemException if a system exception occurred 1503 */ 1504 public static int countByGroupId(long groupId) 1505 throws com.liferay.portal.kernel.exception.SystemException { 1506 return getPersistence().countByGroupId(groupId); 1507 } 1508 1509 /** 1510 * Returns the number of d d m templates that the user has permission to view where groupId = ?. 1511 * 1512 * @param groupId the group ID 1513 * @return the number of matching d d m templates that the user has permission to view 1514 * @throws SystemException if a system exception occurred 1515 */ 1516 public static int filterCountByGroupId(long groupId) 1517 throws com.liferay.portal.kernel.exception.SystemException { 1518 return getPersistence().filterCountByGroupId(groupId); 1519 } 1520 1521 /** 1522 * Returns the number of d d m templates where structureId = ?. 1523 * 1524 * @param structureId the structure ID 1525 * @return the number of matching d d m templates 1526 * @throws SystemException if a system exception occurred 1527 */ 1528 public static int countByStructureId(long structureId) 1529 throws com.liferay.portal.kernel.exception.SystemException { 1530 return getPersistence().countByStructureId(structureId); 1531 } 1532 1533 /** 1534 * Returns the number of d d m templates where type = ?. 1535 * 1536 * @param type the type 1537 * @return the number of matching d d m templates 1538 * @throws SystemException if a system exception occurred 1539 */ 1540 public static int countByType(java.lang.String type) 1541 throws com.liferay.portal.kernel.exception.SystemException { 1542 return getPersistence().countByType(type); 1543 } 1544 1545 /** 1546 * Returns the number of d d m templates where language = ?. 1547 * 1548 * @param language the language 1549 * @return the number of matching d d m templates 1550 * @throws SystemException if a system exception occurred 1551 */ 1552 public static int countByLanguage(java.lang.String language) 1553 throws com.liferay.portal.kernel.exception.SystemException { 1554 return getPersistence().countByLanguage(language); 1555 } 1556 1557 /** 1558 * Returns the number of d d m templates where structureId = ? and type = ?. 1559 * 1560 * @param structureId the structure ID 1561 * @param type the type 1562 * @return the number of matching d d m templates 1563 * @throws SystemException if a system exception occurred 1564 */ 1565 public static int countByS_T(long structureId, java.lang.String type) 1566 throws com.liferay.portal.kernel.exception.SystemException { 1567 return getPersistence().countByS_T(structureId, type); 1568 } 1569 1570 /** 1571 * Returns the number of d d m templates where structureId = ? and type = ? and mode = ?. 1572 * 1573 * @param structureId the structure ID 1574 * @param type the type 1575 * @param mode the mode 1576 * @return the number of matching d d m templates 1577 * @throws SystemException if a system exception occurred 1578 */ 1579 public static int countByS_T_M(long structureId, java.lang.String type, 1580 java.lang.String mode) 1581 throws com.liferay.portal.kernel.exception.SystemException { 1582 return getPersistence().countByS_T_M(structureId, type, mode); 1583 } 1584 1585 /** 1586 * Returns the number of d d m templates. 1587 * 1588 * @return the number of d d m templates 1589 * @throws SystemException if a system exception occurred 1590 */ 1591 public static int countAll() 1592 throws com.liferay.portal.kernel.exception.SystemException { 1593 return getPersistence().countAll(); 1594 } 1595 1596 public static DDMTemplatePersistence getPersistence() { 1597 if (_persistence == null) { 1598 _persistence = (DDMTemplatePersistence)PortalBeanLocatorUtil.locate(DDMTemplatePersistence.class.getName()); 1599 1600 ReferenceRegistry.registerReference(DDMTemplateUtil.class, 1601 "_persistence"); 1602 } 1603 1604 return _persistence; 1605 } 1606 1607 /** 1608 * @deprecated 1609 */ 1610 public void setPersistence(DDMTemplatePersistence persistence) { 1611 } 1612 1613 private static DDMTemplatePersistence _persistence; 1614 }