001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.dynamicdatalists.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.dynamicdatalists.model.DDLRecordSet; 020 021 /** 022 * The persistence interface for the d d l record set service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see DDLRecordSetPersistenceImpl 030 * @see DDLRecordSetUtil 031 * @generated 032 */ 033 public interface DDLRecordSetPersistence extends BasePersistence<DDLRecordSet> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link DDLRecordSetUtil} to access the d d l record set persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Returns all the d d l record sets where uuid = ?. 042 * 043 * @param uuid the uuid 044 * @return the matching d d l record sets 045 * @throws SystemException if a system exception occurred 046 */ 047 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByUuid( 048 java.lang.String uuid) 049 throws com.liferay.portal.kernel.exception.SystemException; 050 051 /** 052 * Returns a range of all the d d l record sets 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 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.DDLRecordSetModelImpl}. 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 l record sets 060 * @param end the upper bound of the range of d d l record sets (not inclusive) 061 * @return the range of matching d d l record sets 062 * @throws SystemException if a system exception occurred 063 */ 064 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByUuid( 065 java.lang.String uuid, int start, int end) 066 throws com.liferay.portal.kernel.exception.SystemException; 067 068 /** 069 * Returns an ordered range of all the d d l record sets where uuid = ?. 070 * 071 * <p> 072 * 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.DDLRecordSetModelImpl}. 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. 073 * </p> 074 * 075 * @param uuid the uuid 076 * @param start the lower bound of the range of d d l record sets 077 * @param end the upper bound of the range of d d l record sets (not inclusive) 078 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 079 * @return the ordered range of matching d d l record sets 080 * @throws SystemException if a system exception occurred 081 */ 082 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByUuid( 083 java.lang.String uuid, int start, int end, 084 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 085 throws com.liferay.portal.kernel.exception.SystemException; 086 087 /** 088 * Returns the first d d l record set in the ordered set where uuid = ?. 089 * 090 * @param uuid the uuid 091 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 092 * @return the first matching d d l record set 093 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found 094 * @throws SystemException if a system exception occurred 095 */ 096 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByUuid_First( 097 java.lang.String uuid, 098 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 099 throws com.liferay.portal.kernel.exception.SystemException, 100 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 101 102 /** 103 * Returns the first d d l record set in the ordered set where uuid = ?. 104 * 105 * @param uuid the uuid 106 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 107 * @return the first matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 108 * @throws SystemException if a system exception occurred 109 */ 110 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByUuid_First( 111 java.lang.String uuid, 112 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 113 throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Returns the last d d l record set in the ordered set where uuid = ?. 117 * 118 * @param uuid the uuid 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the last matching d d l record set 121 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found 122 * @throws SystemException if a system exception occurred 123 */ 124 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByUuid_Last( 125 java.lang.String uuid, 126 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 127 throws com.liferay.portal.kernel.exception.SystemException, 128 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 129 130 /** 131 * Returns the last d d l record set in the ordered set where uuid = ?. 132 * 133 * @param uuid the uuid 134 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 135 * @return the last matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 136 * @throws SystemException if a system exception occurred 137 */ 138 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByUuid_Last( 139 java.lang.String uuid, 140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 141 throws com.liferay.portal.kernel.exception.SystemException; 142 143 /** 144 * Returns the d d l record sets before and after the current d d l record set in the ordered set where uuid = ?. 145 * 146 * @param recordSetId the primary key of the current d d l record set 147 * @param uuid the uuid 148 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 149 * @return the previous, current, and next d d l record set 150 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet[] findByUuid_PrevAndNext( 154 long recordSetId, java.lang.String uuid, 155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 156 throws com.liferay.portal.kernel.exception.SystemException, 157 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 158 159 /** 160 * Removes all the d d l record sets where uuid = ? from the database. 161 * 162 * @param uuid the uuid 163 * @throws SystemException if a system exception occurred 164 */ 165 public void removeByUuid(java.lang.String uuid) 166 throws com.liferay.portal.kernel.exception.SystemException; 167 168 /** 169 * Returns the number of d d l record sets where uuid = ?. 170 * 171 * @param uuid the uuid 172 * @return the number of matching d d l record sets 173 * @throws SystemException if a system exception occurred 174 */ 175 public int countByUuid(java.lang.String uuid) 176 throws com.liferay.portal.kernel.exception.SystemException; 177 178 /** 179 * Returns the d d l record set where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException} if it could not be found. 180 * 181 * @param uuid the uuid 182 * @param groupId the group ID 183 * @return the matching d d l record set 184 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByUUID_G( 188 java.lang.String uuid, long groupId) 189 throws com.liferay.portal.kernel.exception.SystemException, 190 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 191 192 /** 193 * Returns the d d l record set where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 194 * 195 * @param uuid the uuid 196 * @param groupId the group ID 197 * @return the matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 198 * @throws SystemException if a system exception occurred 199 */ 200 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByUUID_G( 201 java.lang.String uuid, long groupId) 202 throws com.liferay.portal.kernel.exception.SystemException; 203 204 /** 205 * Returns the d d l record set where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 206 * 207 * @param uuid the uuid 208 * @param groupId the group ID 209 * @param retrieveFromCache whether to use the finder cache 210 * @return the matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 211 * @throws SystemException if a system exception occurred 212 */ 213 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByUUID_G( 214 java.lang.String uuid, long groupId, boolean retrieveFromCache) 215 throws com.liferay.portal.kernel.exception.SystemException; 216 217 /** 218 * Removes the d d l record set where uuid = ? and groupId = ? from the database. 219 * 220 * @param uuid the uuid 221 * @param groupId the group ID 222 * @return the d d l record set that was removed 223 * @throws SystemException if a system exception occurred 224 */ 225 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet removeByUUID_G( 226 java.lang.String uuid, long groupId) 227 throws com.liferay.portal.kernel.exception.SystemException, 228 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 229 230 /** 231 * Returns the number of d d l record sets where uuid = ? and groupId = ?. 232 * 233 * @param uuid the uuid 234 * @param groupId the group ID 235 * @return the number of matching d d l record sets 236 * @throws SystemException if a system exception occurred 237 */ 238 public int countByUUID_G(java.lang.String uuid, long groupId) 239 throws com.liferay.portal.kernel.exception.SystemException; 240 241 /** 242 * Returns all the d d l record sets where uuid = ? and companyId = ?. 243 * 244 * @param uuid the uuid 245 * @param companyId the company ID 246 * @return the matching d d l record sets 247 * @throws SystemException if a system exception occurred 248 */ 249 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByUuid_C( 250 java.lang.String uuid, long companyId) 251 throws com.liferay.portal.kernel.exception.SystemException; 252 253 /** 254 * Returns a range of all the d d l record sets where uuid = ? and companyId = ?. 255 * 256 * <p> 257 * 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.DDLRecordSetModelImpl}. 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. 258 * </p> 259 * 260 * @param uuid the uuid 261 * @param companyId the company ID 262 * @param start the lower bound of the range of d d l record sets 263 * @param end the upper bound of the range of d d l record sets (not inclusive) 264 * @return the range of matching d d l record sets 265 * @throws SystemException if a system exception occurred 266 */ 267 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByUuid_C( 268 java.lang.String uuid, long companyId, int start, int end) 269 throws com.liferay.portal.kernel.exception.SystemException; 270 271 /** 272 * Returns an ordered range of all the d d l record sets where uuid = ? and companyId = ?. 273 * 274 * <p> 275 * 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.DDLRecordSetModelImpl}. 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. 276 * </p> 277 * 278 * @param uuid the uuid 279 * @param companyId the company ID 280 * @param start the lower bound of the range of d d l record sets 281 * @param end the upper bound of the range of d d l record sets (not inclusive) 282 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 283 * @return the ordered range of matching d d l record sets 284 * @throws SystemException if a system exception occurred 285 */ 286 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByUuid_C( 287 java.lang.String uuid, long companyId, int start, int end, 288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 289 throws com.liferay.portal.kernel.exception.SystemException; 290 291 /** 292 * Returns the first d d l record set in the ordered set where uuid = ? and companyId = ?. 293 * 294 * @param uuid the uuid 295 * @param companyId the company ID 296 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 297 * @return the first matching d d l record set 298 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found 299 * @throws SystemException if a system exception occurred 300 */ 301 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByUuid_C_First( 302 java.lang.String uuid, long companyId, 303 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 304 throws com.liferay.portal.kernel.exception.SystemException, 305 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 306 307 /** 308 * Returns the first d d l record set in the ordered set where uuid = ? and companyId = ?. 309 * 310 * @param uuid the uuid 311 * @param companyId the company ID 312 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 313 * @return the first matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 314 * @throws SystemException if a system exception occurred 315 */ 316 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByUuid_C_First( 317 java.lang.String uuid, long companyId, 318 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 319 throws com.liferay.portal.kernel.exception.SystemException; 320 321 /** 322 * Returns the last d d l record set in the ordered set where uuid = ? and companyId = ?. 323 * 324 * @param uuid the uuid 325 * @param companyId the company ID 326 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 327 * @return the last matching d d l record set 328 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found 329 * @throws SystemException if a system exception occurred 330 */ 331 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByUuid_C_Last( 332 java.lang.String uuid, long companyId, 333 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 334 throws com.liferay.portal.kernel.exception.SystemException, 335 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 336 337 /** 338 * Returns the last d d l record set in the ordered set where uuid = ? and companyId = ?. 339 * 340 * @param uuid the uuid 341 * @param companyId the company ID 342 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 343 * @return the last matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 344 * @throws SystemException if a system exception occurred 345 */ 346 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByUuid_C_Last( 347 java.lang.String uuid, long companyId, 348 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 349 throws com.liferay.portal.kernel.exception.SystemException; 350 351 /** 352 * Returns the d d l record sets before and after the current d d l record set in the ordered set where uuid = ? and companyId = ?. 353 * 354 * @param recordSetId the primary key of the current d d l record set 355 * @param uuid the uuid 356 * @param companyId the company ID 357 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 358 * @return the previous, current, and next d d l record set 359 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found 360 * @throws SystemException if a system exception occurred 361 */ 362 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet[] findByUuid_C_PrevAndNext( 363 long recordSetId, java.lang.String uuid, long companyId, 364 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 365 throws com.liferay.portal.kernel.exception.SystemException, 366 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 367 368 /** 369 * Removes all the d d l record sets where uuid = ? and companyId = ? from the database. 370 * 371 * @param uuid the uuid 372 * @param companyId the company ID 373 * @throws SystemException if a system exception occurred 374 */ 375 public void removeByUuid_C(java.lang.String uuid, long companyId) 376 throws com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Returns the number of d d l record sets where uuid = ? and companyId = ?. 380 * 381 * @param uuid the uuid 382 * @param companyId the company ID 383 * @return the number of matching d d l record sets 384 * @throws SystemException if a system exception occurred 385 */ 386 public int countByUuid_C(java.lang.String uuid, long companyId) 387 throws com.liferay.portal.kernel.exception.SystemException; 388 389 /** 390 * Returns all the d d l record sets where groupId = ?. 391 * 392 * @param groupId the group ID 393 * @return the matching d d l record sets 394 * @throws SystemException if a system exception occurred 395 */ 396 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByGroupId( 397 long groupId) 398 throws com.liferay.portal.kernel.exception.SystemException; 399 400 /** 401 * Returns a range of all the d d l record sets where groupId = ?. 402 * 403 * <p> 404 * 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.DDLRecordSetModelImpl}. 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. 405 * </p> 406 * 407 * @param groupId the group ID 408 * @param start the lower bound of the range of d d l record sets 409 * @param end the upper bound of the range of d d l record sets (not inclusive) 410 * @return the range of matching d d l record sets 411 * @throws SystemException if a system exception occurred 412 */ 413 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByGroupId( 414 long groupId, int start, int end) 415 throws com.liferay.portal.kernel.exception.SystemException; 416 417 /** 418 * Returns an ordered range of all the d d l record sets where groupId = ?. 419 * 420 * <p> 421 * 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.DDLRecordSetModelImpl}. 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. 422 * </p> 423 * 424 * @param groupId the group ID 425 * @param start the lower bound of the range of d d l record sets 426 * @param end the upper bound of the range of d d l record sets (not inclusive) 427 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 428 * @return the ordered range of matching d d l record sets 429 * @throws SystemException if a system exception occurred 430 */ 431 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByGroupId( 432 long groupId, int start, int end, 433 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 434 throws com.liferay.portal.kernel.exception.SystemException; 435 436 /** 437 * Returns the first d d l record set in the ordered set where groupId = ?. 438 * 439 * @param groupId the group ID 440 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 441 * @return the first matching d d l record set 442 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found 443 * @throws SystemException if a system exception occurred 444 */ 445 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByGroupId_First( 446 long groupId, 447 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 448 throws com.liferay.portal.kernel.exception.SystemException, 449 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 450 451 /** 452 * Returns the first d d l record set in the ordered set where groupId = ?. 453 * 454 * @param groupId the group ID 455 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 456 * @return the first matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 457 * @throws SystemException if a system exception occurred 458 */ 459 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByGroupId_First( 460 long groupId, 461 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 462 throws com.liferay.portal.kernel.exception.SystemException; 463 464 /** 465 * Returns the last d d l record set in the ordered set where groupId = ?. 466 * 467 * @param groupId the group ID 468 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 469 * @return the last matching d d l record set 470 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found 471 * @throws SystemException if a system exception occurred 472 */ 473 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByGroupId_Last( 474 long groupId, 475 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 476 throws com.liferay.portal.kernel.exception.SystemException, 477 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 478 479 /** 480 * Returns the last d d l record set in the ordered set where groupId = ?. 481 * 482 * @param groupId the group ID 483 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 484 * @return the last matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 485 * @throws SystemException if a system exception occurred 486 */ 487 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByGroupId_Last( 488 long groupId, 489 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 490 throws com.liferay.portal.kernel.exception.SystemException; 491 492 /** 493 * Returns the d d l record sets before and after the current d d l record set in the ordered set where groupId = ?. 494 * 495 * @param recordSetId the primary key of the current d d l record set 496 * @param groupId the group ID 497 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 498 * @return the previous, current, and next d d l record set 499 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found 500 * @throws SystemException if a system exception occurred 501 */ 502 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet[] findByGroupId_PrevAndNext( 503 long recordSetId, long groupId, 504 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 505 throws com.liferay.portal.kernel.exception.SystemException, 506 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 507 508 /** 509 * Returns all the d d l record sets that the user has permission to view where groupId = ?. 510 * 511 * @param groupId the group ID 512 * @return the matching d d l record sets that the user has permission to view 513 * @throws SystemException if a system exception occurred 514 */ 515 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByGroupId( 516 long groupId) 517 throws com.liferay.portal.kernel.exception.SystemException; 518 519 /** 520 * Returns a range of all the d d l record sets that the user has permission to view where groupId = ?. 521 * 522 * <p> 523 * 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.DDLRecordSetModelImpl}. 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. 524 * </p> 525 * 526 * @param groupId the group ID 527 * @param start the lower bound of the range of d d l record sets 528 * @param end the upper bound of the range of d d l record sets (not inclusive) 529 * @return the range of matching d d l record sets that the user has permission to view 530 * @throws SystemException if a system exception occurred 531 */ 532 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByGroupId( 533 long groupId, int start, int end) 534 throws com.liferay.portal.kernel.exception.SystemException; 535 536 /** 537 * Returns an ordered range of all the d d l record sets that the user has permissions to view where groupId = ?. 538 * 539 * <p> 540 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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.DDLRecordSetModelImpl}. 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. 541 * </p> 542 * 543 * @param groupId the group ID 544 * @param start the lower bound of the range of d d l record sets 545 * @param end the upper bound of the range of d d l record sets (not inclusive) 546 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 547 * @return the ordered range of matching d d l record sets that the user has permission to view 548 * @throws SystemException if a system exception occurred 549 */ 550 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByGroupId( 551 long groupId, int start, int end, 552 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 553 throws com.liferay.portal.kernel.exception.SystemException; 554 555 /** 556 * Returns the d d l record sets before and after the current d d l record set in the ordered set of d d l record sets that the user has permission to view where groupId = ?. 557 * 558 * @param recordSetId the primary key of the current d d l record set 559 * @param groupId the group ID 560 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 561 * @return the previous, current, and next d d l record set 562 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found 563 * @throws SystemException if a system exception occurred 564 */ 565 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet[] filterFindByGroupId_PrevAndNext( 566 long recordSetId, long groupId, 567 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 568 throws com.liferay.portal.kernel.exception.SystemException, 569 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 570 571 /** 572 * Removes all the d d l record sets where groupId = ? from the database. 573 * 574 * @param groupId the group ID 575 * @throws SystemException if a system exception occurred 576 */ 577 public void removeByGroupId(long groupId) 578 throws com.liferay.portal.kernel.exception.SystemException; 579 580 /** 581 * Returns the number of d d l record sets where groupId = ?. 582 * 583 * @param groupId the group ID 584 * @return the number of matching d d l record sets 585 * @throws SystemException if a system exception occurred 586 */ 587 public int countByGroupId(long groupId) 588 throws com.liferay.portal.kernel.exception.SystemException; 589 590 /** 591 * Returns the number of d d l record sets that the user has permission to view where groupId = ?. 592 * 593 * @param groupId the group ID 594 * @return the number of matching d d l record sets that the user has permission to view 595 * @throws SystemException if a system exception occurred 596 */ 597 public int filterCountByGroupId(long groupId) 598 throws com.liferay.portal.kernel.exception.SystemException; 599 600 /** 601 * Returns the d d l record set where groupId = ? and recordSetKey = ? or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException} if it could not be found. 602 * 603 * @param groupId the group ID 604 * @param recordSetKey the record set key 605 * @return the matching d d l record set 606 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found 607 * @throws SystemException if a system exception occurred 608 */ 609 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByG_R( 610 long groupId, java.lang.String recordSetKey) 611 throws com.liferay.portal.kernel.exception.SystemException, 612 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 613 614 /** 615 * Returns the d d l record set where groupId = ? and recordSetKey = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 616 * 617 * @param groupId the group ID 618 * @param recordSetKey the record set key 619 * @return the matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 620 * @throws SystemException if a system exception occurred 621 */ 622 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByG_R( 623 long groupId, java.lang.String recordSetKey) 624 throws com.liferay.portal.kernel.exception.SystemException; 625 626 /** 627 * Returns the d d l record set where groupId = ? and recordSetKey = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 628 * 629 * @param groupId the group ID 630 * @param recordSetKey the record set key 631 * @param retrieveFromCache whether to use the finder cache 632 * @return the matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 633 * @throws SystemException if a system exception occurred 634 */ 635 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByG_R( 636 long groupId, java.lang.String recordSetKey, boolean retrieveFromCache) 637 throws com.liferay.portal.kernel.exception.SystemException; 638 639 /** 640 * Removes the d d l record set where groupId = ? and recordSetKey = ? from the database. 641 * 642 * @param groupId the group ID 643 * @param recordSetKey the record set key 644 * @return the d d l record set that was removed 645 * @throws SystemException if a system exception occurred 646 */ 647 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet removeByG_R( 648 long groupId, java.lang.String recordSetKey) 649 throws com.liferay.portal.kernel.exception.SystemException, 650 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 651 652 /** 653 * Returns the number of d d l record sets where groupId = ? and recordSetKey = ?. 654 * 655 * @param groupId the group ID 656 * @param recordSetKey the record set key 657 * @return the number of matching d d l record sets 658 * @throws SystemException if a system exception occurred 659 */ 660 public int countByG_R(long groupId, java.lang.String recordSetKey) 661 throws com.liferay.portal.kernel.exception.SystemException; 662 663 /** 664 * Caches the d d l record set in the entity cache if it is enabled. 665 * 666 * @param ddlRecordSet the d d l record set 667 */ 668 public void cacheResult( 669 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet); 670 671 /** 672 * Caches the d d l record sets in the entity cache if it is enabled. 673 * 674 * @param ddlRecordSets the d d l record sets 675 */ 676 public void cacheResult( 677 java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> ddlRecordSets); 678 679 /** 680 * Creates a new d d l record set with the primary key. Does not add the d d l record set to the database. 681 * 682 * @param recordSetId the primary key for the new d d l record set 683 * @return the new d d l record set 684 */ 685 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet create( 686 long recordSetId); 687 688 /** 689 * Removes the d d l record set with the primary key from the database. Also notifies the appropriate model listeners. 690 * 691 * @param recordSetId the primary key of the d d l record set 692 * @return the d d l record set that was removed 693 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found 694 * @throws SystemException if a system exception occurred 695 */ 696 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet remove( 697 long recordSetId) 698 throws com.liferay.portal.kernel.exception.SystemException, 699 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 700 701 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateImpl( 702 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet) 703 throws com.liferay.portal.kernel.exception.SystemException; 704 705 /** 706 * Returns the d d l record set with the primary key or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException} if it could not be found. 707 * 708 * @param recordSetId the primary key of the d d l record set 709 * @return the d d l record set 710 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found 711 * @throws SystemException if a system exception occurred 712 */ 713 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByPrimaryKey( 714 long recordSetId) 715 throws com.liferay.portal.kernel.exception.SystemException, 716 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException; 717 718 /** 719 * Returns the d d l record set with the primary key or returns <code>null</code> if it could not be found. 720 * 721 * @param recordSetId the primary key of the d d l record set 722 * @return the d d l record set, or <code>null</code> if a d d l record set with the primary key could not be found 723 * @throws SystemException if a system exception occurred 724 */ 725 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByPrimaryKey( 726 long recordSetId) 727 throws com.liferay.portal.kernel.exception.SystemException; 728 729 /** 730 * Returns all the d d l record sets. 731 * 732 * @return the d d l record sets 733 * @throws SystemException if a system exception occurred 734 */ 735 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findAll() 736 throws com.liferay.portal.kernel.exception.SystemException; 737 738 /** 739 * Returns a range of all the d d l record sets. 740 * 741 * <p> 742 * 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.DDLRecordSetModelImpl}. 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. 743 * </p> 744 * 745 * @param start the lower bound of the range of d d l record sets 746 * @param end the upper bound of the range of d d l record sets (not inclusive) 747 * @return the range of d d l record sets 748 * @throws SystemException if a system exception occurred 749 */ 750 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findAll( 751 int start, int end) 752 throws com.liferay.portal.kernel.exception.SystemException; 753 754 /** 755 * Returns an ordered range of all the d d l record sets. 756 * 757 * <p> 758 * 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.DDLRecordSetModelImpl}. 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. 759 * </p> 760 * 761 * @param start the lower bound of the range of d d l record sets 762 * @param end the upper bound of the range of d d l record sets (not inclusive) 763 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 764 * @return the ordered range of d d l record sets 765 * @throws SystemException if a system exception occurred 766 */ 767 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findAll( 768 int start, int end, 769 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 770 throws com.liferay.portal.kernel.exception.SystemException; 771 772 /** 773 * Removes all the d d l record sets from the database. 774 * 775 * @throws SystemException if a system exception occurred 776 */ 777 public void removeAll() 778 throws com.liferay.portal.kernel.exception.SystemException; 779 780 /** 781 * Returns the number of d d l record sets. 782 * 783 * @return the number of d d l record sets 784 * @throws SystemException if a system exception occurred 785 */ 786 public int countAll() 787 throws com.liferay.portal.kernel.exception.SystemException; 788 }