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.SystemException,
47 com.liferay.portlet.shopping.NoSuchCouponException;
48
49
52 public com.liferay.portlet.shopping.model.ShoppingCoupon update(
53 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
54 throws com.liferay.portal.SystemException;
55
56 public com.liferay.portlet.shopping.model.ShoppingCoupon updateImpl(
57 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
58 boolean merge) throws com.liferay.portal.SystemException;
59
60 public com.liferay.portlet.shopping.model.ShoppingCoupon findByPrimaryKey(
61 long couponId)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portlet.shopping.NoSuchCouponException;
64
65 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByPrimaryKey(
66 long couponId) throws com.liferay.portal.SystemException;
67
68 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
69 long groupId) throws com.liferay.portal.SystemException;
70
71 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
72 long groupId, int start, int end)
73 throws com.liferay.portal.SystemException;
74
75 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
76 long groupId, int start, int end,
77 com.liferay.portal.kernel.util.OrderByComparator obc)
78 throws com.liferay.portal.SystemException;
79
80 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_First(
81 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
82 throws com.liferay.portal.SystemException,
83 com.liferay.portlet.shopping.NoSuchCouponException;
84
85 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_Last(
86 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
87 throws com.liferay.portal.SystemException,
88 com.liferay.portlet.shopping.NoSuchCouponException;
89
90 public com.liferay.portlet.shopping.model.ShoppingCoupon[] findByGroupId_PrevAndNext(
91 long couponId, long groupId,
92 com.liferay.portal.kernel.util.OrderByComparator obc)
93 throws com.liferay.portal.SystemException,
94 com.liferay.portlet.shopping.NoSuchCouponException;
95
96 public com.liferay.portlet.shopping.model.ShoppingCoupon findByCode(
97 java.lang.String code)
98 throws com.liferay.portal.SystemException,
99 com.liferay.portlet.shopping.NoSuchCouponException;
100
101 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
102 java.lang.String code) throws com.liferay.portal.SystemException;
103
104 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
105 java.lang.String code, boolean retrieveFromCache)
106 throws com.liferay.portal.SystemException;
107
108 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll()
109 throws com.liferay.portal.SystemException;
110
111 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
112 int start, int end) throws com.liferay.portal.SystemException;
113
114 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
115 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.SystemException;
117
118 public void removeByGroupId(long groupId)
119 throws com.liferay.portal.SystemException;
120
121 public void removeByCode(java.lang.String code)
122 throws com.liferay.portal.SystemException,
123 com.liferay.portlet.shopping.NoSuchCouponException;
124
125 public void removeAll() throws com.liferay.portal.SystemException;
126
127 public int countByGroupId(long groupId)
128 throws com.liferay.portal.SystemException;
129
130 public int countByCode(java.lang.String code)
131 throws com.liferay.portal.SystemException;
132
133 public int countAll() throws com.liferay.portal.SystemException;
134 }