1
19
20 package com.liferay.portlet.shopping.service.persistence;
21
22 import com.liferay.portal.service.persistence.BasePersistence;
23
24
30 public interface ShoppingCouponPersistence extends BasePersistence {
31 public void cacheResult(
32 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon);
33
34 public void cacheResult(
35 java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> shoppingCoupons);
36
37 public void clearCache();
38
39 public com.liferay.portlet.shopping.model.ShoppingCoupon create(
40 long couponId);
41
42 public com.liferay.portlet.shopping.model.ShoppingCoupon remove(
43 long couponId)
44 throws com.liferay.portal.SystemException,
45 com.liferay.portlet.shopping.NoSuchCouponException;
46
47 public com.liferay.portlet.shopping.model.ShoppingCoupon remove(
48 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
49 throws com.liferay.portal.SystemException;
50
51
54 public com.liferay.portlet.shopping.model.ShoppingCoupon update(
55 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
56 throws com.liferay.portal.SystemException;
57
58
71 public com.liferay.portlet.shopping.model.ShoppingCoupon update(
72 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 public com.liferay.portlet.shopping.model.ShoppingCoupon updateImpl(
76 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
77 boolean merge) throws com.liferay.portal.SystemException;
78
79 public com.liferay.portlet.shopping.model.ShoppingCoupon findByPrimaryKey(
80 long couponId)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portlet.shopping.NoSuchCouponException;
83
84 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByPrimaryKey(
85 long couponId) throws com.liferay.portal.SystemException;
86
87 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
88 long groupId) throws com.liferay.portal.SystemException;
89
90 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
91 long groupId, int start, int end)
92 throws com.liferay.portal.SystemException;
93
94 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
95 long groupId, int start, int end,
96 com.liferay.portal.kernel.util.OrderByComparator obc)
97 throws com.liferay.portal.SystemException;
98
99 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_First(
100 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException,
102 com.liferay.portlet.shopping.NoSuchCouponException;
103
104 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_Last(
105 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.SystemException,
107 com.liferay.portlet.shopping.NoSuchCouponException;
108
109 public com.liferay.portlet.shopping.model.ShoppingCoupon[] findByGroupId_PrevAndNext(
110 long couponId, long groupId,
111 com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.SystemException,
113 com.liferay.portlet.shopping.NoSuchCouponException;
114
115 public com.liferay.portlet.shopping.model.ShoppingCoupon findByCode(
116 java.lang.String code)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.shopping.NoSuchCouponException;
119
120 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
121 java.lang.String code) throws com.liferay.portal.SystemException;
122
123 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
124 java.lang.String code, boolean retrieveFromCache)
125 throws com.liferay.portal.SystemException;
126
127 public java.util.List<Object> findWithDynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
129 throws com.liferay.portal.SystemException;
130
131 public java.util.List<Object> findWithDynamicQuery(
132 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133 int end) throws com.liferay.portal.SystemException;
134
135 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll()
136 throws com.liferay.portal.SystemException;
137
138 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
139 int start, int end) throws com.liferay.portal.SystemException;
140
141 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
142 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
143 throws com.liferay.portal.SystemException;
144
145 public void removeByGroupId(long groupId)
146 throws com.liferay.portal.SystemException;
147
148 public void removeByCode(java.lang.String code)
149 throws com.liferay.portal.SystemException,
150 com.liferay.portlet.shopping.NoSuchCouponException;
151
152 public void removeAll() throws com.liferay.portal.SystemException;
153
154 public int countByGroupId(long groupId)
155 throws com.liferay.portal.SystemException;
156
157 public int countByCode(java.lang.String code)
158 throws com.liferay.portal.SystemException;
159
160 public int countAll() throws com.liferay.portal.SystemException;
161 }