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.dynamicdatalists.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.dynamicdatalists.model.DDLRecord; 022 023 /** 024 * The persistence interface for the d d l record 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 DDLRecordPersistenceImpl 032 * @see DDLRecordUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface DDLRecordPersistence extends BasePersistence<DDLRecord> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link DDLRecordUtil} to access the d d l record persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the d d l records where uuid = ?. 045 * 046 * @param uuid the uuid 047 * @return the matching d d l records 048 */ 049 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid( 050 java.lang.String uuid); 051 052 /** 053 * Returns a range of all the d d l records 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.dynamicdatalists.model.impl.DDLRecordModelImpl}. 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 l records 061 * @param end the upper bound of the range of d d l records (not inclusive) 062 * @return the range of matching d d l records 063 */ 064 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid( 065 java.lang.String uuid, int start, int end); 066 067 /** 068 * Returns an ordered range of all the d d l records 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.dynamicdatalists.model.impl.DDLRecordModelImpl}. 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 l records 076 * @param end the upper bound of the range of d d l records (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 l records 079 */ 080 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid( 081 java.lang.String uuid, int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 083 084 /** 085 * Returns the first d d l record 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 l record 090 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 091 */ 092 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_First( 093 java.lang.String uuid, 094 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) 095 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 096 097 /** 098 * Returns the first d d l record 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 l record, or <code>null</code> if a matching d d l record could not be found 103 */ 104 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_First( 105 java.lang.String uuid, 106 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 107 108 /** 109 * Returns the last d d l record 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 l record 114 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 115 */ 116 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_Last( 117 java.lang.String uuid, 118 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) 119 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 120 121 /** 122 * Returns the last d d l record 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 l record, or <code>null</code> if a matching d d l record could not be found 127 */ 128 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_Last( 129 java.lang.String uuid, 130 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 131 132 /** 133 * Returns the d d l records before and after the current d d l record in the ordered set where uuid = ?. 134 * 135 * @param recordId the primary key of the current d d l record 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 l record 139 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found 140 */ 141 public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByUuid_PrevAndNext( 142 long recordId, java.lang.String uuid, 143 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) 144 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 145 146 /** 147 * Removes all the d d l records 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 l records where uuid = ?. 155 * 156 * @param uuid the uuid 157 * @return the number of matching d d l records 158 */ 159 public int countByUuid(java.lang.String uuid); 160 161 /** 162 * Returns the d d l record where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordException} if it could not be found. 163 * 164 * @param uuid the uuid 165 * @param groupId the group ID 166 * @return the matching d d l record 167 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 168 */ 169 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUUID_G( 170 java.lang.String uuid, long groupId) 171 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 172 173 /** 174 * Returns the d d l record 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 l record, or <code>null</code> if a matching d d l record could not be found 179 */ 180 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUUID_G( 181 java.lang.String uuid, long groupId); 182 183 /** 184 * Returns the d d l record 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 l record, or <code>null</code> if a matching d d l record could not be found 190 */ 191 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUUID_G( 192 java.lang.String uuid, long groupId, boolean retrieveFromCache); 193 194 /** 195 * Removes the d d l record where uuid = ? and groupId = ? from the database. 196 * 197 * @param uuid the uuid 198 * @param groupId the group ID 199 * @return the d d l record that was removed 200 */ 201 public com.liferay.portlet.dynamicdatalists.model.DDLRecord removeByUUID_G( 202 java.lang.String uuid, long groupId) 203 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 204 205 /** 206 * Returns the number of d d l records where uuid = ? and groupId = ?. 207 * 208 * @param uuid the uuid 209 * @param groupId the group ID 210 * @return the number of matching d d l records 211 */ 212 public int countByUUID_G(java.lang.String uuid, long groupId); 213 214 /** 215 * Returns all the d d l records where uuid = ? and companyId = ?. 216 * 217 * @param uuid the uuid 218 * @param companyId the company ID 219 * @return the matching d d l records 220 */ 221 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid_C( 222 java.lang.String uuid, long companyId); 223 224 /** 225 * Returns a range of all the d d l records 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.dynamicdatalists.model.impl.DDLRecordModelImpl}. 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 l records 234 * @param end the upper bound of the range of d d l records (not inclusive) 235 * @return the range of matching d d l records 236 */ 237 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> 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 l records 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.dynamicdatalists.model.impl.DDLRecordModelImpl}. 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 l records 250 * @param end the upper bound of the range of d d l records (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 l records 253 */ 254 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid_C( 255 java.lang.String uuid, long companyId, int start, int end, 256 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 257 258 /** 259 * Returns the first d d l record 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 l record 265 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 266 */ 267 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_C_First( 268 java.lang.String uuid, long companyId, 269 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) 270 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 271 272 /** 273 * Returns the first d d l record 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 l record, or <code>null</code> if a matching d d l record could not be found 279 */ 280 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_C_First( 281 java.lang.String uuid, long companyId, 282 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 283 284 /** 285 * Returns the last d d l record 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 l record 291 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 292 */ 293 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_C_Last( 294 java.lang.String uuid, long companyId, 295 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) 296 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 297 298 /** 299 * Returns the last d d l record 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 l record, or <code>null</code> if a matching d d l record could not be found 305 */ 306 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_C_Last( 307 java.lang.String uuid, long companyId, 308 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 309 310 /** 311 * Returns the d d l records before and after the current d d l record in the ordered set where uuid = ? and companyId = ?. 312 * 313 * @param recordId the primary key of the current d d l record 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 l record 318 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found 319 */ 320 public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByUuid_C_PrevAndNext( 321 long recordId, java.lang.String uuid, long companyId, 322 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) 323 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 324 325 /** 326 * Removes all the d d l records 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 l records where uuid = ? and companyId = ?. 335 * 336 * @param uuid the uuid 337 * @param companyId the company ID 338 * @return the number of matching d d l records 339 */ 340 public int countByUuid_C(java.lang.String uuid, long companyId); 341 342 /** 343 * Returns all the d d l records where companyId = ?. 344 * 345 * @param companyId the company ID 346 * @return the matching d d l records 347 */ 348 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByCompanyId( 349 long companyId); 350 351 /** 352 * Returns a range of all the d d l records where companyId = ?. 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.dynamicdatalists.model.impl.DDLRecordModelImpl}. 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 companyId the company ID 359 * @param start the lower bound of the range of d d l records 360 * @param end the upper bound of the range of d d l records (not inclusive) 361 * @return the range of matching d d l records 362 */ 363 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByCompanyId( 364 long companyId, int start, int end); 365 366 /** 367 * Returns an ordered range of all the d d l records where companyId = ?. 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.dynamicdatalists.model.impl.DDLRecordModelImpl}. 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 companyId the company ID 374 * @param start the lower bound of the range of d d l records 375 * @param end the upper bound of the range of d d l records (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 l records 378 */ 379 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByCompanyId( 380 long companyId, int start, int end, 381 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 382 383 /** 384 * Returns the first d d l record in the ordered set where companyId = ?. 385 * 386 * @param companyId the company ID 387 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 388 * @return the first matching d d l record 389 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 390 */ 391 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByCompanyId_First( 392 long companyId, 393 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) 394 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 395 396 /** 397 * Returns the first d d l record in the ordered set where companyId = ?. 398 * 399 * @param companyId the company ID 400 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 401 * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found 402 */ 403 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByCompanyId_First( 404 long companyId, 405 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 406 407 /** 408 * Returns the last d d l record in the ordered set where companyId = ?. 409 * 410 * @param companyId the company ID 411 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 412 * @return the last matching d d l record 413 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 414 */ 415 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByCompanyId_Last( 416 long companyId, 417 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) 418 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 419 420 /** 421 * Returns the last d d l record in the ordered set where companyId = ?. 422 * 423 * @param companyId the company ID 424 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 425 * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found 426 */ 427 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByCompanyId_Last( 428 long companyId, 429 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 430 431 /** 432 * Returns the d d l records before and after the current d d l record in the ordered set where companyId = ?. 433 * 434 * @param recordId the primary key of the current d d l record 435 * @param companyId the company ID 436 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 437 * @return the previous, current, and next d d l record 438 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found 439 */ 440 public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByCompanyId_PrevAndNext( 441 long recordId, long companyId, 442 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) 443 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 444 445 /** 446 * Removes all the d d l records where companyId = ? from the database. 447 * 448 * @param companyId the company ID 449 */ 450 public void removeByCompanyId(long companyId); 451 452 /** 453 * Returns the number of d d l records where companyId = ?. 454 * 455 * @param companyId the company ID 456 * @return the number of matching d d l records 457 */ 458 public int countByCompanyId(long companyId); 459 460 /** 461 * Returns all the d d l records where recordSetId = ?. 462 * 463 * @param recordSetId the record set ID 464 * @return the matching d d l records 465 */ 466 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId( 467 long recordSetId); 468 469 /** 470 * Returns a range of all the d d l records where recordSetId = ?. 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.dynamicdatalists.model.impl.DDLRecordModelImpl}. 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 recordSetId the record set ID 477 * @param start the lower bound of the range of d d l records 478 * @param end the upper bound of the range of d d l records (not inclusive) 479 * @return the range of matching d d l records 480 */ 481 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId( 482 long recordSetId, int start, int end); 483 484 /** 485 * Returns an ordered range of all the d d l records where recordSetId = ?. 486 * 487 * <p> 488 * 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.dynamicdatalists.model.impl.DDLRecordModelImpl}. 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. 489 * </p> 490 * 491 * @param recordSetId the record set ID 492 * @param start the lower bound of the range of d d l records 493 * @param end the upper bound of the range of d d l records (not inclusive) 494 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 495 * @return the ordered range of matching d d l records 496 */ 497 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId( 498 long recordSetId, int start, int end, 499 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 500 501 /** 502 * Returns the first d d l record in the ordered set where recordSetId = ?. 503 * 504 * @param recordSetId the record set ID 505 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 506 * @return the first matching d d l record 507 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 508 */ 509 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByRecordSetId_First( 510 long recordSetId, 511 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) 512 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 513 514 /** 515 * Returns the first d d l record in the ordered set where recordSetId = ?. 516 * 517 * @param recordSetId the record set ID 518 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 519 * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found 520 */ 521 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByRecordSetId_First( 522 long recordSetId, 523 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 524 525 /** 526 * Returns the last d d l record in the ordered set where recordSetId = ?. 527 * 528 * @param recordSetId the record set ID 529 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 530 * @return the last matching d d l record 531 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 532 */ 533 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByRecordSetId_Last( 534 long recordSetId, 535 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) 536 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 537 538 /** 539 * Returns the last d d l record in the ordered set where recordSetId = ?. 540 * 541 * @param recordSetId the record set ID 542 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 543 * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found 544 */ 545 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByRecordSetId_Last( 546 long recordSetId, 547 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 548 549 /** 550 * Returns the d d l records before and after the current d d l record in the ordered set where recordSetId = ?. 551 * 552 * @param recordId the primary key of the current d d l record 553 * @param recordSetId the record set ID 554 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 555 * @return the previous, current, and next d d l record 556 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found 557 */ 558 public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByRecordSetId_PrevAndNext( 559 long recordId, long recordSetId, 560 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) 561 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 562 563 /** 564 * Removes all the d d l records where recordSetId = ? from the database. 565 * 566 * @param recordSetId the record set ID 567 */ 568 public void removeByRecordSetId(long recordSetId); 569 570 /** 571 * Returns the number of d d l records where recordSetId = ?. 572 * 573 * @param recordSetId the record set ID 574 * @return the number of matching d d l records 575 */ 576 public int countByRecordSetId(long recordSetId); 577 578 /** 579 * Returns all the d d l records where recordSetId = ? and userId = ?. 580 * 581 * @param recordSetId the record set ID 582 * @param userId the user ID 583 * @return the matching d d l records 584 */ 585 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U( 586 long recordSetId, long userId); 587 588 /** 589 * Returns a range of all the d d l records where recordSetId = ? and userId = ?. 590 * 591 * <p> 592 * 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.dynamicdatalists.model.impl.DDLRecordModelImpl}. 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. 593 * </p> 594 * 595 * @param recordSetId the record set ID 596 * @param userId the user ID 597 * @param start the lower bound of the range of d d l records 598 * @param end the upper bound of the range of d d l records (not inclusive) 599 * @return the range of matching d d l records 600 */ 601 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U( 602 long recordSetId, long userId, int start, int end); 603 604 /** 605 * Returns an ordered range of all the d d l records where recordSetId = ? and userId = ?. 606 * 607 * <p> 608 * 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.dynamicdatalists.model.impl.DDLRecordModelImpl}. 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. 609 * </p> 610 * 611 * @param recordSetId the record set ID 612 * @param userId the user ID 613 * @param start the lower bound of the range of d d l records 614 * @param end the upper bound of the range of d d l records (not inclusive) 615 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 616 * @return the ordered range of matching d d l records 617 */ 618 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U( 619 long recordSetId, long userId, int start, int end, 620 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 621 622 /** 623 * Returns the first d d l record in the ordered set where recordSetId = ? and userId = ?. 624 * 625 * @param recordSetId the record set ID 626 * @param userId the user ID 627 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 628 * @return the first matching d d l record 629 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 630 */ 631 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByR_U_First( 632 long recordSetId, long userId, 633 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) 634 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 635 636 /** 637 * Returns the first d d l record in the ordered set where recordSetId = ? and userId = ?. 638 * 639 * @param recordSetId the record set ID 640 * @param userId the user ID 641 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 642 * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found 643 */ 644 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByR_U_First( 645 long recordSetId, long userId, 646 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 647 648 /** 649 * Returns the last d d l record in the ordered set where recordSetId = ? and userId = ?. 650 * 651 * @param recordSetId the record set ID 652 * @param userId the user ID 653 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 654 * @return the last matching d d l record 655 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 656 */ 657 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByR_U_Last( 658 long recordSetId, long userId, 659 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) 660 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 661 662 /** 663 * Returns the last d d l record in the ordered set where recordSetId = ? and userId = ?. 664 * 665 * @param recordSetId the record set ID 666 * @param userId the user ID 667 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 668 * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found 669 */ 670 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByR_U_Last( 671 long recordSetId, long userId, 672 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 673 674 /** 675 * Returns the d d l records before and after the current d d l record in the ordered set where recordSetId = ? and userId = ?. 676 * 677 * @param recordId the primary key of the current d d l record 678 * @param recordSetId the record set ID 679 * @param userId the user ID 680 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 681 * @return the previous, current, and next d d l record 682 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found 683 */ 684 public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByR_U_PrevAndNext( 685 long recordId, long recordSetId, long userId, 686 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) 687 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 688 689 /** 690 * Removes all the d d l records where recordSetId = ? and userId = ? from the database. 691 * 692 * @param recordSetId the record set ID 693 * @param userId the user ID 694 */ 695 public void removeByR_U(long recordSetId, long userId); 696 697 /** 698 * Returns the number of d d l records where recordSetId = ? and userId = ?. 699 * 700 * @param recordSetId the record set ID 701 * @param userId the user ID 702 * @return the number of matching d d l records 703 */ 704 public int countByR_U(long recordSetId, long userId); 705 706 /** 707 * Caches the d d l record in the entity cache if it is enabled. 708 * 709 * @param ddlRecord the d d l record 710 */ 711 public void cacheResult( 712 com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord); 713 714 /** 715 * Caches the d d l records in the entity cache if it is enabled. 716 * 717 * @param ddlRecords the d d l records 718 */ 719 public void cacheResult( 720 java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> ddlRecords); 721 722 /** 723 * Creates a new d d l record with the primary key. Does not add the d d l record to the database. 724 * 725 * @param recordId the primary key for the new d d l record 726 * @return the new d d l record 727 */ 728 public com.liferay.portlet.dynamicdatalists.model.DDLRecord create( 729 long recordId); 730 731 /** 732 * Removes the d d l record with the primary key from the database. Also notifies the appropriate model listeners. 733 * 734 * @param recordId the primary key of the d d l record 735 * @return the d d l record that was removed 736 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found 737 */ 738 public com.liferay.portlet.dynamicdatalists.model.DDLRecord remove( 739 long recordId) 740 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 741 742 public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateImpl( 743 com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord); 744 745 /** 746 * Returns the d d l record with the primary key or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordException} if it could not be found. 747 * 748 * @param recordId the primary key of the d d l record 749 * @return the d d l record 750 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found 751 */ 752 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByPrimaryKey( 753 long recordId) 754 throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 755 756 /** 757 * Returns the d d l record with the primary key or returns <code>null</code> if it could not be found. 758 * 759 * @param recordId the primary key of the d d l record 760 * @return the d d l record, or <code>null</code> if a d d l record with the primary key could not be found 761 */ 762 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByPrimaryKey( 763 long recordId); 764 765 @Override 766 public java.util.Map<java.io.Serializable, com.liferay.portlet.dynamicdatalists.model.DDLRecord> fetchByPrimaryKeys( 767 java.util.Set<java.io.Serializable> primaryKeys); 768 769 /** 770 * Returns all the d d l records. 771 * 772 * @return the d d l records 773 */ 774 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll(); 775 776 /** 777 * Returns a range of all the d d l records. 778 * 779 * <p> 780 * 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.dynamicdatalists.model.impl.DDLRecordModelImpl}. 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. 781 * </p> 782 * 783 * @param start the lower bound of the range of d d l records 784 * @param end the upper bound of the range of d d l records (not inclusive) 785 * @return the range of d d l records 786 */ 787 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll( 788 int start, int end); 789 790 /** 791 * Returns an ordered range of all the d d l records. 792 * 793 * <p> 794 * 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.dynamicdatalists.model.impl.DDLRecordModelImpl}. 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. 795 * </p> 796 * 797 * @param start the lower bound of the range of d d l records 798 * @param end the upper bound of the range of d d l records (not inclusive) 799 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 800 * @return the ordered range of d d l records 801 */ 802 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll( 803 int start, int end, 804 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator); 805 806 /** 807 * Removes all the d d l records from the database. 808 */ 809 public void removeAll(); 810 811 /** 812 * Returns the number of d d l records. 813 * 814 * @return the number of d d l records 815 */ 816 public int countAll(); 817 }