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