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