001 /** 002 * Copyright (c) 2000-2013 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.shopping.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.shopping.model.ShoppingOrder; 020 021 /** 022 * The persistence interface for the shopping order 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 ShoppingOrderPersistenceImpl 030 * @see ShoppingOrderUtil 031 * @generated 032 */ 033 public interface ShoppingOrderPersistence extends BasePersistence<ShoppingOrder> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link ShoppingOrderUtil} to access the shopping order persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Returns all the shopping orders where groupId = ?. 042 * 043 * @param groupId the group ID 044 * @return the matching shopping orders 045 * @throws SystemException if a system exception occurred 046 */ 047 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId( 048 long groupId) 049 throws com.liferay.portal.kernel.exception.SystemException; 050 051 /** 052 * Returns a range of all the shopping orders where groupId = ?. 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.shopping.model.impl.ShoppingOrderModelImpl}. 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 groupId the group ID 059 * @param start the lower bound of the range of shopping orders 060 * @param end the upper bound of the range of shopping orders (not inclusive) 061 * @return the range of matching shopping orders 062 * @throws SystemException if a system exception occurred 063 */ 064 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId( 065 long groupId, int start, int end) 066 throws com.liferay.portal.kernel.exception.SystemException; 067 068 /** 069 * Returns an ordered range of all the shopping orders where groupId = ?. 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.shopping.model.impl.ShoppingOrderModelImpl}. 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 groupId the group ID 076 * @param start the lower bound of the range of shopping orders 077 * @param end the upper bound of the range of shopping orders (not inclusive) 078 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 079 * @return the ordered range of matching shopping orders 080 * @throws SystemException if a system exception occurred 081 */ 082 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId( 083 long groupId, 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 shopping order in the ordered set where groupId = ?. 089 * 090 * @param groupId the group ID 091 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 092 * @return the first matching shopping order 093 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 094 * @throws SystemException if a system exception occurred 095 */ 096 public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First( 097 long groupId, 098 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 099 throws com.liferay.portal.kernel.exception.SystemException, 100 com.liferay.portlet.shopping.NoSuchOrderException; 101 102 /** 103 * Returns the first shopping order in the ordered set where groupId = ?. 104 * 105 * @param groupId the group ID 106 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 107 * @return the first matching shopping order, or <code>null</code> if a matching shopping order could not be found 108 * @throws SystemException if a system exception occurred 109 */ 110 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByGroupId_First( 111 long groupId, 112 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 113 throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Returns the last shopping order in the ordered set where groupId = ?. 117 * 118 * @param groupId the group ID 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the last matching shopping order 121 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 122 * @throws SystemException if a system exception occurred 123 */ 124 public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last( 125 long groupId, 126 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 127 throws com.liferay.portal.kernel.exception.SystemException, 128 com.liferay.portlet.shopping.NoSuchOrderException; 129 130 /** 131 * Returns the last shopping order in the ordered set where groupId = ?. 132 * 133 * @param groupId the group ID 134 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 135 * @return the last matching shopping order, or <code>null</code> if a matching shopping order could not be found 136 * @throws SystemException if a system exception occurred 137 */ 138 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByGroupId_Last( 139 long groupId, 140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 141 throws com.liferay.portal.kernel.exception.SystemException; 142 143 /** 144 * Returns the shopping orders before and after the current shopping order in the ordered set where groupId = ?. 145 * 146 * @param orderId the primary key of the current shopping order 147 * @param groupId the group ID 148 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 149 * @return the previous, current, and next shopping order 150 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext( 154 long orderId, long groupId, 155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 156 throws com.liferay.portal.kernel.exception.SystemException, 157 com.liferay.portlet.shopping.NoSuchOrderException; 158 159 /** 160 * Returns all the shopping orders that the user has permission to view where groupId = ?. 161 * 162 * @param groupId the group ID 163 * @return the matching shopping orders that the user has permission to view 164 * @throws SystemException if a system exception occurred 165 */ 166 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId( 167 long groupId) 168 throws com.liferay.portal.kernel.exception.SystemException; 169 170 /** 171 * Returns a range of all the shopping orders that the user has permission to view where groupId = ?. 172 * 173 * <p> 174 * 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.shopping.model.impl.ShoppingOrderModelImpl}. 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. 175 * </p> 176 * 177 * @param groupId the group ID 178 * @param start the lower bound of the range of shopping orders 179 * @param end the upper bound of the range of shopping orders (not inclusive) 180 * @return the range of matching shopping orders that the user has permission to view 181 * @throws SystemException if a system exception occurred 182 */ 183 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId( 184 long groupId, int start, int end) 185 throws com.liferay.portal.kernel.exception.SystemException; 186 187 /** 188 * Returns an ordered range of all the shopping orders that the user has permissions to view where groupId = ?. 189 * 190 * <p> 191 * 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.shopping.model.impl.ShoppingOrderModelImpl}. 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. 192 * </p> 193 * 194 * @param groupId the group ID 195 * @param start the lower bound of the range of shopping orders 196 * @param end the upper bound of the range of shopping orders (not inclusive) 197 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 198 * @return the ordered range of matching shopping orders that the user has permission to view 199 * @throws SystemException if a system exception occurred 200 */ 201 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId( 202 long groupId, int start, int end, 203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 204 throws com.liferay.portal.kernel.exception.SystemException; 205 206 /** 207 * Returns the shopping orders before and after the current shopping order in the ordered set of shopping orders that the user has permission to view where groupId = ?. 208 * 209 * @param orderId the primary key of the current shopping order 210 * @param groupId the group ID 211 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 212 * @return the previous, current, and next shopping order 213 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 214 * @throws SystemException if a system exception occurred 215 */ 216 public com.liferay.portlet.shopping.model.ShoppingOrder[] filterFindByGroupId_PrevAndNext( 217 long orderId, long groupId, 218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 219 throws com.liferay.portal.kernel.exception.SystemException, 220 com.liferay.portlet.shopping.NoSuchOrderException; 221 222 /** 223 * Removes all the shopping orders where groupId = ? from the database. 224 * 225 * @param groupId the group ID 226 * @throws SystemException if a system exception occurred 227 */ 228 public void removeByGroupId(long groupId) 229 throws com.liferay.portal.kernel.exception.SystemException; 230 231 /** 232 * Returns the number of shopping orders where groupId = ?. 233 * 234 * @param groupId the group ID 235 * @return the number of matching shopping orders 236 * @throws SystemException if a system exception occurred 237 */ 238 public int countByGroupId(long groupId) 239 throws com.liferay.portal.kernel.exception.SystemException; 240 241 /** 242 * Returns the number of shopping orders that the user has permission to view where groupId = ?. 243 * 244 * @param groupId the group ID 245 * @return the number of matching shopping orders that the user has permission to view 246 * @throws SystemException if a system exception occurred 247 */ 248 public int filterCountByGroupId(long groupId) 249 throws com.liferay.portal.kernel.exception.SystemException; 250 251 /** 252 * Returns the shopping order where number = ? or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found. 253 * 254 * @param number the number 255 * @return the matching shopping order 256 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 257 * @throws SystemException if a system exception occurred 258 */ 259 public com.liferay.portlet.shopping.model.ShoppingOrder findByNumber( 260 java.lang.String number) 261 throws com.liferay.portal.kernel.exception.SystemException, 262 com.liferay.portlet.shopping.NoSuchOrderException; 263 264 /** 265 * Returns the shopping order where number = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 266 * 267 * @param number the number 268 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 269 * @throws SystemException if a system exception occurred 270 */ 271 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber( 272 java.lang.String number) 273 throws com.liferay.portal.kernel.exception.SystemException; 274 275 /** 276 * Returns the shopping order where number = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 277 * 278 * @param number the number 279 * @param retrieveFromCache whether to use the finder cache 280 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 281 * @throws SystemException if a system exception occurred 282 */ 283 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber( 284 java.lang.String number, boolean retrieveFromCache) 285 throws com.liferay.portal.kernel.exception.SystemException; 286 287 /** 288 * Removes the shopping order where number = ? from the database. 289 * 290 * @param number the number 291 * @return the shopping order that was removed 292 * @throws SystemException if a system exception occurred 293 */ 294 public com.liferay.portlet.shopping.model.ShoppingOrder removeByNumber( 295 java.lang.String number) 296 throws com.liferay.portal.kernel.exception.SystemException, 297 com.liferay.portlet.shopping.NoSuchOrderException; 298 299 /** 300 * Returns the number of shopping orders where number = ?. 301 * 302 * @param number the number 303 * @return the number of matching shopping orders 304 * @throws SystemException if a system exception occurred 305 */ 306 public int countByNumber(java.lang.String number) 307 throws com.liferay.portal.kernel.exception.SystemException; 308 309 /** 310 * Returns the shopping order where ppTxnId = ? or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found. 311 * 312 * @param ppTxnId the pp txn ID 313 * @return the matching shopping order 314 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 315 * @throws SystemException if a system exception occurred 316 */ 317 public com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId( 318 java.lang.String ppTxnId) 319 throws com.liferay.portal.kernel.exception.SystemException, 320 com.liferay.portlet.shopping.NoSuchOrderException; 321 322 /** 323 * Returns the shopping order where ppTxnId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 324 * 325 * @param ppTxnId the pp txn ID 326 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 327 * @throws SystemException if a system exception occurred 328 */ 329 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId( 330 java.lang.String ppTxnId) 331 throws com.liferay.portal.kernel.exception.SystemException; 332 333 /** 334 * Returns the shopping order where ppTxnId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 335 * 336 * @param ppTxnId the pp txn ID 337 * @param retrieveFromCache whether to use the finder cache 338 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 339 * @throws SystemException if a system exception occurred 340 */ 341 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId( 342 java.lang.String ppTxnId, boolean retrieveFromCache) 343 throws com.liferay.portal.kernel.exception.SystemException; 344 345 /** 346 * Removes the shopping order where ppTxnId = ? from the database. 347 * 348 * @param ppTxnId the pp txn ID 349 * @return the shopping order that was removed 350 * @throws SystemException if a system exception occurred 351 */ 352 public com.liferay.portlet.shopping.model.ShoppingOrder removeByPPTxnId( 353 java.lang.String ppTxnId) 354 throws com.liferay.portal.kernel.exception.SystemException, 355 com.liferay.portlet.shopping.NoSuchOrderException; 356 357 /** 358 * Returns the number of shopping orders where ppTxnId = ?. 359 * 360 * @param ppTxnId the pp txn ID 361 * @return the number of matching shopping orders 362 * @throws SystemException if a system exception occurred 363 */ 364 public int countByPPTxnId(java.lang.String ppTxnId) 365 throws com.liferay.portal.kernel.exception.SystemException; 366 367 /** 368 * Returns all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 369 * 370 * @param groupId the group ID 371 * @param userId the user ID 372 * @param ppPaymentStatus the pp payment status 373 * @return the matching shopping orders 374 * @throws SystemException if a system exception occurred 375 */ 376 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS( 377 long groupId, long userId, java.lang.String ppPaymentStatus) 378 throws com.liferay.portal.kernel.exception.SystemException; 379 380 /** 381 * Returns a range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 382 * 383 * <p> 384 * 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.shopping.model.impl.ShoppingOrderModelImpl}. 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. 385 * </p> 386 * 387 * @param groupId the group ID 388 * @param userId the user ID 389 * @param ppPaymentStatus the pp payment status 390 * @param start the lower bound of the range of shopping orders 391 * @param end the upper bound of the range of shopping orders (not inclusive) 392 * @return the range of matching shopping orders 393 * @throws SystemException if a system exception occurred 394 */ 395 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS( 396 long groupId, long userId, java.lang.String ppPaymentStatus, int start, 397 int end) throws com.liferay.portal.kernel.exception.SystemException; 398 399 /** 400 * Returns an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 401 * 402 * <p> 403 * 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.shopping.model.impl.ShoppingOrderModelImpl}. 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. 404 * </p> 405 * 406 * @param groupId the group ID 407 * @param userId the user ID 408 * @param ppPaymentStatus the pp payment status 409 * @param start the lower bound of the range of shopping orders 410 * @param end the upper bound of the range of shopping orders (not inclusive) 411 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 412 * @return the ordered range of matching shopping orders 413 * @throws SystemException if a system exception occurred 414 */ 415 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS( 416 long groupId, long userId, java.lang.String ppPaymentStatus, int start, 417 int end, 418 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 419 throws com.liferay.portal.kernel.exception.SystemException; 420 421 /** 422 * Returns the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 423 * 424 * @param groupId the group ID 425 * @param userId the user ID 426 * @param ppPaymentStatus the pp payment status 427 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 428 * @return the first matching shopping order 429 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 430 * @throws SystemException if a system exception occurred 431 */ 432 public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First( 433 long groupId, long userId, java.lang.String ppPaymentStatus, 434 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 435 throws com.liferay.portal.kernel.exception.SystemException, 436 com.liferay.portlet.shopping.NoSuchOrderException; 437 438 /** 439 * Returns the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 440 * 441 * @param groupId the group ID 442 * @param userId the user ID 443 * @param ppPaymentStatus the pp payment status 444 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 445 * @return the first matching shopping order, or <code>null</code> if a matching shopping order could not be found 446 * @throws SystemException if a system exception occurred 447 */ 448 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByG_U_PPPS_First( 449 long groupId, long userId, java.lang.String ppPaymentStatus, 450 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 451 throws com.liferay.portal.kernel.exception.SystemException; 452 453 /** 454 * Returns the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 455 * 456 * @param groupId the group ID 457 * @param userId the user ID 458 * @param ppPaymentStatus the pp payment status 459 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 460 * @return the last matching shopping order 461 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 462 * @throws SystemException if a system exception occurred 463 */ 464 public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last( 465 long groupId, long userId, java.lang.String ppPaymentStatus, 466 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 467 throws com.liferay.portal.kernel.exception.SystemException, 468 com.liferay.portlet.shopping.NoSuchOrderException; 469 470 /** 471 * Returns the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 472 * 473 * @param groupId the group ID 474 * @param userId the user ID 475 * @param ppPaymentStatus the pp payment status 476 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 477 * @return the last matching shopping order, or <code>null</code> if a matching shopping order could not be found 478 * @throws SystemException if a system exception occurred 479 */ 480 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByG_U_PPPS_Last( 481 long groupId, long userId, java.lang.String ppPaymentStatus, 482 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 483 throws com.liferay.portal.kernel.exception.SystemException; 484 485 /** 486 * Returns the shopping orders before and after the current shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 487 * 488 * @param orderId the primary key of the current shopping order 489 * @param groupId the group ID 490 * @param userId the user ID 491 * @param ppPaymentStatus the pp payment status 492 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 493 * @return the previous, current, and next shopping order 494 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 495 * @throws SystemException if a system exception occurred 496 */ 497 public com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext( 498 long orderId, long groupId, long userId, 499 java.lang.String ppPaymentStatus, 500 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 501 throws com.liferay.portal.kernel.exception.SystemException, 502 com.liferay.portlet.shopping.NoSuchOrderException; 503 504 /** 505 * Returns all the shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?. 506 * 507 * @param groupId the group ID 508 * @param userId the user ID 509 * @param ppPaymentStatus the pp payment status 510 * @return the matching shopping orders that the user has permission to view 511 * @throws SystemException if a system exception occurred 512 */ 513 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS( 514 long groupId, long userId, java.lang.String ppPaymentStatus) 515 throws com.liferay.portal.kernel.exception.SystemException; 516 517 /** 518 * Returns a range of all the shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?. 519 * 520 * <p> 521 * 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.shopping.model.impl.ShoppingOrderModelImpl}. 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. 522 * </p> 523 * 524 * @param groupId the group ID 525 * @param userId the user ID 526 * @param ppPaymentStatus the pp payment status 527 * @param start the lower bound of the range of shopping orders 528 * @param end the upper bound of the range of shopping orders (not inclusive) 529 * @return the range of matching shopping orders that the user has permission to view 530 * @throws SystemException if a system exception occurred 531 */ 532 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS( 533 long groupId, long userId, java.lang.String ppPaymentStatus, int start, 534 int end) throws com.liferay.portal.kernel.exception.SystemException; 535 536 /** 537 * Returns an ordered range of all the shopping orders that the user has permissions to view where groupId = ? and userId = ? and ppPaymentStatus = ?. 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.shopping.model.impl.ShoppingOrderModelImpl}. 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 userId the user ID 545 * @param ppPaymentStatus the pp payment status 546 * @param start the lower bound of the range of shopping orders 547 * @param end the upper bound of the range of shopping orders (not inclusive) 548 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 549 * @return the ordered range of matching shopping orders that the user has permission to view 550 * @throws SystemException if a system exception occurred 551 */ 552 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS( 553 long groupId, long userId, java.lang.String ppPaymentStatus, int start, 554 int end, 555 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 556 throws com.liferay.portal.kernel.exception.SystemException; 557 558 /** 559 * Returns the shopping orders before and after the current shopping order in the ordered set of shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?. 560 * 561 * @param orderId the primary key of the current shopping order 562 * @param groupId the group ID 563 * @param userId the user ID 564 * @param ppPaymentStatus the pp payment status 565 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 566 * @return the previous, current, and next shopping order 567 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 568 * @throws SystemException if a system exception occurred 569 */ 570 public com.liferay.portlet.shopping.model.ShoppingOrder[] filterFindByG_U_PPPS_PrevAndNext( 571 long orderId, long groupId, long userId, 572 java.lang.String ppPaymentStatus, 573 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 574 throws com.liferay.portal.kernel.exception.SystemException, 575 com.liferay.portlet.shopping.NoSuchOrderException; 576 577 /** 578 * Removes all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ? from the database. 579 * 580 * @param groupId the group ID 581 * @param userId the user ID 582 * @param ppPaymentStatus the pp payment status 583 * @throws SystemException if a system exception occurred 584 */ 585 public void removeByG_U_PPPS(long groupId, long userId, 586 java.lang.String ppPaymentStatus) 587 throws com.liferay.portal.kernel.exception.SystemException; 588 589 /** 590 * Returns the number of shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 591 * 592 * @param groupId the group ID 593 * @param userId the user ID 594 * @param ppPaymentStatus the pp payment status 595 * @return the number of matching shopping orders 596 * @throws SystemException if a system exception occurred 597 */ 598 public int countByG_U_PPPS(long groupId, long userId, 599 java.lang.String ppPaymentStatus) 600 throws com.liferay.portal.kernel.exception.SystemException; 601 602 /** 603 * Returns the number of shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?. 604 * 605 * @param groupId the group ID 606 * @param userId the user ID 607 * @param ppPaymentStatus the pp payment status 608 * @return the number of matching shopping orders that the user has permission to view 609 * @throws SystemException if a system exception occurred 610 */ 611 public int filterCountByG_U_PPPS(long groupId, long userId, 612 java.lang.String ppPaymentStatus) 613 throws com.liferay.portal.kernel.exception.SystemException; 614 615 /** 616 * Caches the shopping order in the entity cache if it is enabled. 617 * 618 * @param shoppingOrder the shopping order 619 */ 620 public void cacheResult( 621 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder); 622 623 /** 624 * Caches the shopping orders in the entity cache if it is enabled. 625 * 626 * @param shoppingOrders the shopping orders 627 */ 628 public void cacheResult( 629 java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> shoppingOrders); 630 631 /** 632 * Creates a new shopping order with the primary key. Does not add the shopping order to the database. 633 * 634 * @param orderId the primary key for the new shopping order 635 * @return the new shopping order 636 */ 637 public com.liferay.portlet.shopping.model.ShoppingOrder create(long orderId); 638 639 /** 640 * Removes the shopping order with the primary key from the database. Also notifies the appropriate model listeners. 641 * 642 * @param orderId the primary key of the shopping order 643 * @return the shopping order that was removed 644 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 645 * @throws SystemException if a system exception occurred 646 */ 647 public com.liferay.portlet.shopping.model.ShoppingOrder remove(long orderId) 648 throws com.liferay.portal.kernel.exception.SystemException, 649 com.liferay.portlet.shopping.NoSuchOrderException; 650 651 public com.liferay.portlet.shopping.model.ShoppingOrder updateImpl( 652 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder) 653 throws com.liferay.portal.kernel.exception.SystemException; 654 655 /** 656 * Returns the shopping order with the primary key or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found. 657 * 658 * @param orderId the primary key of the shopping order 659 * @return the shopping order 660 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 661 * @throws SystemException if a system exception occurred 662 */ 663 public com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey( 664 long orderId) 665 throws com.liferay.portal.kernel.exception.SystemException, 666 com.liferay.portlet.shopping.NoSuchOrderException; 667 668 /** 669 * Returns the shopping order with the primary key or returns <code>null</code> if it could not be found. 670 * 671 * @param orderId the primary key of the shopping order 672 * @return the shopping order, or <code>null</code> if a shopping order with the primary key could not be found 673 * @throws SystemException if a system exception occurred 674 */ 675 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey( 676 long orderId) 677 throws com.liferay.portal.kernel.exception.SystemException; 678 679 /** 680 * Returns all the shopping orders. 681 * 682 * @return the shopping orders 683 * @throws SystemException if a system exception occurred 684 */ 685 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll() 686 throws com.liferay.portal.kernel.exception.SystemException; 687 688 /** 689 * Returns a range of all the shopping orders. 690 * 691 * <p> 692 * 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.shopping.model.impl.ShoppingOrderModelImpl}. 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. 693 * </p> 694 * 695 * @param start the lower bound of the range of shopping orders 696 * @param end the upper bound of the range of shopping orders (not inclusive) 697 * @return the range of shopping orders 698 * @throws SystemException if a system exception occurred 699 */ 700 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll( 701 int start, int end) 702 throws com.liferay.portal.kernel.exception.SystemException; 703 704 /** 705 * Returns an ordered range of all the shopping orders. 706 * 707 * <p> 708 * 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.shopping.model.impl.ShoppingOrderModelImpl}. 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. 709 * </p> 710 * 711 * @param start the lower bound of the range of shopping orders 712 * @param end the upper bound of the range of shopping orders (not inclusive) 713 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 714 * @return the ordered range of shopping orders 715 * @throws SystemException if a system exception occurred 716 */ 717 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll( 718 int start, int end, 719 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 720 throws com.liferay.portal.kernel.exception.SystemException; 721 722 /** 723 * Removes all the shopping orders from the database. 724 * 725 * @throws SystemException if a system exception occurred 726 */ 727 public void removeAll() 728 throws com.liferay.portal.kernel.exception.SystemException; 729 730 /** 731 * Returns the number of shopping orders. 732 * 733 * @return the number of shopping orders 734 * @throws SystemException if a system exception occurred 735 */ 736 public int countAll() 737 throws com.liferay.portal.kernel.exception.SystemException; 738 }