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.DDMContent; 022 023 /** 024 * The persistence interface for the d d m content 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 com.liferay.portlet.dynamicdatamapping.service.persistence.impl.DDMContentPersistenceImpl 032 * @see DDMContentUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface DDMContentPersistence extends BasePersistence<DDMContent> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link DDMContentUtil} to access the d d m content persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the d d m contents where uuid = ?. 045 * 046 * @param uuid the uuid 047 * @return the matching d d m contents 048 */ 049 public java.util.List<DDMContent> findByUuid(java.lang.String uuid); 050 051 /** 052 * Returns a range of all the d d m contents where uuid = ?. 053 * 054 * <p> 055 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMContentModelImpl}. 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. 056 * </p> 057 * 058 * @param uuid the uuid 059 * @param start the lower bound of the range of d d m contents 060 * @param end the upper bound of the range of d d m contents (not inclusive) 061 * @return the range of matching d d m contents 062 */ 063 public java.util.List<DDMContent> findByUuid(java.lang.String uuid, 064 int start, int end); 065 066 /** 067 * Returns an ordered range of all the d d m contents where uuid = ?. 068 * 069 * <p> 070 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMContentModelImpl}. 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. 071 * </p> 072 * 073 * @param uuid the uuid 074 * @param start the lower bound of the range of d d m contents 075 * @param end the upper bound of the range of d d m contents (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching d d m contents 078 */ 079 public java.util.List<DDMContent> findByUuid(java.lang.String uuid, 080 int start, int end, 081 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator); 082 083 /** 084 * Returns the first d d m content in the ordered set where uuid = ?. 085 * 086 * @param uuid the uuid 087 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 088 * @return the first matching d d m content 089 * @throws NoSuchContentException if a matching d d m content could not be found 090 */ 091 public DDMContent findByUuid_First(java.lang.String uuid, 092 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator) 093 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 094 095 /** 096 * Returns the first d d m content in the ordered set where uuid = ?. 097 * 098 * @param uuid the uuid 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching d d m content, or <code>null</code> if a matching d d m content could not be found 101 */ 102 public DDMContent fetchByUuid_First(java.lang.String uuid, 103 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator); 104 105 /** 106 * Returns the last d d m content in the ordered set where uuid = ?. 107 * 108 * @param uuid the uuid 109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 110 * @return the last matching d d m content 111 * @throws NoSuchContentException if a matching d d m content could not be found 112 */ 113 public DDMContent findByUuid_Last(java.lang.String uuid, 114 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator) 115 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 116 117 /** 118 * Returns the last d d m content in the ordered set where uuid = ?. 119 * 120 * @param uuid the uuid 121 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 122 * @return the last matching d d m content, or <code>null</code> if a matching d d m content could not be found 123 */ 124 public DDMContent fetchByUuid_Last(java.lang.String uuid, 125 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator); 126 127 /** 128 * Returns the d d m contents before and after the current d d m content in the ordered set where uuid = ?. 129 * 130 * @param contentId the primary key of the current d d m content 131 * @param uuid the uuid 132 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 133 * @return the previous, current, and next d d m content 134 * @throws NoSuchContentException if a d d m content with the primary key could not be found 135 */ 136 public DDMContent[] findByUuid_PrevAndNext(long contentId, 137 java.lang.String uuid, 138 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator) 139 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 140 141 /** 142 * Removes all the d d m contents where uuid = ? from the database. 143 * 144 * @param uuid the uuid 145 */ 146 public void removeByUuid(java.lang.String uuid); 147 148 /** 149 * Returns the number of d d m contents where uuid = ?. 150 * 151 * @param uuid the uuid 152 * @return the number of matching d d m contents 153 */ 154 public int countByUuid(java.lang.String uuid); 155 156 /** 157 * Returns the d d m content where uuid = ? and groupId = ? or throws a {@link NoSuchContentException} if it could not be found. 158 * 159 * @param uuid the uuid 160 * @param groupId the group ID 161 * @return the matching d d m content 162 * @throws NoSuchContentException if a matching d d m content could not be found 163 */ 164 public DDMContent findByUUID_G(java.lang.String uuid, long groupId) 165 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 166 167 /** 168 * Returns the d d m content where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 169 * 170 * @param uuid the uuid 171 * @param groupId the group ID 172 * @return the matching d d m content, or <code>null</code> if a matching d d m content could not be found 173 */ 174 public DDMContent fetchByUUID_G(java.lang.String uuid, long groupId); 175 176 /** 177 * Returns the d d m content where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 178 * 179 * @param uuid the uuid 180 * @param groupId the group ID 181 * @param retrieveFromCache whether to use the finder cache 182 * @return the matching d d m content, or <code>null</code> if a matching d d m content could not be found 183 */ 184 public DDMContent fetchByUUID_G(java.lang.String uuid, long groupId, 185 boolean retrieveFromCache); 186 187 /** 188 * Removes the d d m content where uuid = ? and groupId = ? from the database. 189 * 190 * @param uuid the uuid 191 * @param groupId the group ID 192 * @return the d d m content that was removed 193 */ 194 public DDMContent removeByUUID_G(java.lang.String uuid, long groupId) 195 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 196 197 /** 198 * Returns the number of d d m contents where uuid = ? and groupId = ?. 199 * 200 * @param uuid the uuid 201 * @param groupId the group ID 202 * @return the number of matching d d m contents 203 */ 204 public int countByUUID_G(java.lang.String uuid, long groupId); 205 206 /** 207 * Returns all the d d m contents where uuid = ? and companyId = ?. 208 * 209 * @param uuid the uuid 210 * @param companyId the company ID 211 * @return the matching d d m contents 212 */ 213 public java.util.List<DDMContent> findByUuid_C(java.lang.String uuid, 214 long companyId); 215 216 /** 217 * Returns a range of all the d d m contents where uuid = ? and companyId = ?. 218 * 219 * <p> 220 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMContentModelImpl}. 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. 221 * </p> 222 * 223 * @param uuid the uuid 224 * @param companyId the company ID 225 * @param start the lower bound of the range of d d m contents 226 * @param end the upper bound of the range of d d m contents (not inclusive) 227 * @return the range of matching d d m contents 228 */ 229 public java.util.List<DDMContent> findByUuid_C(java.lang.String uuid, 230 long companyId, int start, int end); 231 232 /** 233 * Returns an ordered range of all the d d m contents where uuid = ? and companyId = ?. 234 * 235 * <p> 236 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMContentModelImpl}. 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. 237 * </p> 238 * 239 * @param uuid the uuid 240 * @param companyId the company ID 241 * @param start the lower bound of the range of d d m contents 242 * @param end the upper bound of the range of d d m contents (not inclusive) 243 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 244 * @return the ordered range of matching d d m contents 245 */ 246 public java.util.List<DDMContent> findByUuid_C(java.lang.String uuid, 247 long companyId, int start, int end, 248 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator); 249 250 /** 251 * Returns the first d d m content in the ordered set where uuid = ? and companyId = ?. 252 * 253 * @param uuid the uuid 254 * @param companyId the company ID 255 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 256 * @return the first matching d d m content 257 * @throws NoSuchContentException if a matching d d m content could not be found 258 */ 259 public DDMContent findByUuid_C_First(java.lang.String uuid, long companyId, 260 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator) 261 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 262 263 /** 264 * Returns the first d d m content in the ordered set where uuid = ? and companyId = ?. 265 * 266 * @param uuid the uuid 267 * @param companyId the company ID 268 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 269 * @return the first matching d d m content, or <code>null</code> if a matching d d m content could not be found 270 */ 271 public DDMContent fetchByUuid_C_First(java.lang.String uuid, 272 long companyId, 273 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator); 274 275 /** 276 * Returns the last d d m content in the ordered set where uuid = ? and companyId = ?. 277 * 278 * @param uuid the uuid 279 * @param companyId the company ID 280 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 281 * @return the last matching d d m content 282 * @throws NoSuchContentException if a matching d d m content could not be found 283 */ 284 public DDMContent findByUuid_C_Last(java.lang.String uuid, long companyId, 285 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator) 286 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 287 288 /** 289 * Returns the last d d m content in the ordered set where uuid = ? and companyId = ?. 290 * 291 * @param uuid the uuid 292 * @param companyId the company ID 293 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 294 * @return the last matching d d m content, or <code>null</code> if a matching d d m content could not be found 295 */ 296 public DDMContent fetchByUuid_C_Last(java.lang.String uuid, long companyId, 297 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator); 298 299 /** 300 * Returns the d d m contents before and after the current d d m content in the ordered set where uuid = ? and companyId = ?. 301 * 302 * @param contentId the primary key of the current d d m content 303 * @param uuid the uuid 304 * @param companyId the company ID 305 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 306 * @return the previous, current, and next d d m content 307 * @throws NoSuchContentException if a d d m content with the primary key could not be found 308 */ 309 public DDMContent[] findByUuid_C_PrevAndNext(long contentId, 310 java.lang.String uuid, long companyId, 311 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator) 312 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 313 314 /** 315 * Removes all the d d m contents where uuid = ? and companyId = ? from the database. 316 * 317 * @param uuid the uuid 318 * @param companyId the company ID 319 */ 320 public void removeByUuid_C(java.lang.String uuid, long companyId); 321 322 /** 323 * Returns the number of d d m contents where uuid = ? and companyId = ?. 324 * 325 * @param uuid the uuid 326 * @param companyId the company ID 327 * @return the number of matching d d m contents 328 */ 329 public int countByUuid_C(java.lang.String uuid, long companyId); 330 331 /** 332 * Returns all the d d m contents where groupId = ?. 333 * 334 * @param groupId the group ID 335 * @return the matching d d m contents 336 */ 337 public java.util.List<DDMContent> findByGroupId(long groupId); 338 339 /** 340 * Returns a range of all the d d m contents where groupId = ?. 341 * 342 * <p> 343 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMContentModelImpl}. 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. 344 * </p> 345 * 346 * @param groupId the group ID 347 * @param start the lower bound of the range of d d m contents 348 * @param end the upper bound of the range of d d m contents (not inclusive) 349 * @return the range of matching d d m contents 350 */ 351 public java.util.List<DDMContent> findByGroupId(long groupId, int start, 352 int end); 353 354 /** 355 * Returns an ordered range of all the d d m contents where groupId = ?. 356 * 357 * <p> 358 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMContentModelImpl}. 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. 359 * </p> 360 * 361 * @param groupId the group ID 362 * @param start the lower bound of the range of d d m contents 363 * @param end the upper bound of the range of d d m contents (not inclusive) 364 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 365 * @return the ordered range of matching d d m contents 366 */ 367 public java.util.List<DDMContent> findByGroupId(long groupId, int start, 368 int end, 369 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator); 370 371 /** 372 * Returns the first d d m content in the ordered set where groupId = ?. 373 * 374 * @param groupId the group ID 375 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 376 * @return the first matching d d m content 377 * @throws NoSuchContentException if a matching d d m content could not be found 378 */ 379 public DDMContent findByGroupId_First(long groupId, 380 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator) 381 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 382 383 /** 384 * Returns the first d d m content 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 content, or <code>null</code> if a matching d d m content could not be found 389 */ 390 public DDMContent fetchByGroupId_First(long groupId, 391 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator); 392 393 /** 394 * Returns the last d d m content in the ordered set where groupId = ?. 395 * 396 * @param groupId the group ID 397 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 398 * @return the last matching d d m content 399 * @throws NoSuchContentException if a matching d d m content could not be found 400 */ 401 public DDMContent findByGroupId_Last(long groupId, 402 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator) 403 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 404 405 /** 406 * Returns the last d d m content in the ordered set where groupId = ?. 407 * 408 * @param groupId the group ID 409 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 410 * @return the last matching d d m content, or <code>null</code> if a matching d d m content could not be found 411 */ 412 public DDMContent fetchByGroupId_Last(long groupId, 413 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator); 414 415 /** 416 * Returns the d d m contents before and after the current d d m content in the ordered set where groupId = ?. 417 * 418 * @param contentId the primary key of the current d d m content 419 * @param groupId the group ID 420 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 421 * @return the previous, current, and next d d m content 422 * @throws NoSuchContentException if a d d m content with the primary key could not be found 423 */ 424 public DDMContent[] findByGroupId_PrevAndNext(long contentId, long groupId, 425 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator) 426 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 427 428 /** 429 * Removes all the d d m contents where groupId = ? from the database. 430 * 431 * @param groupId the group ID 432 */ 433 public void removeByGroupId(long groupId); 434 435 /** 436 * Returns the number of d d m contents where groupId = ?. 437 * 438 * @param groupId the group ID 439 * @return the number of matching d d m contents 440 */ 441 public int countByGroupId(long groupId); 442 443 /** 444 * Returns all the d d m contents where companyId = ?. 445 * 446 * @param companyId the company ID 447 * @return the matching d d m contents 448 */ 449 public java.util.List<DDMContent> findByCompanyId(long companyId); 450 451 /** 452 * Returns a range of all the d d m contents where companyId = ?. 453 * 454 * <p> 455 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMContentModelImpl}. 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. 456 * </p> 457 * 458 * @param companyId the company ID 459 * @param start the lower bound of the range of d d m contents 460 * @param end the upper bound of the range of d d m contents (not inclusive) 461 * @return the range of matching d d m contents 462 */ 463 public java.util.List<DDMContent> findByCompanyId(long companyId, 464 int start, int end); 465 466 /** 467 * Returns an ordered range of all the d d m contents where companyId = ?. 468 * 469 * <p> 470 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMContentModelImpl}. 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. 471 * </p> 472 * 473 * @param companyId the company ID 474 * @param start the lower bound of the range of d d m contents 475 * @param end the upper bound of the range of d d m contents (not inclusive) 476 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 477 * @return the ordered range of matching d d m contents 478 */ 479 public java.util.List<DDMContent> findByCompanyId(long companyId, 480 int start, int end, 481 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator); 482 483 /** 484 * Returns the first d d m content in the ordered set where companyId = ?. 485 * 486 * @param companyId the company ID 487 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 488 * @return the first matching d d m content 489 * @throws NoSuchContentException if a matching d d m content could not be found 490 */ 491 public DDMContent findByCompanyId_First(long companyId, 492 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator) 493 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 494 495 /** 496 * Returns the first d d m content in the ordered set where companyId = ?. 497 * 498 * @param companyId the company ID 499 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 500 * @return the first matching d d m content, or <code>null</code> if a matching d d m content could not be found 501 */ 502 public DDMContent fetchByCompanyId_First(long companyId, 503 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator); 504 505 /** 506 * Returns the last d d m content in the ordered set where companyId = ?. 507 * 508 * @param companyId the company ID 509 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 510 * @return the last matching d d m content 511 * @throws NoSuchContentException if a matching d d m content could not be found 512 */ 513 public DDMContent findByCompanyId_Last(long companyId, 514 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator) 515 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 516 517 /** 518 * Returns the last d d m content in the ordered set where companyId = ?. 519 * 520 * @param companyId the company ID 521 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 522 * @return the last matching d d m content, or <code>null</code> if a matching d d m content could not be found 523 */ 524 public DDMContent fetchByCompanyId_Last(long companyId, 525 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator); 526 527 /** 528 * Returns the d d m contents before and after the current d d m content in the ordered set where companyId = ?. 529 * 530 * @param contentId the primary key of the current d d m content 531 * @param companyId the company ID 532 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 533 * @return the previous, current, and next d d m content 534 * @throws NoSuchContentException if a d d m content with the primary key could not be found 535 */ 536 public DDMContent[] findByCompanyId_PrevAndNext(long contentId, 537 long companyId, 538 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator) 539 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 540 541 /** 542 * Removes all the d d m contents where companyId = ? from the database. 543 * 544 * @param companyId the company ID 545 */ 546 public void removeByCompanyId(long companyId); 547 548 /** 549 * Returns the number of d d m contents where companyId = ?. 550 * 551 * @param companyId the company ID 552 * @return the number of matching d d m contents 553 */ 554 public int countByCompanyId(long companyId); 555 556 /** 557 * Caches the d d m content in the entity cache if it is enabled. 558 * 559 * @param ddmContent the d d m content 560 */ 561 public void cacheResult(DDMContent ddmContent); 562 563 /** 564 * Caches the d d m contents in the entity cache if it is enabled. 565 * 566 * @param ddmContents the d d m contents 567 */ 568 public void cacheResult(java.util.List<DDMContent> ddmContents); 569 570 /** 571 * Creates a new d d m content with the primary key. Does not add the d d m content to the database. 572 * 573 * @param contentId the primary key for the new d d m content 574 * @return the new d d m content 575 */ 576 public DDMContent create(long contentId); 577 578 /** 579 * Removes the d d m content with the primary key from the database. Also notifies the appropriate model listeners. 580 * 581 * @param contentId the primary key of the d d m content 582 * @return the d d m content that was removed 583 * @throws NoSuchContentException if a d d m content with the primary key could not be found 584 */ 585 public DDMContent remove(long contentId) 586 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 587 588 public DDMContent updateImpl(DDMContent ddmContent); 589 590 /** 591 * Returns the d d m content with the primary key or throws a {@link NoSuchContentException} if it could not be found. 592 * 593 * @param contentId the primary key of the d d m content 594 * @return the d d m content 595 * @throws NoSuchContentException if a d d m content with the primary key could not be found 596 */ 597 public DDMContent findByPrimaryKey(long contentId) 598 throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException; 599 600 /** 601 * Returns the d d m content with the primary key or returns <code>null</code> if it could not be found. 602 * 603 * @param contentId the primary key of the d d m content 604 * @return the d d m content, or <code>null</code> if a d d m content with the primary key could not be found 605 */ 606 public DDMContent fetchByPrimaryKey(long contentId); 607 608 @Override 609 public java.util.Map<java.io.Serializable, DDMContent> fetchByPrimaryKeys( 610 java.util.Set<java.io.Serializable> primaryKeys); 611 612 /** 613 * Returns all the d d m contents. 614 * 615 * @return the d d m contents 616 */ 617 public java.util.List<DDMContent> findAll(); 618 619 /** 620 * Returns a range of all the d d m contents. 621 * 622 * <p> 623 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMContentModelImpl}. 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. 624 * </p> 625 * 626 * @param start the lower bound of the range of d d m contents 627 * @param end the upper bound of the range of d d m contents (not inclusive) 628 * @return the range of d d m contents 629 */ 630 public java.util.List<DDMContent> findAll(int start, int end); 631 632 /** 633 * Returns an ordered range of all the d d m contents. 634 * 635 * <p> 636 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMContentModelImpl}. 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. 637 * </p> 638 * 639 * @param start the lower bound of the range of d d m contents 640 * @param end the upper bound of the range of d d m contents (not inclusive) 641 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 642 * @return the ordered range of d d m contents 643 */ 644 public java.util.List<DDMContent> findAll(int start, int end, 645 com.liferay.portal.kernel.util.OrderByComparator<DDMContent> orderByComparator); 646 647 /** 648 * Removes all the d d m contents from the database. 649 */ 650 public void removeAll(); 651 652 /** 653 * Returns the number of d d m contents. 654 * 655 * @return the number of d d m contents 656 */ 657 public int countAll(); 658 }