1
22
23 package com.liferay.portlet.shopping.service.persistence;
24
25
31 public interface ShoppingCouponPersistence {
32 public com.liferay.portlet.shopping.model.ShoppingCoupon create(
33 long couponId);
34
35 public com.liferay.portlet.shopping.model.ShoppingCoupon remove(
36 long couponId)
37 throws com.liferay.portal.SystemException,
38 com.liferay.portlet.shopping.NoSuchCouponException;
39
40 public com.liferay.portlet.shopping.model.ShoppingCoupon remove(
41 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
42 throws com.liferay.portal.SystemException;
43
44
47 public com.liferay.portlet.shopping.model.ShoppingCoupon update(
48 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
49 throws com.liferay.portal.SystemException;
50
51
64 public com.liferay.portlet.shopping.model.ShoppingCoupon update(
65 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
66 boolean merge) throws com.liferay.portal.SystemException;
67
68 public com.liferay.portlet.shopping.model.ShoppingCoupon updateImpl(
69 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
70 boolean merge) throws com.liferay.portal.SystemException;
71
72 public com.liferay.portlet.shopping.model.ShoppingCoupon findByPrimaryKey(
73 long couponId)
74 throws com.liferay.portal.SystemException,
75 com.liferay.portlet.shopping.NoSuchCouponException;
76
77 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByPrimaryKey(
78 long couponId) throws com.liferay.portal.SystemException;
79
80 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
81 long groupId) throws com.liferay.portal.SystemException;
82
83 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
84 long groupId, int begin, int end)
85 throws com.liferay.portal.SystemException;
86
87 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
88 long groupId, int begin, int end,
89 com.liferay.portal.kernel.util.OrderByComparator obc)
90 throws com.liferay.portal.SystemException;
91
92 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_First(
93 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
94 throws com.liferay.portal.SystemException,
95 com.liferay.portlet.shopping.NoSuchCouponException;
96
97 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_Last(
98 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException,
100 com.liferay.portlet.shopping.NoSuchCouponException;
101
102 public com.liferay.portlet.shopping.model.ShoppingCoupon[] findByGroupId_PrevAndNext(
103 long couponId, long groupId,
104 com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.SystemException,
106 com.liferay.portlet.shopping.NoSuchCouponException;
107
108 public com.liferay.portlet.shopping.model.ShoppingCoupon findByCode(
109 java.lang.String code)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.shopping.NoSuchCouponException;
112
113 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
114 java.lang.String code) throws com.liferay.portal.SystemException;
115
116 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findWithDynamicQuery(
117 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
118 throws com.liferay.portal.SystemException;
119
120 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findWithDynamicQuery(
121 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
122 int begin, int end) throws com.liferay.portal.SystemException;
123
124 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll()
125 throws com.liferay.portal.SystemException;
126
127 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
128 int begin, int end) throws com.liferay.portal.SystemException;
129
130 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
131 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws com.liferay.portal.SystemException;
133
134 public void removeByGroupId(long groupId)
135 throws com.liferay.portal.SystemException;
136
137 public void removeByCode(java.lang.String code)
138 throws com.liferay.portal.SystemException,
139 com.liferay.portlet.shopping.NoSuchCouponException;
140
141 public void removeAll() throws com.liferay.portal.SystemException;
142
143 public int countByGroupId(long groupId)
144 throws com.liferay.portal.SystemException;
145
146 public int countByCode(java.lang.String code)
147 throws com.liferay.portal.SystemException;
148
149 public int countAll() throws com.liferay.portal.SystemException;
150 }