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