1
14
15 package com.liferay.portlet.shopping.service.persistence;
16
17 import com.liferay.portal.service.persistence.BasePersistence;
18
19 import com.liferay.portlet.shopping.model.ShoppingCoupon;
20
21
34 public interface ShoppingCouponPersistence extends BasePersistence<ShoppingCoupon> {
35 public void cacheResult(
36 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon);
37
38 public void cacheResult(
39 java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> shoppingCoupons);
40
41 public com.liferay.portlet.shopping.model.ShoppingCoupon create(
42 long couponId);
43
44 public com.liferay.portlet.shopping.model.ShoppingCoupon remove(
45 long couponId)
46 throws com.liferay.portal.kernel.exception.SystemException,
47 com.liferay.portlet.shopping.NoSuchCouponException;
48
49 public com.liferay.portlet.shopping.model.ShoppingCoupon updateImpl(
50 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
51 boolean merge)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.shopping.model.ShoppingCoupon findByPrimaryKey(
55 long couponId)
56 throws com.liferay.portal.kernel.exception.SystemException,
57 com.liferay.portlet.shopping.NoSuchCouponException;
58
59 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByPrimaryKey(
60 long couponId)
61 throws com.liferay.portal.kernel.exception.SystemException;
62
63 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
64 long groupId)
65 throws com.liferay.portal.kernel.exception.SystemException;
66
67 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
68 long groupId, int start, int end)
69 throws com.liferay.portal.kernel.exception.SystemException;
70
71 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
72 long groupId, int start, int end,
73 com.liferay.portal.kernel.util.OrderByComparator obc)
74 throws com.liferay.portal.kernel.exception.SystemException;
75
76 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_First(
77 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
78 throws com.liferay.portal.kernel.exception.SystemException,
79 com.liferay.portlet.shopping.NoSuchCouponException;
80
81 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_Last(
82 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
83 throws com.liferay.portal.kernel.exception.SystemException,
84 com.liferay.portlet.shopping.NoSuchCouponException;
85
86 public com.liferay.portlet.shopping.model.ShoppingCoupon[] findByGroupId_PrevAndNext(
87 long couponId, long groupId,
88 com.liferay.portal.kernel.util.OrderByComparator obc)
89 throws com.liferay.portal.kernel.exception.SystemException,
90 com.liferay.portlet.shopping.NoSuchCouponException;
91
92 public com.liferay.portlet.shopping.model.ShoppingCoupon findByCode(
93 java.lang.String code)
94 throws com.liferay.portal.kernel.exception.SystemException,
95 com.liferay.portlet.shopping.NoSuchCouponException;
96
97 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
98 java.lang.String code)
99 throws com.liferay.portal.kernel.exception.SystemException;
100
101 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
102 java.lang.String code, boolean retrieveFromCache)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll()
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
109 int start, int end)
110 throws com.liferay.portal.kernel.exception.SystemException;
111
112 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
113 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
114 throws com.liferay.portal.kernel.exception.SystemException;
115
116 public void removeByGroupId(long groupId)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 public void removeByCode(java.lang.String code)
120 throws com.liferay.portal.kernel.exception.SystemException,
121 com.liferay.portlet.shopping.NoSuchCouponException;
122
123 public void removeAll()
124 throws com.liferay.portal.kernel.exception.SystemException;
125
126 public int countByGroupId(long groupId)
127 throws com.liferay.portal.kernel.exception.SystemException;
128
129 public int countByCode(java.lang.String code)
130 throws com.liferay.portal.kernel.exception.SystemException;
131
132 public int countAll()
133 throws com.liferay.portal.kernel.exception.SystemException;
134 }