001 /** 002 * Copyright (c) 2000-2012 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.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.dynamicdatamapping.model.DDMTemplate; 020 021 /** 022 * The persistence interface for the d d m template service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see DDMTemplatePersistenceImpl 030 * @see DDMTemplateUtil 031 * @generated 032 */ 033 public interface DDMTemplatePersistence extends BasePersistence<DDMTemplate> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link DDMTemplateUtil} to access the d d m template persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the d d m template in the entity cache if it is enabled. 042 * 043 * @param ddmTemplate the d d m template 044 */ 045 public void cacheResult( 046 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate); 047 048 /** 049 * Caches the d d m templates in the entity cache if it is enabled. 050 * 051 * @param ddmTemplates the d d m templates 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> ddmTemplates); 055 056 /** 057 * Creates a new d d m template with the primary key. Does not add the d d m template to the database. 058 * 059 * @param templateId the primary key for the new d d m template 060 * @return the new d d m template 061 */ 062 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate create( 063 long templateId); 064 065 /** 066 * Removes the d d m template with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param templateId the primary key of the d d m template 069 * @return the d d m template that was removed 070 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate remove( 074 long templateId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 077 078 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateImpl( 079 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate, 080 boolean merge) 081 throws com.liferay.portal.kernel.exception.SystemException; 082 083 /** 084 * 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. 085 * 086 * @param templateId the primary key of the d d m template 087 * @return the d d m template 088 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 089 * @throws SystemException if a system exception occurred 090 */ 091 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByPrimaryKey( 092 long templateId) 093 throws com.liferay.portal.kernel.exception.SystemException, 094 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 095 096 /** 097 * Returns the d d m template with the primary key or returns <code>null</code> if it could not be found. 098 * 099 * @param templateId the primary key of the d d m template 100 * @return the d d m template, or <code>null</code> if a d d m template with the primary key could not be found 101 * @throws SystemException if a system exception occurred 102 */ 103 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByPrimaryKey( 104 long templateId) 105 throws com.liferay.portal.kernel.exception.SystemException; 106 107 /** 108 * Returns all the d d m templates where uuid = ?. 109 * 110 * @param uuid the uuid 111 * @return the matching d d m templates 112 * @throws SystemException if a system exception occurred 113 */ 114 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid( 115 java.lang.String uuid) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns a range of all the d d m templates where uuid = ?. 120 * 121 * <p> 122 * 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. 123 * </p> 124 * 125 * @param uuid the uuid 126 * @param start the lower bound of the range of d d m templates 127 * @param end the upper bound of the range of d d m templates (not inclusive) 128 * @return the range of matching d d m templates 129 * @throws SystemException if a system exception occurred 130 */ 131 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid( 132 java.lang.String uuid, int start, int end) 133 throws com.liferay.portal.kernel.exception.SystemException; 134 135 /** 136 * Returns an ordered range of all the d d m templates where uuid = ?. 137 * 138 * <p> 139 * 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. 140 * </p> 141 * 142 * @param uuid the uuid 143 * @param start the lower bound of the range of d d m templates 144 * @param end the upper bound of the range of d d m templates (not inclusive) 145 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 146 * @return the ordered range of matching d d m templates 147 * @throws SystemException if a system exception occurred 148 */ 149 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid( 150 java.lang.String uuid, int start, int end, 151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 152 throws com.liferay.portal.kernel.exception.SystemException; 153 154 /** 155 * Returns the first d d m template in the ordered set where uuid = ?. 156 * 157 * <p> 158 * 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. 159 * </p> 160 * 161 * @param uuid the uuid 162 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 163 * @return the first matching d d m template 164 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 165 * @throws SystemException if a system exception occurred 166 */ 167 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_First( 168 java.lang.String uuid, 169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 170 throws com.liferay.portal.kernel.exception.SystemException, 171 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 172 173 /** 174 * Returns the last d d m template in the ordered set where uuid = ?. 175 * 176 * <p> 177 * 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. 178 * </p> 179 * 180 * @param uuid the uuid 181 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 182 * @return the last matching d d m template 183 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 184 * @throws SystemException if a system exception occurred 185 */ 186 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_Last( 187 java.lang.String uuid, 188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 189 throws com.liferay.portal.kernel.exception.SystemException, 190 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 191 192 /** 193 * Returns the d d m templates before and after the current d d m template in the ordered set where uuid = ?. 194 * 195 * <p> 196 * 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. 197 * </p> 198 * 199 * @param templateId the primary key of the current d d m template 200 * @param uuid the uuid 201 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 202 * @return the previous, current, and next d d m template 203 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 204 * @throws SystemException if a system exception occurred 205 */ 206 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByUuid_PrevAndNext( 207 long templateId, java.lang.String uuid, 208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 209 throws com.liferay.portal.kernel.exception.SystemException, 210 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 211 212 /** 213 * 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. 214 * 215 * @param uuid the uuid 216 * @param groupId the group ID 217 * @return the matching d d m template 218 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 219 * @throws SystemException if a system exception occurred 220 */ 221 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUUID_G( 222 java.lang.String uuid, long groupId) 223 throws com.liferay.portal.kernel.exception.SystemException, 224 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 225 226 /** 227 * 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. 228 * 229 * @param uuid the uuid 230 * @param groupId the group ID 231 * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found 232 * @throws SystemException if a system exception occurred 233 */ 234 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G( 235 java.lang.String uuid, long groupId) 236 throws com.liferay.portal.kernel.exception.SystemException; 237 238 /** 239 * 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. 240 * 241 * @param uuid the uuid 242 * @param groupId the group ID 243 * @param retrieveFromCache whether to use the finder cache 244 * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found 245 * @throws SystemException if a system exception occurred 246 */ 247 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G( 248 java.lang.String uuid, long groupId, boolean retrieveFromCache) 249 throws com.liferay.portal.kernel.exception.SystemException; 250 251 /** 252 * Returns all the d d m templates where groupId = ?. 253 * 254 * @param groupId the group ID 255 * @return the matching d d m templates 256 * @throws SystemException if a system exception occurred 257 */ 258 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId( 259 long groupId) 260 throws com.liferay.portal.kernel.exception.SystemException; 261 262 /** 263 * Returns a range of all the d d m templates where groupId = ?. 264 * 265 * <p> 266 * 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. 267 * </p> 268 * 269 * @param groupId the group ID 270 * @param start the lower bound of the range of d d m templates 271 * @param end the upper bound of the range of d d m templates (not inclusive) 272 * @return the range of matching d d m templates 273 * @throws SystemException if a system exception occurred 274 */ 275 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId( 276 long groupId, int start, int end) 277 throws com.liferay.portal.kernel.exception.SystemException; 278 279 /** 280 * Returns an ordered range of all the d d m templates where groupId = ?. 281 * 282 * <p> 283 * 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. 284 * </p> 285 * 286 * @param groupId the group ID 287 * @param start the lower bound of the range of d d m templates 288 * @param end the upper bound of the range of d d m templates (not inclusive) 289 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 290 * @return the ordered range of matching d d m templates 291 * @throws SystemException if a system exception occurred 292 */ 293 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId( 294 long groupId, int start, int end, 295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 296 throws com.liferay.portal.kernel.exception.SystemException; 297 298 /** 299 * Returns the first d d m template in the ordered set where groupId = ?. 300 * 301 * <p> 302 * 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. 303 * </p> 304 * 305 * @param groupId the group ID 306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 307 * @return the first matching d d m template 308 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_First( 312 long groupId, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.kernel.exception.SystemException, 315 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 316 317 /** 318 * Returns the last d d m template in the ordered set where groupId = ?. 319 * 320 * <p> 321 * 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. 322 * </p> 323 * 324 * @param groupId the group ID 325 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 326 * @return the last matching d d m template 327 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 328 * @throws SystemException if a system exception occurred 329 */ 330 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_Last( 331 long groupId, 332 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 333 throws com.liferay.portal.kernel.exception.SystemException, 334 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 335 336 /** 337 * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ?. 338 * 339 * <p> 340 * 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. 341 * </p> 342 * 343 * @param templateId the primary key of the current d d m template 344 * @param groupId the group ID 345 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 346 * @return the previous, current, and next d d m template 347 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 348 * @throws SystemException if a system exception occurred 349 */ 350 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByGroupId_PrevAndNext( 351 long templateId, long groupId, 352 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 353 throws com.liferay.portal.kernel.exception.SystemException, 354 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 355 356 /** 357 * Returns all the d d m templates that the user has permission to view where groupId = ?. 358 * 359 * @param groupId the group ID 360 * @return the matching d d m templates that the user has permission to view 361 * @throws SystemException if a system exception occurred 362 */ 363 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId( 364 long groupId) 365 throws com.liferay.portal.kernel.exception.SystemException; 366 367 /** 368 * Returns a range of all the d d m templates that the user has permission to view where groupId = ?. 369 * 370 * <p> 371 * 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. 372 * </p> 373 * 374 * @param groupId the group ID 375 * @param start the lower bound of the range of d d m templates 376 * @param end the upper bound of the range of d d m templates (not inclusive) 377 * @return the range of matching d d m templates that the user has permission to view 378 * @throws SystemException if a system exception occurred 379 */ 380 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId( 381 long groupId, int start, int end) 382 throws com.liferay.portal.kernel.exception.SystemException; 383 384 /** 385 * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ?. 386 * 387 * <p> 388 * 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. 389 * </p> 390 * 391 * @param groupId the group ID 392 * @param start the lower bound of the range of d d m templates 393 * @param end the upper bound of the range of d d m templates (not inclusive) 394 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 395 * @return the ordered range of matching d d m templates that the user has permission to view 396 * @throws SystemException if a system exception occurred 397 */ 398 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId( 399 long groupId, int start, int end, 400 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 401 throws com.liferay.portal.kernel.exception.SystemException; 402 403 /** 404 * 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 = ?. 405 * 406 * @param templateId the primary key of the current d d m template 407 * @param groupId the group ID 408 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 409 * @return the previous, current, and next d d m template 410 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 411 * @throws SystemException if a system exception occurred 412 */ 413 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByGroupId_PrevAndNext( 414 long templateId, long groupId, 415 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 416 throws com.liferay.portal.kernel.exception.SystemException, 417 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 418 419 /** 420 * Returns all the d d m templates where structureId = ?. 421 * 422 * @param structureId the structure ID 423 * @return the matching d d m templates 424 * @throws SystemException if a system exception occurred 425 */ 426 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByStructureId( 427 long structureId) 428 throws com.liferay.portal.kernel.exception.SystemException; 429 430 /** 431 * Returns a range of all the d d m templates where structureId = ?. 432 * 433 * <p> 434 * 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. 435 * </p> 436 * 437 * @param structureId the structure ID 438 * @param start the lower bound of the range of d d m templates 439 * @param end the upper bound of the range of d d m templates (not inclusive) 440 * @return the range of matching d d m templates 441 * @throws SystemException if a system exception occurred 442 */ 443 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByStructureId( 444 long structureId, int start, int end) 445 throws com.liferay.portal.kernel.exception.SystemException; 446 447 /** 448 * Returns an ordered range of all the d d m templates where structureId = ?. 449 * 450 * <p> 451 * 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. 452 * </p> 453 * 454 * @param structureId the structure ID 455 * @param start the lower bound of the range of d d m templates 456 * @param end the upper bound of the range of d d m templates (not inclusive) 457 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 458 * @return the ordered range of matching d d m templates 459 * @throws SystemException if a system exception occurred 460 */ 461 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByStructureId( 462 long structureId, int start, int end, 463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 464 throws com.liferay.portal.kernel.exception.SystemException; 465 466 /** 467 * Returns the first d d m template in the ordered set where structureId = ?. 468 * 469 * <p> 470 * 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. 471 * </p> 472 * 473 * @param structureId the structure ID 474 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 475 * @return the first matching d d m template 476 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 477 * @throws SystemException if a system exception occurred 478 */ 479 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByStructureId_First( 480 long structureId, 481 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 482 throws com.liferay.portal.kernel.exception.SystemException, 483 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 484 485 /** 486 * Returns the last d d m template in the ordered set where structureId = ?. 487 * 488 * <p> 489 * 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. 490 * </p> 491 * 492 * @param structureId the structure ID 493 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 494 * @return the last matching d d m template 495 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 496 * @throws SystemException if a system exception occurred 497 */ 498 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByStructureId_Last( 499 long structureId, 500 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 501 throws com.liferay.portal.kernel.exception.SystemException, 502 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 503 504 /** 505 * Returns the d d m templates before and after the current d d m template in the ordered set where structureId = ?. 506 * 507 * <p> 508 * 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. 509 * </p> 510 * 511 * @param templateId the primary key of the current d d m template 512 * @param structureId the structure ID 513 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 514 * @return the previous, current, and next d d m template 515 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 516 * @throws SystemException if a system exception occurred 517 */ 518 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByStructureId_PrevAndNext( 519 long templateId, long structureId, 520 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 521 throws com.liferay.portal.kernel.exception.SystemException, 522 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 523 524 /** 525 * Returns all the d d m templates where type = ?. 526 * 527 * @param type the type 528 * @return the matching d d m templates 529 * @throws SystemException if a system exception occurred 530 */ 531 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType( 532 java.lang.String type) 533 throws com.liferay.portal.kernel.exception.SystemException; 534 535 /** 536 * Returns a range of all the d d m templates where type = ?. 537 * 538 * <p> 539 * 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. 540 * </p> 541 * 542 * @param type the type 543 * @param start the lower bound of the range of d d m templates 544 * @param end the upper bound of the range of d d m templates (not inclusive) 545 * @return the range of matching d d m templates 546 * @throws SystemException if a system exception occurred 547 */ 548 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType( 549 java.lang.String type, int start, int end) 550 throws com.liferay.portal.kernel.exception.SystemException; 551 552 /** 553 * Returns an ordered range of all the d d m templates where type = ?. 554 * 555 * <p> 556 * 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. 557 * </p> 558 * 559 * @param type the type 560 * @param start the lower bound of the range of d d m templates 561 * @param end the upper bound of the range of d d m templates (not inclusive) 562 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 563 * @return the ordered range of matching d d m templates 564 * @throws SystemException if a system exception occurred 565 */ 566 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType( 567 java.lang.String type, int start, int end, 568 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 569 throws com.liferay.portal.kernel.exception.SystemException; 570 571 /** 572 * Returns the first d d m template in the ordered set where type = ?. 573 * 574 * <p> 575 * 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. 576 * </p> 577 * 578 * @param type the type 579 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 580 * @return the first matching d d m template 581 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 582 * @throws SystemException if a system exception occurred 583 */ 584 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_First( 585 java.lang.String type, 586 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 587 throws com.liferay.portal.kernel.exception.SystemException, 588 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 589 590 /** 591 * Returns the last d d m template in the ordered set where type = ?. 592 * 593 * <p> 594 * 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. 595 * </p> 596 * 597 * @param type the type 598 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 599 * @return the last matching d d m template 600 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 601 * @throws SystemException if a system exception occurred 602 */ 603 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_Last( 604 java.lang.String type, 605 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 606 throws com.liferay.portal.kernel.exception.SystemException, 607 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 608 609 /** 610 * Returns the d d m templates before and after the current d d m template in the ordered set where type = ?. 611 * 612 * <p> 613 * 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. 614 * </p> 615 * 616 * @param templateId the primary key of the current d d m template 617 * @param type the type 618 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 619 * @return the previous, current, and next d d m template 620 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 621 * @throws SystemException if a system exception occurred 622 */ 623 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByType_PrevAndNext( 624 long templateId, java.lang.String type, 625 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 626 throws com.liferay.portal.kernel.exception.SystemException, 627 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 628 629 /** 630 * Returns all the d d m templates where language = ?. 631 * 632 * @param language the language 633 * @return the matching d d m templates 634 * @throws SystemException if a system exception occurred 635 */ 636 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage( 637 java.lang.String language) 638 throws com.liferay.portal.kernel.exception.SystemException; 639 640 /** 641 * Returns a range of all the d d m templates where language = ?. 642 * 643 * <p> 644 * 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. 645 * </p> 646 * 647 * @param language the language 648 * @param start the lower bound of the range of d d m templates 649 * @param end the upper bound of the range of d d m templates (not inclusive) 650 * @return the range of matching d d m templates 651 * @throws SystemException if a system exception occurred 652 */ 653 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage( 654 java.lang.String language, int start, int end) 655 throws com.liferay.portal.kernel.exception.SystemException; 656 657 /** 658 * Returns an ordered range of all the d d m templates where language = ?. 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 language the language 665 * @param start the lower bound of the range of d d m templates 666 * @param end the upper bound of the range of d d m templates (not inclusive) 667 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 668 * @return the ordered range of matching d d m templates 669 * @throws SystemException if a system exception occurred 670 */ 671 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage( 672 java.lang.String language, int start, int end, 673 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 674 throws com.liferay.portal.kernel.exception.SystemException; 675 676 /** 677 * Returns the first d d m template in the ordered set where language = ?. 678 * 679 * <p> 680 * 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. 681 * </p> 682 * 683 * @param language the language 684 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 685 * @return the first matching d d m template 686 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 687 * @throws SystemException if a system exception occurred 688 */ 689 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_First( 690 java.lang.String language, 691 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 692 throws com.liferay.portal.kernel.exception.SystemException, 693 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 694 695 /** 696 * Returns the last d d m template in the ordered set where language = ?. 697 * 698 * <p> 699 * 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. 700 * </p> 701 * 702 * @param language the language 703 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 704 * @return the last matching d d m template 705 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 706 * @throws SystemException if a system exception occurred 707 */ 708 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_Last( 709 java.lang.String language, 710 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 711 throws com.liferay.portal.kernel.exception.SystemException, 712 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 713 714 /** 715 * Returns the d d m templates before and after the current d d m template in the ordered set where language = ?. 716 * 717 * <p> 718 * 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. 719 * </p> 720 * 721 * @param templateId the primary key of the current d d m template 722 * @param language the language 723 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 724 * @return the previous, current, and next d d m template 725 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 726 * @throws SystemException if a system exception occurred 727 */ 728 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByLanguage_PrevAndNext( 729 long templateId, java.lang.String language, 730 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 731 throws com.liferay.portal.kernel.exception.SystemException, 732 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 733 734 /** 735 * Returns all the d d m templates where structureId = ? and type = ?. 736 * 737 * @param structureId the structure ID 738 * @param type the type 739 * @return the matching d d m templates 740 * @throws SystemException if a system exception occurred 741 */ 742 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T( 743 long structureId, java.lang.String type) 744 throws com.liferay.portal.kernel.exception.SystemException; 745 746 /** 747 * Returns a range of all the d d m templates where structureId = ? and type = ?. 748 * 749 * <p> 750 * 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. 751 * </p> 752 * 753 * @param structureId the structure ID 754 * @param type the type 755 * @param start the lower bound of the range of d d m templates 756 * @param end the upper bound of the range of d d m templates (not inclusive) 757 * @return the range of matching d d m templates 758 * @throws SystemException if a system exception occurred 759 */ 760 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T( 761 long structureId, java.lang.String type, int start, int end) 762 throws com.liferay.portal.kernel.exception.SystemException; 763 764 /** 765 * Returns an ordered range of all the d d m templates where structureId = ? and type = ?. 766 * 767 * <p> 768 * 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. 769 * </p> 770 * 771 * @param structureId the structure ID 772 * @param type the type 773 * @param start the lower bound of the range of d d m templates 774 * @param end the upper bound of the range of d d m templates (not inclusive) 775 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 776 * @return the ordered range of matching d d m templates 777 * @throws SystemException if a system exception occurred 778 */ 779 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T( 780 long structureId, java.lang.String type, int start, int end, 781 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 782 throws com.liferay.portal.kernel.exception.SystemException; 783 784 /** 785 * Returns the first d d m template in the ordered set where structureId = ? and type = ?. 786 * 787 * <p> 788 * 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. 789 * </p> 790 * 791 * @param structureId the structure ID 792 * @param type the type 793 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 794 * @return the first matching d d m template 795 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 796 * @throws SystemException if a system exception occurred 797 */ 798 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_First( 799 long structureId, java.lang.String type, 800 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 801 throws com.liferay.portal.kernel.exception.SystemException, 802 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 803 804 /** 805 * Returns the last d d m template in the ordered set where structureId = ? and type = ?. 806 * 807 * <p> 808 * 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. 809 * </p> 810 * 811 * @param structureId the structure ID 812 * @param type the type 813 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 814 * @return the last matching d d m template 815 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 816 * @throws SystemException if a system exception occurred 817 */ 818 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_Last( 819 long structureId, java.lang.String type, 820 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 821 throws com.liferay.portal.kernel.exception.SystemException, 822 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 823 824 /** 825 * Returns the d d m templates before and after the current d d m template in the ordered set where structureId = ? and type = ?. 826 * 827 * <p> 828 * 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. 829 * </p> 830 * 831 * @param templateId the primary key of the current d d m template 832 * @param structureId the structure ID 833 * @param type the type 834 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 835 * @return the previous, current, and next d d m template 836 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 837 * @throws SystemException if a system exception occurred 838 */ 839 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByS_T_PrevAndNext( 840 long templateId, long structureId, java.lang.String type, 841 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 842 throws com.liferay.portal.kernel.exception.SystemException, 843 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 844 845 /** 846 * Returns all the d d m templates where structureId = ? and type = ? and mode = ?. 847 * 848 * @param structureId the structure ID 849 * @param type the type 850 * @param mode the mode 851 * @return the matching d d m templates 852 * @throws SystemException if a system exception occurred 853 */ 854 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T_M( 855 long structureId, java.lang.String type, java.lang.String mode) 856 throws com.liferay.portal.kernel.exception.SystemException; 857 858 /** 859 * Returns a range of all the d d m templates where structureId = ? and type = ? and mode = ?. 860 * 861 * <p> 862 * 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. 863 * </p> 864 * 865 * @param structureId the structure ID 866 * @param type the type 867 * @param mode the mode 868 * @param start the lower bound of the range of d d m templates 869 * @param end the upper bound of the range of d d m templates (not inclusive) 870 * @return the range of matching d d m templates 871 * @throws SystemException if a system exception occurred 872 */ 873 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T_M( 874 long structureId, java.lang.String type, java.lang.String mode, 875 int start, int end) 876 throws com.liferay.portal.kernel.exception.SystemException; 877 878 /** 879 * Returns an ordered range of all the d d m templates where structureId = ? and type = ? and mode = ?. 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 structureId the structure ID 886 * @param type the type 887 * @param mode the mode 888 * @param start the lower bound of the range of d d m templates 889 * @param end the upper bound of the range of d d m templates (not inclusive) 890 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 891 * @return the ordered range of matching d d m templates 892 * @throws SystemException if a system exception occurred 893 */ 894 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T_M( 895 long structureId, java.lang.String type, java.lang.String mode, 896 int start, int end, 897 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 898 throws com.liferay.portal.kernel.exception.SystemException; 899 900 /** 901 * Returns the first d d m template in the ordered set where structureId = ? and type = ? and mode = ?. 902 * 903 * <p> 904 * 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. 905 * </p> 906 * 907 * @param structureId the structure ID 908 * @param type the type 909 * @param mode the mode 910 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 911 * @return the first matching d d m template 912 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 913 * @throws SystemException if a system exception occurred 914 */ 915 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_M_First( 916 long structureId, java.lang.String type, java.lang.String mode, 917 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 918 throws com.liferay.portal.kernel.exception.SystemException, 919 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 920 921 /** 922 * Returns the last d d m template in the ordered set where structureId = ? and type = ? and mode = ?. 923 * 924 * <p> 925 * 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. 926 * </p> 927 * 928 * @param structureId the structure ID 929 * @param type the type 930 * @param mode the mode 931 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 932 * @return the last matching d d m template 933 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 934 * @throws SystemException if a system exception occurred 935 */ 936 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_M_Last( 937 long structureId, java.lang.String type, java.lang.String mode, 938 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 939 throws com.liferay.portal.kernel.exception.SystemException, 940 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 941 942 /** 943 * 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 = ?. 944 * 945 * <p> 946 * 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. 947 * </p> 948 * 949 * @param templateId the primary key of the current d d m template 950 * @param structureId the structure ID 951 * @param type the type 952 * @param mode the mode 953 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 954 * @return the previous, current, and next d d m template 955 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 956 * @throws SystemException if a system exception occurred 957 */ 958 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByS_T_M_PrevAndNext( 959 long templateId, long structureId, java.lang.String type, 960 java.lang.String mode, 961 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 962 throws com.liferay.portal.kernel.exception.SystemException, 963 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 964 965 /** 966 * Returns all the d d m templates. 967 * 968 * @return the d d m templates 969 * @throws SystemException if a system exception occurred 970 */ 971 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll() 972 throws com.liferay.portal.kernel.exception.SystemException; 973 974 /** 975 * Returns a range of all the d d m templates. 976 * 977 * <p> 978 * 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. 979 * </p> 980 * 981 * @param start the lower bound of the range of d d m templates 982 * @param end the upper bound of the range of d d m templates (not inclusive) 983 * @return the range of d d m templates 984 * @throws SystemException if a system exception occurred 985 */ 986 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll( 987 int start, int end) 988 throws com.liferay.portal.kernel.exception.SystemException; 989 990 /** 991 * Returns an ordered range of all the d d m templates. 992 * 993 * <p> 994 * 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. 995 * </p> 996 * 997 * @param start the lower bound of the range of d d m templates 998 * @param end the upper bound of the range of d d m templates (not inclusive) 999 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1000 * @return the ordered range of d d m templates 1001 * @throws SystemException if a system exception occurred 1002 */ 1003 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll( 1004 int start, int end, 1005 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1006 throws com.liferay.portal.kernel.exception.SystemException; 1007 1008 /** 1009 * Removes all the d d m templates where uuid = ? from the database. 1010 * 1011 * @param uuid the uuid 1012 * @throws SystemException if a system exception occurred 1013 */ 1014 public void removeByUuid(java.lang.String uuid) 1015 throws com.liferay.portal.kernel.exception.SystemException; 1016 1017 /** 1018 * Removes the d d m template where uuid = ? and groupId = ? from the database. 1019 * 1020 * @param uuid the uuid 1021 * @param groupId the group ID 1022 * @throws SystemException if a system exception occurred 1023 */ 1024 public void removeByUUID_G(java.lang.String uuid, long groupId) 1025 throws com.liferay.portal.kernel.exception.SystemException, 1026 com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1027 1028 /** 1029 * Removes all the d d m templates where groupId = ? from the database. 1030 * 1031 * @param groupId the group ID 1032 * @throws SystemException if a system exception occurred 1033 */ 1034 public void removeByGroupId(long groupId) 1035 throws com.liferay.portal.kernel.exception.SystemException; 1036 1037 /** 1038 * Removes all the d d m templates where structureId = ? from the database. 1039 * 1040 * @param structureId the structure ID 1041 * @throws SystemException if a system exception occurred 1042 */ 1043 public void removeByStructureId(long structureId) 1044 throws com.liferay.portal.kernel.exception.SystemException; 1045 1046 /** 1047 * Removes all the d d m templates where type = ? from the database. 1048 * 1049 * @param type the type 1050 * @throws SystemException if a system exception occurred 1051 */ 1052 public void removeByType(java.lang.String type) 1053 throws com.liferay.portal.kernel.exception.SystemException; 1054 1055 /** 1056 * Removes all the d d m templates where language = ? from the database. 1057 * 1058 * @param language the language 1059 * @throws SystemException if a system exception occurred 1060 */ 1061 public void removeByLanguage(java.lang.String language) 1062 throws com.liferay.portal.kernel.exception.SystemException; 1063 1064 /** 1065 * Removes all the d d m templates where structureId = ? and type = ? from the database. 1066 * 1067 * @param structureId the structure ID 1068 * @param type the type 1069 * @throws SystemException if a system exception occurred 1070 */ 1071 public void removeByS_T(long structureId, java.lang.String type) 1072 throws com.liferay.portal.kernel.exception.SystemException; 1073 1074 /** 1075 * Removes all the d d m templates where structureId = ? and type = ? and mode = ? from the database. 1076 * 1077 * @param structureId the structure ID 1078 * @param type the type 1079 * @param mode the mode 1080 * @throws SystemException if a system exception occurred 1081 */ 1082 public void removeByS_T_M(long structureId, java.lang.String type, 1083 java.lang.String mode) 1084 throws com.liferay.portal.kernel.exception.SystemException; 1085 1086 /** 1087 * Removes all the d d m templates from the database. 1088 * 1089 * @throws SystemException if a system exception occurred 1090 */ 1091 public void removeAll() 1092 throws com.liferay.portal.kernel.exception.SystemException; 1093 1094 /** 1095 * Returns the number of d d m templates where uuid = ?. 1096 * 1097 * @param uuid the uuid 1098 * @return the number of matching d d m templates 1099 * @throws SystemException if a system exception occurred 1100 */ 1101 public int countByUuid(java.lang.String uuid) 1102 throws com.liferay.portal.kernel.exception.SystemException; 1103 1104 /** 1105 * Returns the number of d d m templates where uuid = ? and groupId = ?. 1106 * 1107 * @param uuid the uuid 1108 * @param groupId the group ID 1109 * @return the number of matching d d m templates 1110 * @throws SystemException if a system exception occurred 1111 */ 1112 public int countByUUID_G(java.lang.String uuid, long groupId) 1113 throws com.liferay.portal.kernel.exception.SystemException; 1114 1115 /** 1116 * Returns the number of d d m templates where groupId = ?. 1117 * 1118 * @param groupId the group ID 1119 * @return the number of matching d d m templates 1120 * @throws SystemException if a system exception occurred 1121 */ 1122 public int countByGroupId(long groupId) 1123 throws com.liferay.portal.kernel.exception.SystemException; 1124 1125 /** 1126 * Returns the number of d d m templates that the user has permission to view where groupId = ?. 1127 * 1128 * @param groupId the group ID 1129 * @return the number of matching d d m templates that the user has permission to view 1130 * @throws SystemException if a system exception occurred 1131 */ 1132 public int filterCountByGroupId(long groupId) 1133 throws com.liferay.portal.kernel.exception.SystemException; 1134 1135 /** 1136 * Returns the number of d d m templates where structureId = ?. 1137 * 1138 * @param structureId the structure ID 1139 * @return the number of matching d d m templates 1140 * @throws SystemException if a system exception occurred 1141 */ 1142 public int countByStructureId(long structureId) 1143 throws com.liferay.portal.kernel.exception.SystemException; 1144 1145 /** 1146 * Returns the number of d d m templates where type = ?. 1147 * 1148 * @param type the type 1149 * @return the number of matching d d m templates 1150 * @throws SystemException if a system exception occurred 1151 */ 1152 public int countByType(java.lang.String type) 1153 throws com.liferay.portal.kernel.exception.SystemException; 1154 1155 /** 1156 * Returns the number of d d m templates where language = ?. 1157 * 1158 * @param language the language 1159 * @return the number of matching d d m templates 1160 * @throws SystemException if a system exception occurred 1161 */ 1162 public int countByLanguage(java.lang.String language) 1163 throws com.liferay.portal.kernel.exception.SystemException; 1164 1165 /** 1166 * Returns the number of d d m templates where structureId = ? and type = ?. 1167 * 1168 * @param structureId the structure ID 1169 * @param type the type 1170 * @return the number of matching d d m templates 1171 * @throws SystemException if a system exception occurred 1172 */ 1173 public int countByS_T(long structureId, java.lang.String type) 1174 throws com.liferay.portal.kernel.exception.SystemException; 1175 1176 /** 1177 * Returns the number of d d m templates where structureId = ? and type = ? and mode = ?. 1178 * 1179 * @param structureId the structure ID 1180 * @param type the type 1181 * @param mode the mode 1182 * @return the number of matching d d m templates 1183 * @throws SystemException if a system exception occurred 1184 */ 1185 public int countByS_T_M(long structureId, java.lang.String type, 1186 java.lang.String mode) 1187 throws com.liferay.portal.kernel.exception.SystemException; 1188 1189 /** 1190 * Returns the number of d d m templates. 1191 * 1192 * @return the number of d d m templates 1193 * @throws SystemException if a system exception occurred 1194 */ 1195 public int countAll() 1196 throws com.liferay.portal.kernel.exception.SystemException; 1197 }