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 orderByComparator)
74 throws com.liferay.portal.kernel.exception.SystemException;
75
76 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_First(
77 long groupId,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.kernel.exception.SystemException,
80 com.liferay.portlet.shopping.NoSuchCouponException;
81
82 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_Last(
83 long groupId,
84 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
85 throws com.liferay.portal.kernel.exception.SystemException,
86 com.liferay.portlet.shopping.NoSuchCouponException;
87
88 public com.liferay.portlet.shopping.model.ShoppingCoupon[] findByGroupId_PrevAndNext(
89 long couponId, long groupId,
90 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
91 throws com.liferay.portal.kernel.exception.SystemException,
92 com.liferay.portlet.shopping.NoSuchCouponException;
93
94 public com.liferay.portlet.shopping.model.ShoppingCoupon findByCode(
95 java.lang.String code)
96 throws com.liferay.portal.kernel.exception.SystemException,
97 com.liferay.portlet.shopping.NoSuchCouponException;
98
99 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
100 java.lang.String code)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
104 java.lang.String code, boolean retrieveFromCache)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll()
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
111 int start, int end)
112 throws com.liferay.portal.kernel.exception.SystemException;
113
114 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
115 int start, int end,
116 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 public void removeByGroupId(long groupId)
120 throws com.liferay.portal.kernel.exception.SystemException;
121
122 public void removeByCode(java.lang.String code)
123 throws com.liferay.portal.kernel.exception.SystemException,
124 com.liferay.portlet.shopping.NoSuchCouponException;
125
126 public void removeAll()
127 throws com.liferay.portal.kernel.exception.SystemException;
128
129 public int countByGroupId(long groupId)
130 throws com.liferay.portal.kernel.exception.SystemException;
131
132 public int countByCode(java.lang.String code)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135 public int countAll()
136 throws com.liferay.portal.kernel.exception.SystemException;
137 }