001 /** 002 * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.dynamicdatamapping.model.DDMTemplate; 022 023 /** 024 * The persistence interface for the d d m template service. 025 * 026 * <p> 027 * Caching information and settings can be found in <code>portal.properties</code> 028 * </p> 029 * 030 * @author Brian Wing Shun Chan 031 * @see DDMTemplatePersistenceImpl 032 * @see DDMTemplateUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface DDMTemplatePersistence extends BasePersistence<DDMTemplate> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * 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. 041 */ 042 043 /** 044 * Returns all the d d m templates where uuid = ?. 045 * 046 * @param uuid the uuid 047 * @return the matching d d m templates 048 */ 049 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid( 050 java.lang.String uuid); 051 052 /** 053 * Returns a range of all the d d m templates where uuid = ?. 054 * 055 * <p> 056 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 057 * </p> 058 * 059 * @param uuid the uuid 060 * @param start the lower bound of the range of d d m templates 061 * @param end the upper bound of the range of d d m templates (not inclusive) 062 * @return the range of matching d d m templates 063 */ 064 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid( 065 java.lang.String uuid, int start, int end); 066 067 /** 068 * Returns an ordered range of all the d d m templates where uuid = ?. 069 * 070 * <p> 071 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 072 * </p> 073 * 074 * @param uuid the uuid 075 * @param start the lower bound of the range of d d m templates 076 * @param end the upper bound of the range of d d m templates (not inclusive) 077 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 078 * @return the ordered range of matching d d m templates 079 */ 080 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid( 081 java.lang.String uuid, int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 083 084 /** 085 * Returns the first d d m template in the ordered set where uuid = ?. 086 * 087 * @param uuid the uuid 088 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 089 * @return the first matching d d m template 090 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 091 */ 092 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_First( 093 java.lang.String uuid, 094 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 095 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 096 097 /** 098 * Returns the first d d m template in the ordered set where uuid = ?. 099 * 100 * @param uuid the uuid 101 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 102 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 103 */ 104 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_First( 105 java.lang.String uuid, 106 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 107 108 /** 109 * Returns the last d d m template in the ordered set where uuid = ?. 110 * 111 * @param uuid the uuid 112 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 113 * @return the last matching d d m template 114 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 115 */ 116 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_Last( 117 java.lang.String uuid, 118 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 119 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 120 121 /** 122 * Returns the last d d m template in the ordered set where uuid = ?. 123 * 124 * @param uuid the uuid 125 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 126 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 127 */ 128 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_Last( 129 java.lang.String uuid, 130 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 131 132 /** 133 * Returns the d d m templates before and after the current d d m template in the ordered set where uuid = ?. 134 * 135 * @param templateId the primary key of the current d d m template 136 * @param uuid the uuid 137 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 138 * @return the previous, current, and next d d m template 139 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 140 */ 141 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByUuid_PrevAndNext( 142 long templateId, java.lang.String uuid, 143 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 144 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 145 146 /** 147 * Removes all the d d m templates where uuid = ? from the database. 148 * 149 * @param uuid the uuid 150 */ 151 public void removeByUuid(java.lang.String uuid); 152 153 /** 154 * Returns the number of d d m templates where uuid = ?. 155 * 156 * @param uuid the uuid 157 * @return the number of matching d d m templates 158 */ 159 public int countByUuid(java.lang.String uuid); 160 161 /** 162 * 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. 163 * 164 * @param uuid the uuid 165 * @param groupId the group ID 166 * @return the matching d d m template 167 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 168 */ 169 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUUID_G( 170 java.lang.String uuid, long groupId) 171 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 172 173 /** 174 * 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. 175 * 176 * @param uuid the uuid 177 * @param groupId the group ID 178 * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found 179 */ 180 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G( 181 java.lang.String uuid, long groupId); 182 183 /** 184 * 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. 185 * 186 * @param uuid the uuid 187 * @param groupId the group ID 188 * @param retrieveFromCache whether to use the finder cache 189 * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found 190 */ 191 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G( 192 java.lang.String uuid, long groupId, boolean retrieveFromCache); 193 194 /** 195 * Removes the d d m template where uuid = ? and groupId = ? from the database. 196 * 197 * @param uuid the uuid 198 * @param groupId the group ID 199 * @return the d d m template that was removed 200 */ 201 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeByUUID_G( 202 java.lang.String uuid, long groupId) 203 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 204 205 /** 206 * Returns the number of d d m templates where uuid = ? and groupId = ?. 207 * 208 * @param uuid the uuid 209 * @param groupId the group ID 210 * @return the number of matching d d m templates 211 */ 212 public int countByUUID_G(java.lang.String uuid, long groupId); 213 214 /** 215 * Returns all the d d m templates where uuid = ? and companyId = ?. 216 * 217 * @param uuid the uuid 218 * @param companyId the company ID 219 * @return the matching d d m templates 220 */ 221 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid_C( 222 java.lang.String uuid, long companyId); 223 224 /** 225 * Returns a range of all the d d m templates where uuid = ? and companyId = ?. 226 * 227 * <p> 228 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 229 * </p> 230 * 231 * @param uuid the uuid 232 * @param companyId the company ID 233 * @param start the lower bound of the range of d d m templates 234 * @param end the upper bound of the range of d d m templates (not inclusive) 235 * @return the range of matching d d m templates 236 */ 237 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid_C( 238 java.lang.String uuid, long companyId, int start, int end); 239 240 /** 241 * Returns an ordered range of all the d d m templates where uuid = ? and companyId = ?. 242 * 243 * <p> 244 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 245 * </p> 246 * 247 * @param uuid the uuid 248 * @param companyId the company ID 249 * @param start the lower bound of the range of d d m templates 250 * @param end the upper bound of the range of d d m templates (not inclusive) 251 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 252 * @return the ordered range of matching d d m templates 253 */ 254 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid_C( 255 java.lang.String uuid, long companyId, int start, int end, 256 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 257 258 /** 259 * Returns the first d d m template in the ordered set where uuid = ? and companyId = ?. 260 * 261 * @param uuid the uuid 262 * @param companyId the company ID 263 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 264 * @return the first matching d d m template 265 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 266 */ 267 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_C_First( 268 java.lang.String uuid, long companyId, 269 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 270 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 271 272 /** 273 * Returns the first d d m template in the ordered set where uuid = ? and companyId = ?. 274 * 275 * @param uuid the uuid 276 * @param companyId the company ID 277 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 278 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 279 */ 280 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_C_First( 281 java.lang.String uuid, long companyId, 282 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 283 284 /** 285 * Returns the last d d m template in the ordered set where uuid = ? and companyId = ?. 286 * 287 * @param uuid the uuid 288 * @param companyId the company ID 289 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 290 * @return the last matching d d m template 291 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 292 */ 293 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_C_Last( 294 java.lang.String uuid, long companyId, 295 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 296 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 297 298 /** 299 * Returns the last d d m template in the ordered set where uuid = ? and companyId = ?. 300 * 301 * @param uuid the uuid 302 * @param companyId the company ID 303 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 304 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 305 */ 306 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_C_Last( 307 java.lang.String uuid, long companyId, 308 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 309 310 /** 311 * Returns the d d m templates before and after the current d d m template in the ordered set where uuid = ? and companyId = ?. 312 * 313 * @param templateId the primary key of the current d d m template 314 * @param uuid the uuid 315 * @param companyId the company ID 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the previous, current, and next d d m template 318 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 319 */ 320 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByUuid_C_PrevAndNext( 321 long templateId, java.lang.String uuid, long companyId, 322 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 323 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 324 325 /** 326 * Removes all the d d m templates where uuid = ? and companyId = ? from the database. 327 * 328 * @param uuid the uuid 329 * @param companyId the company ID 330 */ 331 public void removeByUuid_C(java.lang.String uuid, long companyId); 332 333 /** 334 * Returns the number of d d m templates where uuid = ? and companyId = ?. 335 * 336 * @param uuid the uuid 337 * @param companyId the company ID 338 * @return the number of matching d d m templates 339 */ 340 public int countByUuid_C(java.lang.String uuid, long companyId); 341 342 /** 343 * Returns all the d d m templates where groupId = ?. 344 * 345 * @param groupId the group ID 346 * @return the matching d d m templates 347 */ 348 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId( 349 long groupId); 350 351 /** 352 * Returns a range of all the d d m templates where groupId = ?. 353 * 354 * <p> 355 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 356 * </p> 357 * 358 * @param groupId the group ID 359 * @param start the lower bound of the range of d d m templates 360 * @param end the upper bound of the range of d d m templates (not inclusive) 361 * @return the range of matching d d m templates 362 */ 363 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId( 364 long groupId, int start, int end); 365 366 /** 367 * Returns an ordered range of all the d d m templates where groupId = ?. 368 * 369 * <p> 370 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 371 * </p> 372 * 373 * @param groupId the group ID 374 * @param start the lower bound of the range of d d m templates 375 * @param end the upper bound of the range of d d m templates (not inclusive) 376 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 377 * @return the ordered range of matching d d m templates 378 */ 379 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId( 380 long groupId, int start, int end, 381 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 382 383 /** 384 * Returns the first d d m template in the ordered set where groupId = ?. 385 * 386 * @param groupId the group ID 387 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 388 * @return the first matching d d m template 389 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 390 */ 391 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_First( 392 long groupId, 393 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 394 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 395 396 /** 397 * Returns the first d d m template in the ordered set where groupId = ?. 398 * 399 * @param groupId the group ID 400 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 401 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 402 */ 403 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByGroupId_First( 404 long groupId, 405 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 406 407 /** 408 * Returns the last d d m template in the ordered set where groupId = ?. 409 * 410 * @param groupId the group ID 411 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 412 * @return the last matching d d m template 413 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 414 */ 415 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_Last( 416 long groupId, 417 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 418 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 419 420 /** 421 * Returns the last d d m template in the ordered set where groupId = ?. 422 * 423 * @param groupId the group ID 424 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 425 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 426 */ 427 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByGroupId_Last( 428 long groupId, 429 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 430 431 /** 432 * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ?. 433 * 434 * @param templateId the primary key of the current d d m template 435 * @param groupId the group ID 436 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 437 * @return the previous, current, and next d d m template 438 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 439 */ 440 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByGroupId_PrevAndNext( 441 long templateId, long groupId, 442 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 443 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 444 445 /** 446 * Returns all the d d m templates that the user has permission to view where groupId = ?. 447 * 448 * @param groupId the group ID 449 * @return the matching d d m templates that the user has permission to view 450 */ 451 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId( 452 long groupId); 453 454 /** 455 * Returns a range of all the d d m templates that the user has permission to view where groupId = ?. 456 * 457 * <p> 458 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 459 * </p> 460 * 461 * @param groupId the group ID 462 * @param start the lower bound of the range of d d m templates 463 * @param end the upper bound of the range of d d m templates (not inclusive) 464 * @return the range of matching d d m templates that the user has permission to view 465 */ 466 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId( 467 long groupId, int start, int end); 468 469 /** 470 * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ?. 471 * 472 * <p> 473 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 474 * </p> 475 * 476 * @param groupId the group ID 477 * @param start the lower bound of the range of d d m templates 478 * @param end the upper bound of the range of d d m templates (not inclusive) 479 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 480 * @return the ordered range of matching d d m templates that the user has permission to view 481 */ 482 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId( 483 long groupId, int start, int end, 484 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 485 486 /** 487 * 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 = ?. 488 * 489 * @param templateId the primary key of the current d d m template 490 * @param groupId the group ID 491 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 492 * @return the previous, current, and next d d m template 493 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 494 */ 495 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByGroupId_PrevAndNext( 496 long templateId, long groupId, 497 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 498 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 499 500 /** 501 * Removes all the d d m templates where groupId = ? from the database. 502 * 503 * @param groupId the group ID 504 */ 505 public void removeByGroupId(long groupId); 506 507 /** 508 * Returns the number of d d m templates where groupId = ?. 509 * 510 * @param groupId the group ID 511 * @return the number of matching d d m templates 512 */ 513 public int countByGroupId(long groupId); 514 515 /** 516 * Returns the number of d d m templates that the user has permission to view where groupId = ?. 517 * 518 * @param groupId the group ID 519 * @return the number of matching d d m templates that the user has permission to view 520 */ 521 public int filterCountByGroupId(long groupId); 522 523 /** 524 * Returns all the d d m templates where classPK = ?. 525 * 526 * @param classPK the class p k 527 * @return the matching d d m templates 528 */ 529 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByClassPK( 530 long classPK); 531 532 /** 533 * Returns a range of all the d d m templates where classPK = ?. 534 * 535 * <p> 536 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 537 * </p> 538 * 539 * @param classPK the class p k 540 * @param start the lower bound of the range of d d m templates 541 * @param end the upper bound of the range of d d m templates (not inclusive) 542 * @return the range of matching d d m templates 543 */ 544 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByClassPK( 545 long classPK, int start, int end); 546 547 /** 548 * Returns an ordered range of all the d d m templates where classPK = ?. 549 * 550 * <p> 551 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 552 * </p> 553 * 554 * @param classPK the class p k 555 * @param start the lower bound of the range of d d m templates 556 * @param end the upper bound of the range of d d m templates (not inclusive) 557 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 558 * @return the ordered range of matching d d m templates 559 */ 560 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByClassPK( 561 long classPK, int start, int end, 562 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 563 564 /** 565 * Returns the first d d m template in the ordered set where classPK = ?. 566 * 567 * @param classPK the class p k 568 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 569 * @return the first matching d d m template 570 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 571 */ 572 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByClassPK_First( 573 long classPK, 574 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 575 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 576 577 /** 578 * Returns the first d d m template in the ordered set where classPK = ?. 579 * 580 * @param classPK the class p k 581 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 582 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 583 */ 584 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByClassPK_First( 585 long classPK, 586 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 587 588 /** 589 * Returns the last d d m template in the ordered set where classPK = ?. 590 * 591 * @param classPK the class p k 592 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 593 * @return the last matching d d m template 594 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 595 */ 596 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByClassPK_Last( 597 long classPK, 598 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 599 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 600 601 /** 602 * Returns the last d d m template in the ordered set where classPK = ?. 603 * 604 * @param classPK the class p k 605 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 606 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 607 */ 608 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByClassPK_Last( 609 long classPK, 610 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 611 612 /** 613 * Returns the d d m templates before and after the current d d m template in the ordered set where classPK = ?. 614 * 615 * @param templateId the primary key of the current d d m template 616 * @param classPK the class p k 617 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 618 * @return the previous, current, and next d d m template 619 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 620 */ 621 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByClassPK_PrevAndNext( 622 long templateId, long classPK, 623 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 624 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 625 626 /** 627 * Removes all the d d m templates where classPK = ? from the database. 628 * 629 * @param classPK the class p k 630 */ 631 public void removeByClassPK(long classPK); 632 633 /** 634 * Returns the number of d d m templates where classPK = ?. 635 * 636 * @param classPK the class p k 637 * @return the number of matching d d m templates 638 */ 639 public int countByClassPK(long classPK); 640 641 /** 642 * Returns all the d d m templates where templateKey = ?. 643 * 644 * @param templateKey the template key 645 * @return the matching d d m templates 646 */ 647 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByTemplateKey( 648 java.lang.String templateKey); 649 650 /** 651 * Returns a range of all the d d m templates where templateKey = ?. 652 * 653 * <p> 654 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 655 * </p> 656 * 657 * @param templateKey the template key 658 * @param start the lower bound of the range of d d m templates 659 * @param end the upper bound of the range of d d m templates (not inclusive) 660 * @return the range of matching d d m templates 661 */ 662 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByTemplateKey( 663 java.lang.String templateKey, int start, int end); 664 665 /** 666 * Returns an ordered range of all the d d m templates where templateKey = ?. 667 * 668 * <p> 669 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 670 * </p> 671 * 672 * @param templateKey the template key 673 * @param start the lower bound of the range of d d m templates 674 * @param end the upper bound of the range of d d m templates (not inclusive) 675 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 676 * @return the ordered range of matching d d m templates 677 */ 678 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByTemplateKey( 679 java.lang.String templateKey, int start, int end, 680 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 681 682 /** 683 * Returns the first d d m template in the ordered set where templateKey = ?. 684 * 685 * @param templateKey the template key 686 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 687 * @return the first matching d d m template 688 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 689 */ 690 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByTemplateKey_First( 691 java.lang.String templateKey, 692 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 693 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 694 695 /** 696 * Returns the first d d m template in the ordered set where templateKey = ?. 697 * 698 * @param templateKey the template key 699 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 700 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 701 */ 702 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByTemplateKey_First( 703 java.lang.String templateKey, 704 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 705 706 /** 707 * Returns the last d d m template in the ordered set where templateKey = ?. 708 * 709 * @param templateKey the template key 710 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 711 * @return the last matching d d m template 712 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 713 */ 714 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByTemplateKey_Last( 715 java.lang.String templateKey, 716 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 717 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 718 719 /** 720 * Returns the last d d m template in the ordered set where templateKey = ?. 721 * 722 * @param templateKey the template key 723 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 724 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 725 */ 726 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByTemplateKey_Last( 727 java.lang.String templateKey, 728 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 729 730 /** 731 * Returns the d d m templates before and after the current d d m template in the ordered set where templateKey = ?. 732 * 733 * @param templateId the primary key of the current d d m template 734 * @param templateKey the template key 735 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 736 * @return the previous, current, and next d d m template 737 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 738 */ 739 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByTemplateKey_PrevAndNext( 740 long templateId, java.lang.String templateKey, 741 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 742 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 743 744 /** 745 * Removes all the d d m templates where templateKey = ? from the database. 746 * 747 * @param templateKey the template key 748 */ 749 public void removeByTemplateKey(java.lang.String templateKey); 750 751 /** 752 * Returns the number of d d m templates where templateKey = ?. 753 * 754 * @param templateKey the template key 755 * @return the number of matching d d m templates 756 */ 757 public int countByTemplateKey(java.lang.String templateKey); 758 759 /** 760 * Returns all the d d m templates where type = ?. 761 * 762 * @param type the type 763 * @return the matching d d m templates 764 */ 765 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType( 766 java.lang.String type); 767 768 /** 769 * Returns a range of all the d d m templates where type = ?. 770 * 771 * <p> 772 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 773 * </p> 774 * 775 * @param type the type 776 * @param start the lower bound of the range of d d m templates 777 * @param end the upper bound of the range of d d m templates (not inclusive) 778 * @return the range of matching d d m templates 779 */ 780 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType( 781 java.lang.String type, int start, int end); 782 783 /** 784 * Returns an ordered range of all the d d m templates where type = ?. 785 * 786 * <p> 787 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 788 * </p> 789 * 790 * @param type the type 791 * @param start the lower bound of the range of d d m templates 792 * @param end the upper bound of the range of d d m templates (not inclusive) 793 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 794 * @return the ordered range of matching d d m templates 795 */ 796 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType( 797 java.lang.String type, int start, int end, 798 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 799 800 /** 801 * Returns the first d d m template in the ordered set where type = ?. 802 * 803 * @param type the type 804 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 805 * @return the first matching d d m template 806 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 807 */ 808 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_First( 809 java.lang.String type, 810 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 811 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 812 813 /** 814 * Returns the first d d m template in the ordered set where type = ?. 815 * 816 * @param type the type 817 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 818 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 819 */ 820 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByType_First( 821 java.lang.String type, 822 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 823 824 /** 825 * Returns the last d d m template in the ordered set where type = ?. 826 * 827 * @param type the type 828 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 829 * @return the last matching d d m template 830 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 831 */ 832 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_Last( 833 java.lang.String type, 834 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 835 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 836 837 /** 838 * Returns the last d d m template in the ordered set where type = ?. 839 * 840 * @param type the type 841 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 842 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 843 */ 844 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByType_Last( 845 java.lang.String type, 846 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 847 848 /** 849 * Returns the d d m templates before and after the current d d m template in the ordered set where type = ?. 850 * 851 * @param templateId the primary key of the current d d m template 852 * @param type the type 853 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 854 * @return the previous, current, and next d d m template 855 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 856 */ 857 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByType_PrevAndNext( 858 long templateId, java.lang.String type, 859 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 860 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 861 862 /** 863 * Removes all the d d m templates where type = ? from the database. 864 * 865 * @param type the type 866 */ 867 public void removeByType(java.lang.String type); 868 869 /** 870 * Returns the number of d d m templates where type = ?. 871 * 872 * @param type the type 873 * @return the number of matching d d m templates 874 */ 875 public int countByType(java.lang.String type); 876 877 /** 878 * Returns all the d d m templates where language = ?. 879 * 880 * @param language the language 881 * @return the matching d d m templates 882 */ 883 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage( 884 java.lang.String language); 885 886 /** 887 * Returns a range of all the d d m templates where language = ?. 888 * 889 * <p> 890 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 891 * </p> 892 * 893 * @param language the language 894 * @param start the lower bound of the range of d d m templates 895 * @param end the upper bound of the range of d d m templates (not inclusive) 896 * @return the range of matching d d m templates 897 */ 898 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage( 899 java.lang.String language, int start, int end); 900 901 /** 902 * Returns an ordered range of all the d d m templates where language = ?. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 906 * </p> 907 * 908 * @param language the language 909 * @param start the lower bound of the range of d d m templates 910 * @param end the upper bound of the range of d d m templates (not inclusive) 911 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 912 * @return the ordered range of matching d d m templates 913 */ 914 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage( 915 java.lang.String language, int start, int end, 916 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 917 918 /** 919 * Returns the first d d m template in the ordered set where language = ?. 920 * 921 * @param language the language 922 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 923 * @return the first matching d d m template 924 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 925 */ 926 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_First( 927 java.lang.String language, 928 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 929 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 930 931 /** 932 * Returns the first d d m template in the ordered set where language = ?. 933 * 934 * @param language the language 935 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 936 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 937 */ 938 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByLanguage_First( 939 java.lang.String language, 940 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 941 942 /** 943 * Returns the last d d m template in the ordered set where language = ?. 944 * 945 * @param language the language 946 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 947 * @return the last matching d d m template 948 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 949 */ 950 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_Last( 951 java.lang.String language, 952 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 953 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 954 955 /** 956 * Returns the last d d m template in the ordered set where language = ?. 957 * 958 * @param language the language 959 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 960 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 961 */ 962 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByLanguage_Last( 963 java.lang.String language, 964 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 965 966 /** 967 * Returns the d d m templates before and after the current d d m template in the ordered set where language = ?. 968 * 969 * @param templateId the primary key of the current d d m template 970 * @param language the language 971 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 972 * @return the previous, current, and next d d m template 973 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 974 */ 975 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByLanguage_PrevAndNext( 976 long templateId, java.lang.String language, 977 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 978 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 979 980 /** 981 * Removes all the d d m templates where language = ? from the database. 982 * 983 * @param language the language 984 */ 985 public void removeByLanguage(java.lang.String language); 986 987 /** 988 * Returns the number of d d m templates where language = ?. 989 * 990 * @param language the language 991 * @return the number of matching d d m templates 992 */ 993 public int countByLanguage(java.lang.String language); 994 995 /** 996 * Returns the d d m template where smallImageId = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException} if it could not be found. 997 * 998 * @param smallImageId the small image ID 999 * @return the matching d d m template 1000 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 1001 */ 1002 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findBySmallImageId( 1003 long smallImageId) 1004 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1005 1006 /** 1007 * Returns the d d m template where smallImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1008 * 1009 * @param smallImageId the small image ID 1010 * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found 1011 */ 1012 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchBySmallImageId( 1013 long smallImageId); 1014 1015 /** 1016 * Returns the d d m template where smallImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1017 * 1018 * @param smallImageId the small image ID 1019 * @param retrieveFromCache whether to use the finder cache 1020 * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found 1021 */ 1022 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchBySmallImageId( 1023 long smallImageId, boolean retrieveFromCache); 1024 1025 /** 1026 * Removes the d d m template where smallImageId = ? from the database. 1027 * 1028 * @param smallImageId the small image ID 1029 * @return the d d m template that was removed 1030 */ 1031 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeBySmallImageId( 1032 long smallImageId) 1033 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1034 1035 /** 1036 * Returns the number of d d m templates where smallImageId = ?. 1037 * 1038 * @param smallImageId the small image ID 1039 * @return the number of matching d d m templates 1040 */ 1041 public int countBySmallImageId(long smallImageId); 1042 1043 /** 1044 * Returns all the d d m templates where groupId = ? and classNameId = ?. 1045 * 1046 * @param groupId the group ID 1047 * @param classNameId the class name ID 1048 * @return the matching d d m templates 1049 */ 1050 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C( 1051 long groupId, long classNameId); 1052 1053 /** 1054 * Returns a range of all the d d m templates where groupId = ? and classNameId = ?. 1055 * 1056 * <p> 1057 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1058 * </p> 1059 * 1060 * @param groupId the group ID 1061 * @param classNameId the class name ID 1062 * @param start the lower bound of the range of d d m templates 1063 * @param end the upper bound of the range of d d m templates (not inclusive) 1064 * @return the range of matching d d m templates 1065 */ 1066 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C( 1067 long groupId, long classNameId, int start, int end); 1068 1069 /** 1070 * Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ?. 1071 * 1072 * <p> 1073 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1074 * </p> 1075 * 1076 * @param groupId the group ID 1077 * @param classNameId the class name ID 1078 * @param start the lower bound of the range of d d m templates 1079 * @param end the upper bound of the range of d d m templates (not inclusive) 1080 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1081 * @return the ordered range of matching d d m templates 1082 */ 1083 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C( 1084 long groupId, long classNameId, int start, int end, 1085 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1086 1087 /** 1088 * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ?. 1089 * 1090 * @param groupId the group ID 1091 * @param classNameId the class name ID 1092 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1093 * @return the first matching d d m template 1094 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 1095 */ 1096 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_First( 1097 long groupId, long classNameId, 1098 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 1099 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1100 1101 /** 1102 * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ?. 1103 * 1104 * @param groupId the group ID 1105 * @param classNameId the class name ID 1106 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1107 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 1108 */ 1109 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_First( 1110 long groupId, long classNameId, 1111 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1112 1113 /** 1114 * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ?. 1115 * 1116 * @param groupId the group ID 1117 * @param classNameId the class name ID 1118 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1119 * @return the last matching d d m template 1120 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 1121 */ 1122 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_Last( 1123 long groupId, long classNameId, 1124 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 1125 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1126 1127 /** 1128 * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ?. 1129 * 1130 * @param groupId the group ID 1131 * @param classNameId the class name ID 1132 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1133 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 1134 */ 1135 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_Last( 1136 long groupId, long classNameId, 1137 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1138 1139 /** 1140 * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ?. 1141 * 1142 * @param templateId the primary key of the current d d m template 1143 * @param groupId the group ID 1144 * @param classNameId the class name ID 1145 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1146 * @return the previous, current, and next d d m template 1147 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 1148 */ 1149 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_PrevAndNext( 1150 long templateId, long groupId, long classNameId, 1151 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 1152 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1153 1154 /** 1155 * Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ?. 1156 * 1157 * @param groupId the group ID 1158 * @param classNameId the class name ID 1159 * @return the matching d d m templates that the user has permission to view 1160 */ 1161 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C( 1162 long groupId, long classNameId); 1163 1164 /** 1165 * Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ?. 1166 * 1167 * <p> 1168 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1169 * </p> 1170 * 1171 * @param groupId the group ID 1172 * @param classNameId the class name ID 1173 * @param start the lower bound of the range of d d m templates 1174 * @param end the upper bound of the range of d d m templates (not inclusive) 1175 * @return the range of matching d d m templates that the user has permission to view 1176 */ 1177 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C( 1178 long groupId, long classNameId, int start, int end); 1179 1180 /** 1181 * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ?. 1182 * 1183 * <p> 1184 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1185 * </p> 1186 * 1187 * @param groupId the group ID 1188 * @param classNameId the class name ID 1189 * @param start the lower bound of the range of d d m templates 1190 * @param end the upper bound of the range of d d m templates (not inclusive) 1191 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1192 * @return the ordered range of matching d d m templates that the user has permission to view 1193 */ 1194 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C( 1195 long groupId, long classNameId, int start, int end, 1196 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1197 1198 /** 1199 * 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 = ? and classNameId = ?. 1200 * 1201 * @param templateId the primary key of the current d d m template 1202 * @param groupId the group ID 1203 * @param classNameId the class name ID 1204 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1205 * @return the previous, current, and next d d m template 1206 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 1207 */ 1208 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_PrevAndNext( 1209 long templateId, long groupId, long classNameId, 1210 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 1211 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1212 1213 /** 1214 * Removes all the d d m templates where groupId = ? and classNameId = ? from the database. 1215 * 1216 * @param groupId the group ID 1217 * @param classNameId the class name ID 1218 */ 1219 public void removeByG_C(long groupId, long classNameId); 1220 1221 /** 1222 * Returns the number of d d m templates where groupId = ? and classNameId = ?. 1223 * 1224 * @param groupId the group ID 1225 * @param classNameId the class name ID 1226 * @return the number of matching d d m templates 1227 */ 1228 public int countByG_C(long groupId, long classNameId); 1229 1230 /** 1231 * Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ?. 1232 * 1233 * @param groupId the group ID 1234 * @param classNameId the class name ID 1235 * @return the number of matching d d m templates that the user has permission to view 1236 */ 1237 public int filterCountByG_C(long groupId, long classNameId); 1238 1239 /** 1240 * Returns all the d d m templates where groupId = ? and classPK = ?. 1241 * 1242 * @param groupId the group ID 1243 * @param classPK the class p k 1244 * @return the matching d d m templates 1245 */ 1246 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK( 1247 long groupId, long classPK); 1248 1249 /** 1250 * Returns a range of all the d d m templates where groupId = ? and classPK = ?. 1251 * 1252 * <p> 1253 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1254 * </p> 1255 * 1256 * @param groupId the group ID 1257 * @param classPK the class p k 1258 * @param start the lower bound of the range of d d m templates 1259 * @param end the upper bound of the range of d d m templates (not inclusive) 1260 * @return the range of matching d d m templates 1261 */ 1262 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK( 1263 long groupId, long classPK, int start, int end); 1264 1265 /** 1266 * Returns an ordered range of all the d d m templates where groupId = ? and classPK = ?. 1267 * 1268 * <p> 1269 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1270 * </p> 1271 * 1272 * @param groupId the group ID 1273 * @param classPK the class p k 1274 * @param start the lower bound of the range of d d m templates 1275 * @param end the upper bound of the range of d d m templates (not inclusive) 1276 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1277 * @return the ordered range of matching d d m templates 1278 */ 1279 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK( 1280 long groupId, long classPK, int start, int end, 1281 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1282 1283 /** 1284 * Returns the first d d m template in the ordered set where groupId = ? and classPK = ?. 1285 * 1286 * @param groupId the group ID 1287 * @param classPK the class p k 1288 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1289 * @return the first matching d d m template 1290 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 1291 */ 1292 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_CPK_First( 1293 long groupId, long classPK, 1294 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 1295 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1296 1297 /** 1298 * Returns the first d d m template in the ordered set where groupId = ? and classPK = ?. 1299 * 1300 * @param groupId the group ID 1301 * @param classPK the class p k 1302 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1303 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 1304 */ 1305 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_CPK_First( 1306 long groupId, long classPK, 1307 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1308 1309 /** 1310 * Returns the last d d m template in the ordered set where groupId = ? and classPK = ?. 1311 * 1312 * @param groupId the group ID 1313 * @param classPK the class p k 1314 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1315 * @return the last matching d d m template 1316 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 1317 */ 1318 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_CPK_Last( 1319 long groupId, long classPK, 1320 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 1321 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1322 1323 /** 1324 * Returns the last d d m template in the ordered set where groupId = ? and classPK = ?. 1325 * 1326 * @param groupId the group ID 1327 * @param classPK the class p k 1328 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1329 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 1330 */ 1331 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_CPK_Last( 1332 long groupId, long classPK, 1333 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1334 1335 /** 1336 * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classPK = ?. 1337 * 1338 * @param templateId the primary key of the current d d m template 1339 * @param groupId the group ID 1340 * @param classPK the class p k 1341 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1342 * @return the previous, current, and next d d m template 1343 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 1344 */ 1345 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_CPK_PrevAndNext( 1346 long templateId, long groupId, long classPK, 1347 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 1348 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1349 1350 /** 1351 * Returns all the d d m templates that the user has permission to view where groupId = ? and classPK = ?. 1352 * 1353 * @param groupId the group ID 1354 * @param classPK the class p k 1355 * @return the matching d d m templates that the user has permission to view 1356 */ 1357 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK( 1358 long groupId, long classPK); 1359 1360 /** 1361 * Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classPK = ?. 1362 * 1363 * <p> 1364 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1365 * </p> 1366 * 1367 * @param groupId the group ID 1368 * @param classPK the class p k 1369 * @param start the lower bound of the range of d d m templates 1370 * @param end the upper bound of the range of d d m templates (not inclusive) 1371 * @return the range of matching d d m templates that the user has permission to view 1372 */ 1373 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK( 1374 long groupId, long classPK, int start, int end); 1375 1376 /** 1377 * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classPK = ?. 1378 * 1379 * <p> 1380 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1381 * </p> 1382 * 1383 * @param groupId the group ID 1384 * @param classPK the class p k 1385 * @param start the lower bound of the range of d d m templates 1386 * @param end the upper bound of the range of d d m templates (not inclusive) 1387 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1388 * @return the ordered range of matching d d m templates that the user has permission to view 1389 */ 1390 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK( 1391 long groupId, long classPK, int start, int end, 1392 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1393 1394 /** 1395 * 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 = ? and classPK = ?. 1396 * 1397 * @param templateId the primary key of the current d d m template 1398 * @param groupId the group ID 1399 * @param classPK the class p k 1400 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1401 * @return the previous, current, and next d d m template 1402 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 1403 */ 1404 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_CPK_PrevAndNext( 1405 long templateId, long groupId, long classPK, 1406 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 1407 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1408 1409 /** 1410 * Returns all the d d m templates that the user has permission to view where groupId = any ? and classPK = ?. 1411 * 1412 * @param groupIds the group IDs 1413 * @param classPK the class p k 1414 * @return the matching d d m templates that the user has permission to view 1415 */ 1416 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK( 1417 long[] groupIds, long classPK); 1418 1419 /** 1420 * Returns a range of all the d d m templates that the user has permission to view where groupId = any ? and classPK = ?. 1421 * 1422 * <p> 1423 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1424 * </p> 1425 * 1426 * @param groupIds the group IDs 1427 * @param classPK the class p k 1428 * @param start the lower bound of the range of d d m templates 1429 * @param end the upper bound of the range of d d m templates (not inclusive) 1430 * @return the range of matching d d m templates that the user has permission to view 1431 */ 1432 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK( 1433 long[] groupIds, long classPK, int start, int end); 1434 1435 /** 1436 * Returns an ordered range of all the d d m templates that the user has permission to view where groupId = any ? and classPK = ?. 1437 * 1438 * <p> 1439 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1440 * </p> 1441 * 1442 * @param groupIds the group IDs 1443 * @param classPK the class p k 1444 * @param start the lower bound of the range of d d m templates 1445 * @param end the upper bound of the range of d d m templates (not inclusive) 1446 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1447 * @return the ordered range of matching d d m templates that the user has permission to view 1448 */ 1449 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK( 1450 long[] groupIds, long classPK, int start, int end, 1451 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1452 1453 /** 1454 * Returns all the d d m templates where groupId = any ? and classPK = ?. 1455 * 1456 * <p> 1457 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1458 * </p> 1459 * 1460 * @param groupIds the group IDs 1461 * @param classPK the class p k 1462 * @return the matching d d m templates 1463 */ 1464 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK( 1465 long[] groupIds, long classPK); 1466 1467 /** 1468 * Returns a range of all the d d m templates where groupId = any ? and classPK = ?. 1469 * 1470 * <p> 1471 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1472 * </p> 1473 * 1474 * @param groupIds the group IDs 1475 * @param classPK the class p k 1476 * @param start the lower bound of the range of d d m templates 1477 * @param end the upper bound of the range of d d m templates (not inclusive) 1478 * @return the range of matching d d m templates 1479 */ 1480 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK( 1481 long[] groupIds, long classPK, int start, int end); 1482 1483 /** 1484 * Returns an ordered range of all the d d m templates where groupId = any ? and classPK = ?. 1485 * 1486 * <p> 1487 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1488 * </p> 1489 * 1490 * @param groupIds the group IDs 1491 * @param classPK the class p k 1492 * @param start the lower bound of the range of d d m templates 1493 * @param end the upper bound of the range of d d m templates (not inclusive) 1494 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1495 * @return the ordered range of matching d d m templates 1496 */ 1497 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK( 1498 long[] groupIds, long classPK, int start, int end, 1499 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1500 1501 /** 1502 * Removes all the d d m templates where groupId = ? and classPK = ? from the database. 1503 * 1504 * @param groupId the group ID 1505 * @param classPK the class p k 1506 */ 1507 public void removeByG_CPK(long groupId, long classPK); 1508 1509 /** 1510 * Returns the number of d d m templates where groupId = ? and classPK = ?. 1511 * 1512 * @param groupId the group ID 1513 * @param classPK the class p k 1514 * @return the number of matching d d m templates 1515 */ 1516 public int countByG_CPK(long groupId, long classPK); 1517 1518 /** 1519 * Returns the number of d d m templates where groupId = any ? and classPK = ?. 1520 * 1521 * @param groupIds the group IDs 1522 * @param classPK the class p k 1523 * @return the number of matching d d m templates 1524 */ 1525 public int countByG_CPK(long[] groupIds, long classPK); 1526 1527 /** 1528 * Returns the number of d d m templates that the user has permission to view where groupId = ? and classPK = ?. 1529 * 1530 * @param groupId the group ID 1531 * @param classPK the class p k 1532 * @return the number of matching d d m templates that the user has permission to view 1533 */ 1534 public int filterCountByG_CPK(long groupId, long classPK); 1535 1536 /** 1537 * Returns the number of d d m templates that the user has permission to view where groupId = any ? and classPK = ?. 1538 * 1539 * @param groupIds the group IDs 1540 * @param classPK the class p k 1541 * @return the number of matching d d m templates that the user has permission to view 1542 */ 1543 public int filterCountByG_CPK(long[] groupIds, long classPK); 1544 1545 /** 1546 * Returns all the d d m templates where groupId = ? and classNameId = ? and classPK = ?. 1547 * 1548 * @param groupId the group ID 1549 * @param classNameId the class name ID 1550 * @param classPK the class p k 1551 * @return the matching d d m templates 1552 */ 1553 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C( 1554 long groupId, long classNameId, long classPK); 1555 1556 /** 1557 * Returns a range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ?. 1558 * 1559 * <p> 1560 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1561 * </p> 1562 * 1563 * @param groupId the group ID 1564 * @param classNameId the class name ID 1565 * @param classPK the class p k 1566 * @param start the lower bound of the range of d d m templates 1567 * @param end the upper bound of the range of d d m templates (not inclusive) 1568 * @return the range of matching d d m templates 1569 */ 1570 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C( 1571 long groupId, long classNameId, long classPK, int start, int end); 1572 1573 /** 1574 * Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ?. 1575 * 1576 * <p> 1577 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1578 * </p> 1579 * 1580 * @param groupId the group ID 1581 * @param classNameId the class name ID 1582 * @param classPK the class p k 1583 * @param start the lower bound of the range of d d m templates 1584 * @param end the upper bound of the range of d d m templates (not inclusive) 1585 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1586 * @return the ordered range of matching d d m templates 1587 */ 1588 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C( 1589 long groupId, long classNameId, long classPK, int start, int end, 1590 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1591 1592 /** 1593 * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 1594 * 1595 * @param groupId the group ID 1596 * @param classNameId the class name ID 1597 * @param classPK the class p k 1598 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1599 * @return the first matching d d m template 1600 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 1601 */ 1602 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_First( 1603 long groupId, long classNameId, long classPK, 1604 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 1605 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1606 1607 /** 1608 * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 1609 * 1610 * @param groupId the group ID 1611 * @param classNameId the class name ID 1612 * @param classPK the class p k 1613 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1614 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 1615 */ 1616 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_First( 1617 long groupId, long classNameId, long classPK, 1618 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1619 1620 /** 1621 * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 1622 * 1623 * @param groupId the group ID 1624 * @param classNameId the class name ID 1625 * @param classPK the class p k 1626 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1627 * @return the last matching d d m template 1628 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 1629 */ 1630 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_Last( 1631 long groupId, long classNameId, long classPK, 1632 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 1633 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1634 1635 /** 1636 * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 1637 * 1638 * @param groupId the group ID 1639 * @param classNameId the class name ID 1640 * @param classPK the class p k 1641 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1642 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 1643 */ 1644 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_Last( 1645 long groupId, long classNameId, long classPK, 1646 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1647 1648 /** 1649 * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 1650 * 1651 * @param templateId the primary key of the current d d m template 1652 * @param groupId the group ID 1653 * @param classNameId the class name ID 1654 * @param classPK the class p k 1655 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1656 * @return the previous, current, and next d d m template 1657 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 1658 */ 1659 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_PrevAndNext( 1660 long templateId, long groupId, long classNameId, long classPK, 1661 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 1662 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1663 1664 /** 1665 * Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. 1666 * 1667 * @param groupId the group ID 1668 * @param classNameId the class name ID 1669 * @param classPK the class p k 1670 * @return the matching d d m templates that the user has permission to view 1671 */ 1672 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C( 1673 long groupId, long classNameId, long classPK); 1674 1675 /** 1676 * Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. 1677 * 1678 * <p> 1679 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1680 * </p> 1681 * 1682 * @param groupId the group ID 1683 * @param classNameId the class name ID 1684 * @param classPK the class p k 1685 * @param start the lower bound of the range of d d m templates 1686 * @param end the upper bound of the range of d d m templates (not inclusive) 1687 * @return the range of matching d d m templates that the user has permission to view 1688 */ 1689 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C( 1690 long groupId, long classNameId, long classPK, int start, int end); 1691 1692 /** 1693 * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ? and classPK = ?. 1694 * 1695 * <p> 1696 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1697 * </p> 1698 * 1699 * @param groupId the group ID 1700 * @param classNameId the class name ID 1701 * @param classPK the class p k 1702 * @param start the lower bound of the range of d d m templates 1703 * @param end the upper bound of the range of d d m templates (not inclusive) 1704 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1705 * @return the ordered range of matching d d m templates that the user has permission to view 1706 */ 1707 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C( 1708 long groupId, long classNameId, long classPK, int start, int end, 1709 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1710 1711 /** 1712 * 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 = ? and classNameId = ? and classPK = ?. 1713 * 1714 * @param templateId the primary key of the current d d m template 1715 * @param groupId the group ID 1716 * @param classNameId the class name ID 1717 * @param classPK the class p k 1718 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1719 * @return the previous, current, and next d d m template 1720 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 1721 */ 1722 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_PrevAndNext( 1723 long templateId, long groupId, long classNameId, long classPK, 1724 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 1725 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1726 1727 /** 1728 * Returns all the d d m templates that the user has permission to view where groupId = any ? and classNameId = ? and classPK = ?. 1729 * 1730 * @param groupIds the group IDs 1731 * @param classNameId the class name ID 1732 * @param classPK the class p k 1733 * @return the matching d d m templates that the user has permission to view 1734 */ 1735 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C( 1736 long[] groupIds, long classNameId, long classPK); 1737 1738 /** 1739 * Returns a range of all the d d m templates that the user has permission to view where groupId = any ? and classNameId = ? and classPK = ?. 1740 * 1741 * <p> 1742 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1743 * </p> 1744 * 1745 * @param groupIds the group IDs 1746 * @param classNameId the class name ID 1747 * @param classPK the class p k 1748 * @param start the lower bound of the range of d d m templates 1749 * @param end the upper bound of the range of d d m templates (not inclusive) 1750 * @return the range of matching d d m templates that the user has permission to view 1751 */ 1752 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C( 1753 long[] groupIds, long classNameId, long classPK, int start, int end); 1754 1755 /** 1756 * Returns an ordered range of all the d d m templates that the user has permission to view where groupId = any ? and classNameId = ? and classPK = ?. 1757 * 1758 * <p> 1759 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1760 * </p> 1761 * 1762 * @param groupIds the group IDs 1763 * @param classNameId the class name ID 1764 * @param classPK the class p k 1765 * @param start the lower bound of the range of d d m templates 1766 * @param end the upper bound of the range of d d m templates (not inclusive) 1767 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1768 * @return the ordered range of matching d d m templates that the user has permission to view 1769 */ 1770 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C( 1771 long[] groupIds, long classNameId, long classPK, int start, int end, 1772 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1773 1774 /** 1775 * Returns all the d d m templates where groupId = any ? and classNameId = ? and classPK = ?. 1776 * 1777 * <p> 1778 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1779 * </p> 1780 * 1781 * @param groupIds the group IDs 1782 * @param classNameId the class name ID 1783 * @param classPK the class p k 1784 * @return the matching d d m templates 1785 */ 1786 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C( 1787 long[] groupIds, long classNameId, long classPK); 1788 1789 /** 1790 * Returns a range of all the d d m templates where groupId = any ? and classNameId = ? and classPK = ?. 1791 * 1792 * <p> 1793 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1794 * </p> 1795 * 1796 * @param groupIds the group IDs 1797 * @param classNameId the class name ID 1798 * @param classPK the class p k 1799 * @param start the lower bound of the range of d d m templates 1800 * @param end the upper bound of the range of d d m templates (not inclusive) 1801 * @return the range of matching d d m templates 1802 */ 1803 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C( 1804 long[] groupIds, long classNameId, long classPK, int start, int end); 1805 1806 /** 1807 * Returns an ordered range of all the d d m templates where groupId = any ? and classNameId = ? and classPK = ?. 1808 * 1809 * <p> 1810 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1811 * </p> 1812 * 1813 * @param groupIds the group IDs 1814 * @param classNameId the class name ID 1815 * @param classPK the class p k 1816 * @param start the lower bound of the range of d d m templates 1817 * @param end the upper bound of the range of d d m templates (not inclusive) 1818 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1819 * @return the ordered range of matching d d m templates 1820 */ 1821 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C( 1822 long[] groupIds, long classNameId, long classPK, int start, int end, 1823 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1824 1825 /** 1826 * Removes all the d d m templates where groupId = ? and classNameId = ? and classPK = ? from the database. 1827 * 1828 * @param groupId the group ID 1829 * @param classNameId the class name ID 1830 * @param classPK the class p k 1831 */ 1832 public void removeByG_C_C(long groupId, long classNameId, long classPK); 1833 1834 /** 1835 * Returns the number of d d m templates where groupId = ? and classNameId = ? and classPK = ?. 1836 * 1837 * @param groupId the group ID 1838 * @param classNameId the class name ID 1839 * @param classPK the class p k 1840 * @return the number of matching d d m templates 1841 */ 1842 public int countByG_C_C(long groupId, long classNameId, long classPK); 1843 1844 /** 1845 * Returns the number of d d m templates where groupId = any ? and classNameId = ? and classPK = ?. 1846 * 1847 * @param groupIds the group IDs 1848 * @param classNameId the class name ID 1849 * @param classPK the class p k 1850 * @return the number of matching d d m templates 1851 */ 1852 public int countByG_C_C(long[] groupIds, long classNameId, long classPK); 1853 1854 /** 1855 * Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. 1856 * 1857 * @param groupId the group ID 1858 * @param classNameId the class name ID 1859 * @param classPK the class p k 1860 * @return the number of matching d d m templates that the user has permission to view 1861 */ 1862 public int filterCountByG_C_C(long groupId, long classNameId, long classPK); 1863 1864 /** 1865 * Returns the number of d d m templates that the user has permission to view where groupId = any ? and classNameId = ? and classPK = ?. 1866 * 1867 * @param groupIds the group IDs 1868 * @param classNameId the class name ID 1869 * @param classPK the class p k 1870 * @return the number of matching d d m templates that the user has permission to view 1871 */ 1872 public int filterCountByG_C_C(long[] groupIds, long classNameId, 1873 long classPK); 1874 1875 /** 1876 * Returns the d d m template where groupId = ? and classNameId = ? and templateKey = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException} if it could not be found. 1877 * 1878 * @param groupId the group ID 1879 * @param classNameId the class name ID 1880 * @param templateKey the template key 1881 * @return the matching d d m template 1882 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 1883 */ 1884 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_T( 1885 long groupId, long classNameId, java.lang.String templateKey) 1886 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1887 1888 /** 1889 * Returns the d d m template where groupId = ? and classNameId = ? and templateKey = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1890 * 1891 * @param groupId the group ID 1892 * @param classNameId the class name ID 1893 * @param templateKey the template key 1894 * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found 1895 */ 1896 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_T( 1897 long groupId, long classNameId, java.lang.String templateKey); 1898 1899 /** 1900 * Returns the d d m template where groupId = ? and classNameId = ? and templateKey = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1901 * 1902 * @param groupId the group ID 1903 * @param classNameId the class name ID 1904 * @param templateKey the template key 1905 * @param retrieveFromCache whether to use the finder cache 1906 * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found 1907 */ 1908 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_T( 1909 long groupId, long classNameId, java.lang.String templateKey, 1910 boolean retrieveFromCache); 1911 1912 /** 1913 * Removes the d d m template where groupId = ? and classNameId = ? and templateKey = ? from the database. 1914 * 1915 * @param groupId the group ID 1916 * @param classNameId the class name ID 1917 * @param templateKey the template key 1918 * @return the d d m template that was removed 1919 */ 1920 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeByG_C_T( 1921 long groupId, long classNameId, java.lang.String templateKey) 1922 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1923 1924 /** 1925 * Returns the number of d d m templates where groupId = ? and classNameId = ? and templateKey = ?. 1926 * 1927 * @param groupId the group ID 1928 * @param classNameId the class name ID 1929 * @param templateKey the template key 1930 * @return the number of matching d d m templates 1931 */ 1932 public int countByG_C_T(long groupId, long classNameId, 1933 java.lang.String templateKey); 1934 1935 /** 1936 * Returns all the d d m templates where classNameId = ? and classPK = ? and type = ?. 1937 * 1938 * @param classNameId the class name ID 1939 * @param classPK the class p k 1940 * @param type the type 1941 * @return the matching d d m templates 1942 */ 1943 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T( 1944 long classNameId, long classPK, java.lang.String type); 1945 1946 /** 1947 * Returns a range of all the d d m templates where classNameId = ? and classPK = ? and type = ?. 1948 * 1949 * <p> 1950 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1951 * </p> 1952 * 1953 * @param classNameId the class name ID 1954 * @param classPK the class p k 1955 * @param type the type 1956 * @param start the lower bound of the range of d d m templates 1957 * @param end the upper bound of the range of d d m templates (not inclusive) 1958 * @return the range of matching d d m templates 1959 */ 1960 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T( 1961 long classNameId, long classPK, java.lang.String type, int start, 1962 int end); 1963 1964 /** 1965 * Returns an ordered range of all the d d m templates where classNameId = ? and classPK = ? and type = ?. 1966 * 1967 * <p> 1968 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1969 * </p> 1970 * 1971 * @param classNameId the class name ID 1972 * @param classPK the class p k 1973 * @param type the type 1974 * @param start the lower bound of the range of d d m templates 1975 * @param end the upper bound of the range of d d m templates (not inclusive) 1976 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1977 * @return the ordered range of matching d d m templates 1978 */ 1979 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T( 1980 long classNameId, long classPK, java.lang.String type, int start, 1981 int end, 1982 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 1983 1984 /** 1985 * Returns the first d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?. 1986 * 1987 * @param classNameId the class name ID 1988 * @param classPK the class p k 1989 * @param type the type 1990 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1991 * @return the first matching d d m template 1992 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 1993 */ 1994 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_First( 1995 long classNameId, long classPK, java.lang.String type, 1996 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 1997 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 1998 1999 /** 2000 * Returns the first d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?. 2001 * 2002 * @param classNameId the class name ID 2003 * @param classPK the class p k 2004 * @param type the type 2005 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2006 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 2007 */ 2008 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_First( 2009 long classNameId, long classPK, java.lang.String type, 2010 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 2011 2012 /** 2013 * Returns the last d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?. 2014 * 2015 * @param classNameId the class name ID 2016 * @param classPK the class p k 2017 * @param type the type 2018 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2019 * @return the last matching d d m template 2020 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 2021 */ 2022 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_Last( 2023 long classNameId, long classPK, java.lang.String type, 2024 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 2025 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 2026 2027 /** 2028 * Returns the last d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?. 2029 * 2030 * @param classNameId the class name ID 2031 * @param classPK the class p k 2032 * @param type the type 2033 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2034 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 2035 */ 2036 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_Last( 2037 long classNameId, long classPK, java.lang.String type, 2038 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 2039 2040 /** 2041 * Returns the d d m templates before and after the current d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?. 2042 * 2043 * @param templateId the primary key of the current d d m template 2044 * @param classNameId the class name ID 2045 * @param classPK the class p k 2046 * @param type the type 2047 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2048 * @return the previous, current, and next d d m template 2049 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 2050 */ 2051 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByC_C_T_PrevAndNext( 2052 long templateId, long classNameId, long classPK, java.lang.String type, 2053 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 2054 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 2055 2056 /** 2057 * Removes all the d d m templates where classNameId = ? and classPK = ? and type = ? from the database. 2058 * 2059 * @param classNameId the class name ID 2060 * @param classPK the class p k 2061 * @param type the type 2062 */ 2063 public void removeByC_C_T(long classNameId, long classPK, 2064 java.lang.String type); 2065 2066 /** 2067 * Returns the number of d d m templates where classNameId = ? and classPK = ? and type = ?. 2068 * 2069 * @param classNameId the class name ID 2070 * @param classPK the class p k 2071 * @param type the type 2072 * @return the number of matching d d m templates 2073 */ 2074 public int countByC_C_T(long classNameId, long classPK, 2075 java.lang.String type); 2076 2077 /** 2078 * Returns all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?. 2079 * 2080 * @param groupId the group ID 2081 * @param classNameId the class name ID 2082 * @param classPK the class p k 2083 * @param type the type 2084 * @return the matching d d m templates 2085 */ 2086 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T( 2087 long groupId, long classNameId, long classPK, java.lang.String type); 2088 2089 /** 2090 * Returns a range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?. 2091 * 2092 * <p> 2093 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2094 * </p> 2095 * 2096 * @param groupId the group ID 2097 * @param classNameId the class name ID 2098 * @param classPK the class p k 2099 * @param type the type 2100 * @param start the lower bound of the range of d d m templates 2101 * @param end the upper bound of the range of d d m templates (not inclusive) 2102 * @return the range of matching d d m templates 2103 */ 2104 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T( 2105 long groupId, long classNameId, long classPK, java.lang.String type, 2106 int start, int end); 2107 2108 /** 2109 * Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?. 2110 * 2111 * <p> 2112 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2113 * </p> 2114 * 2115 * @param groupId the group ID 2116 * @param classNameId the class name ID 2117 * @param classPK the class p k 2118 * @param type the type 2119 * @param start the lower bound of the range of d d m templates 2120 * @param end the upper bound of the range of d d m templates (not inclusive) 2121 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2122 * @return the ordered range of matching d d m templates 2123 */ 2124 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T( 2125 long groupId, long classNameId, long classPK, java.lang.String type, 2126 int start, int end, 2127 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 2128 2129 /** 2130 * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. 2131 * 2132 * @param groupId the group ID 2133 * @param classNameId the class name ID 2134 * @param classPK the class p k 2135 * @param type the type 2136 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2137 * @return the first matching d d m template 2138 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 2139 */ 2140 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_First( 2141 long groupId, long classNameId, long classPK, java.lang.String type, 2142 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 2143 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 2144 2145 /** 2146 * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. 2147 * 2148 * @param groupId the group ID 2149 * @param classNameId the class name ID 2150 * @param classPK the class p k 2151 * @param type the type 2152 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2153 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 2154 */ 2155 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_First( 2156 long groupId, long classNameId, long classPK, java.lang.String type, 2157 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 2158 2159 /** 2160 * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. 2161 * 2162 * @param groupId the group ID 2163 * @param classNameId the class name ID 2164 * @param classPK the class p k 2165 * @param type the type 2166 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2167 * @return the last matching d d m template 2168 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 2169 */ 2170 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_Last( 2171 long groupId, long classNameId, long classPK, java.lang.String type, 2172 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 2173 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 2174 2175 /** 2176 * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. 2177 * 2178 * @param groupId the group ID 2179 * @param classNameId the class name ID 2180 * @param classPK the class p k 2181 * @param type the type 2182 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2183 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 2184 */ 2185 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_Last( 2186 long groupId, long classNameId, long classPK, java.lang.String type, 2187 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 2188 2189 /** 2190 * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. 2191 * 2192 * @param templateId the primary key of the current d d m template 2193 * @param groupId the group ID 2194 * @param classNameId the class name ID 2195 * @param classPK the class p k 2196 * @param type the type 2197 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2198 * @return the previous, current, and next d d m template 2199 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 2200 */ 2201 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_T_PrevAndNext( 2202 long templateId, long groupId, long classNameId, long classPK, 2203 java.lang.String type, 2204 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 2205 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 2206 2207 /** 2208 * Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ?. 2209 * 2210 * @param groupId the group ID 2211 * @param classNameId the class name ID 2212 * @param classPK the class p k 2213 * @param type the type 2214 * @return the matching d d m templates that the user has permission to view 2215 */ 2216 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T( 2217 long groupId, long classNameId, long classPK, java.lang.String type); 2218 2219 /** 2220 * Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ?. 2221 * 2222 * <p> 2223 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2224 * </p> 2225 * 2226 * @param groupId the group ID 2227 * @param classNameId the class name ID 2228 * @param classPK the class p k 2229 * @param type the type 2230 * @param start the lower bound of the range of d d m templates 2231 * @param end the upper bound of the range of d d m templates (not inclusive) 2232 * @return the range of matching d d m templates that the user has permission to view 2233 */ 2234 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T( 2235 long groupId, long classNameId, long classPK, java.lang.String type, 2236 int start, int end); 2237 2238 /** 2239 * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ? and classPK = ? and type = ?. 2240 * 2241 * <p> 2242 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2243 * </p> 2244 * 2245 * @param groupId the group ID 2246 * @param classNameId the class name ID 2247 * @param classPK the class p k 2248 * @param type the type 2249 * @param start the lower bound of the range of d d m templates 2250 * @param end the upper bound of the range of d d m templates (not inclusive) 2251 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2252 * @return the ordered range of matching d d m templates that the user has permission to view 2253 */ 2254 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T( 2255 long groupId, long classNameId, long classPK, java.lang.String type, 2256 int start, int end, 2257 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 2258 2259 /** 2260 * 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 = ? and classNameId = ? and classPK = ? and type = ?. 2261 * 2262 * @param templateId the primary key of the current d d m template 2263 * @param groupId the group ID 2264 * @param classNameId the class name ID 2265 * @param classPK the class p k 2266 * @param type the type 2267 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2268 * @return the previous, current, and next d d m template 2269 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 2270 */ 2271 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_T_PrevAndNext( 2272 long templateId, long groupId, long classNameId, long classPK, 2273 java.lang.String type, 2274 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 2275 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 2276 2277 /** 2278 * Removes all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? from the database. 2279 * 2280 * @param groupId the group ID 2281 * @param classNameId the class name ID 2282 * @param classPK the class p k 2283 * @param type the type 2284 */ 2285 public void removeByG_C_C_T(long groupId, long classNameId, long classPK, 2286 java.lang.String type); 2287 2288 /** 2289 * Returns the number of d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?. 2290 * 2291 * @param groupId the group ID 2292 * @param classNameId the class name ID 2293 * @param classPK the class p k 2294 * @param type the type 2295 * @return the number of matching d d m templates 2296 */ 2297 public int countByG_C_C_T(long groupId, long classNameId, long classPK, 2298 java.lang.String type); 2299 2300 /** 2301 * Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ?. 2302 * 2303 * @param groupId the group ID 2304 * @param classNameId the class name ID 2305 * @param classPK the class p k 2306 * @param type the type 2307 * @return the number of matching d d m templates that the user has permission to view 2308 */ 2309 public int filterCountByG_C_C_T(long groupId, long classNameId, 2310 long classPK, java.lang.String type); 2311 2312 /** 2313 * Returns all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. 2314 * 2315 * @param groupId the group ID 2316 * @param classNameId the class name ID 2317 * @param classPK the class p k 2318 * @param type the type 2319 * @param mode the mode 2320 * @return the matching d d m templates 2321 */ 2322 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T_M( 2323 long groupId, long classNameId, long classPK, java.lang.String type, 2324 java.lang.String mode); 2325 2326 /** 2327 * Returns a range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. 2328 * 2329 * <p> 2330 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2331 * </p> 2332 * 2333 * @param groupId the group ID 2334 * @param classNameId the class name ID 2335 * @param classPK the class p k 2336 * @param type the type 2337 * @param mode the mode 2338 * @param start the lower bound of the range of d d m templates 2339 * @param end the upper bound of the range of d d m templates (not inclusive) 2340 * @return the range of matching d d m templates 2341 */ 2342 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T_M( 2343 long groupId, long classNameId, long classPK, java.lang.String type, 2344 java.lang.String mode, int start, int end); 2345 2346 /** 2347 * Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. 2348 * 2349 * <p> 2350 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2351 * </p> 2352 * 2353 * @param groupId the group ID 2354 * @param classNameId the class name ID 2355 * @param classPK the class p k 2356 * @param type the type 2357 * @param mode the mode 2358 * @param start the lower bound of the range of d d m templates 2359 * @param end the upper bound of the range of d d m templates (not inclusive) 2360 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2361 * @return the ordered range of matching d d m templates 2362 */ 2363 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T_M( 2364 long groupId, long classNameId, long classPK, java.lang.String type, 2365 java.lang.String mode, int start, int end, 2366 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 2367 2368 /** 2369 * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. 2370 * 2371 * @param groupId the group ID 2372 * @param classNameId the class name ID 2373 * @param classPK the class p k 2374 * @param type the type 2375 * @param mode the mode 2376 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2377 * @return the first matching d d m template 2378 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 2379 */ 2380 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_M_First( 2381 long groupId, long classNameId, long classPK, java.lang.String type, 2382 java.lang.String mode, 2383 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 2384 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 2385 2386 /** 2387 * Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. 2388 * 2389 * @param groupId the group ID 2390 * @param classNameId the class name ID 2391 * @param classPK the class p k 2392 * @param type the type 2393 * @param mode the mode 2394 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2395 * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found 2396 */ 2397 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_M_First( 2398 long groupId, long classNameId, long classPK, java.lang.String type, 2399 java.lang.String mode, 2400 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 2401 2402 /** 2403 * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. 2404 * 2405 * @param groupId the group ID 2406 * @param classNameId the class name ID 2407 * @param classPK the class p k 2408 * @param type the type 2409 * @param mode the mode 2410 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2411 * @return the last matching d d m template 2412 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found 2413 */ 2414 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_M_Last( 2415 long groupId, long classNameId, long classPK, java.lang.String type, 2416 java.lang.String mode, 2417 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 2418 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 2419 2420 /** 2421 * Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. 2422 * 2423 * @param groupId the group ID 2424 * @param classNameId the class name ID 2425 * @param classPK the class p k 2426 * @param type the type 2427 * @param mode the mode 2428 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2429 * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found 2430 */ 2431 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_M_Last( 2432 long groupId, long classNameId, long classPK, java.lang.String type, 2433 java.lang.String mode, 2434 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 2435 2436 /** 2437 * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. 2438 * 2439 * @param templateId the primary key of the current d d m template 2440 * @param groupId the group ID 2441 * @param classNameId the class name ID 2442 * @param classPK the class p k 2443 * @param type the type 2444 * @param mode the mode 2445 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2446 * @return the previous, current, and next d d m template 2447 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 2448 */ 2449 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_T_M_PrevAndNext( 2450 long templateId, long groupId, long classNameId, long classPK, 2451 java.lang.String type, java.lang.String mode, 2452 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 2453 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 2454 2455 /** 2456 * Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. 2457 * 2458 * @param groupId the group ID 2459 * @param classNameId the class name ID 2460 * @param classPK the class p k 2461 * @param type the type 2462 * @param mode the mode 2463 * @return the matching d d m templates that the user has permission to view 2464 */ 2465 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T_M( 2466 long groupId, long classNameId, long classPK, java.lang.String type, 2467 java.lang.String mode); 2468 2469 /** 2470 * Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. 2471 * 2472 * <p> 2473 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2474 * </p> 2475 * 2476 * @param groupId the group ID 2477 * @param classNameId the class name ID 2478 * @param classPK the class p k 2479 * @param type the type 2480 * @param mode the mode 2481 * @param start the lower bound of the range of d d m templates 2482 * @param end the upper bound of the range of d d m templates (not inclusive) 2483 * @return the range of matching d d m templates that the user has permission to view 2484 */ 2485 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T_M( 2486 long groupId, long classNameId, long classPK, java.lang.String type, 2487 java.lang.String mode, int start, int end); 2488 2489 /** 2490 * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. 2491 * 2492 * <p> 2493 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2494 * </p> 2495 * 2496 * @param groupId the group ID 2497 * @param classNameId the class name ID 2498 * @param classPK the class p k 2499 * @param type the type 2500 * @param mode the mode 2501 * @param start the lower bound of the range of d d m templates 2502 * @param end the upper bound of the range of d d m templates (not inclusive) 2503 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2504 * @return the ordered range of matching d d m templates that the user has permission to view 2505 */ 2506 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T_M( 2507 long groupId, long classNameId, long classPK, java.lang.String type, 2508 java.lang.String mode, int start, int end, 2509 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 2510 2511 /** 2512 * 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 = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. 2513 * 2514 * @param templateId the primary key of the current d d m template 2515 * @param groupId the group ID 2516 * @param classNameId the class name ID 2517 * @param classPK the class p k 2518 * @param type the type 2519 * @param mode the mode 2520 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2521 * @return the previous, current, and next d d m template 2522 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 2523 */ 2524 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_T_M_PrevAndNext( 2525 long templateId, long groupId, long classNameId, long classPK, 2526 java.lang.String type, java.lang.String mode, 2527 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator) 2528 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 2529 2530 /** 2531 * Removes all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ? from the database. 2532 * 2533 * @param groupId the group ID 2534 * @param classNameId the class name ID 2535 * @param classPK the class p k 2536 * @param type the type 2537 * @param mode the mode 2538 */ 2539 public void removeByG_C_C_T_M(long groupId, long classNameId, long classPK, 2540 java.lang.String type, java.lang.String mode); 2541 2542 /** 2543 * Returns the number of d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. 2544 * 2545 * @param groupId the group ID 2546 * @param classNameId the class name ID 2547 * @param classPK the class p k 2548 * @param type the type 2549 * @param mode the mode 2550 * @return the number of matching d d m templates 2551 */ 2552 public int countByG_C_C_T_M(long groupId, long classNameId, long classPK, 2553 java.lang.String type, java.lang.String mode); 2554 2555 /** 2556 * Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?. 2557 * 2558 * @param groupId the group ID 2559 * @param classNameId the class name ID 2560 * @param classPK the class p k 2561 * @param type the type 2562 * @param mode the mode 2563 * @return the number of matching d d m templates that the user has permission to view 2564 */ 2565 public int filterCountByG_C_C_T_M(long groupId, long classNameId, 2566 long classPK, java.lang.String type, java.lang.String mode); 2567 2568 /** 2569 * Caches the d d m template in the entity cache if it is enabled. 2570 * 2571 * @param ddmTemplate the d d m template 2572 */ 2573 public void cacheResult( 2574 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate); 2575 2576 /** 2577 * Caches the d d m templates in the entity cache if it is enabled. 2578 * 2579 * @param ddmTemplates the d d m templates 2580 */ 2581 public void cacheResult( 2582 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> ddmTemplates); 2583 2584 /** 2585 * Creates a new d d m template with the primary key. Does not add the d d m template to the database. 2586 * 2587 * @param templateId the primary key for the new d d m template 2588 * @return the new d d m template 2589 */ 2590 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate create( 2591 long templateId); 2592 2593 /** 2594 * Removes the d d m template with the primary key from the database. Also notifies the appropriate model listeners. 2595 * 2596 * @param templateId the primary key of the d d m template 2597 * @return the d d m template that was removed 2598 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 2599 */ 2600 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate remove( 2601 long templateId) 2602 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 2603 2604 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateImpl( 2605 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate); 2606 2607 /** 2608 * 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. 2609 * 2610 * @param templateId the primary key of the d d m template 2611 * @return the d d m template 2612 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found 2613 */ 2614 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByPrimaryKey( 2615 long templateId) 2616 throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException; 2617 2618 /** 2619 * Returns the d d m template with the primary key or returns <code>null</code> if it could not be found. 2620 * 2621 * @param templateId the primary key of the d d m template 2622 * @return the d d m template, or <code>null</code> if a d d m template with the primary key could not be found 2623 */ 2624 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByPrimaryKey( 2625 long templateId); 2626 2627 @Override 2628 public java.util.Map<java.io.Serializable, com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> fetchByPrimaryKeys( 2629 java.util.Set<java.io.Serializable> primaryKeys); 2630 2631 /** 2632 * Returns all the d d m templates. 2633 * 2634 * @return the d d m templates 2635 */ 2636 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll(); 2637 2638 /** 2639 * Returns a range of all the d d m templates. 2640 * 2641 * <p> 2642 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2643 * </p> 2644 * 2645 * @param start the lower bound of the range of d d m templates 2646 * @param end the upper bound of the range of d d m templates (not inclusive) 2647 * @return the range of d d m templates 2648 */ 2649 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll( 2650 int start, int end); 2651 2652 /** 2653 * Returns an ordered range of all the d d m templates. 2654 * 2655 * <p> 2656 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2657 * </p> 2658 * 2659 * @param start the lower bound of the range of d d m templates 2660 * @param end the upper bound of the range of d d m templates (not inclusive) 2661 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2662 * @return the ordered range of d d m templates 2663 */ 2664 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll( 2665 int start, int end, 2666 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> orderByComparator); 2667 2668 /** 2669 * Removes all the d d m templates from the database. 2670 */ 2671 public void removeAll(); 2672 2673 /** 2674 * Returns the number of d d m templates. 2675 * 2676 * @return the number of d d m templates 2677 */ 2678 public int countAll(); 2679 }