1
22
23 package com.liferay.portlet.shopping.service.persistence;
24
25 import com.liferay.portal.service.persistence.BasePersistence;
26
27 import com.liferay.portlet.shopping.model.ShoppingCoupon;
28
29
42 public interface ShoppingCouponPersistence extends BasePersistence<ShoppingCoupon> {
43 public void cacheResult(
44 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon);
45
46 public void cacheResult(
47 java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> shoppingCoupons);
48
49 public com.liferay.portlet.shopping.model.ShoppingCoupon create(
50 long couponId);
51
52 public com.liferay.portlet.shopping.model.ShoppingCoupon remove(
53 long couponId)
54 throws com.liferay.portal.SystemException,
55 com.liferay.portlet.shopping.NoSuchCouponException;
56
57
60 public com.liferay.portlet.shopping.model.ShoppingCoupon update(
61 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
62 throws com.liferay.portal.SystemException;
63
64 public com.liferay.portlet.shopping.model.ShoppingCoupon updateImpl(
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 findByPrimaryKey(
69 long couponId)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portlet.shopping.NoSuchCouponException;
72
73 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByPrimaryKey(
74 long couponId) throws com.liferay.portal.SystemException;
75
76 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
77 long groupId) throws com.liferay.portal.SystemException;
78
79 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
80 long groupId, int start, int end)
81 throws com.liferay.portal.SystemException;
82
83 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
84 long groupId, int start, int end,
85 com.liferay.portal.kernel.util.OrderByComparator obc)
86 throws com.liferay.portal.SystemException;
87
88 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_First(
89 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
90 throws com.liferay.portal.SystemException,
91 com.liferay.portlet.shopping.NoSuchCouponException;
92
93 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_Last(
94 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portlet.shopping.NoSuchCouponException;
97
98 public com.liferay.portlet.shopping.model.ShoppingCoupon[] findByGroupId_PrevAndNext(
99 long couponId, long groupId,
100 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 findByCode(
105 java.lang.String code)
106 throws com.liferay.portal.SystemException,
107 com.liferay.portlet.shopping.NoSuchCouponException;
108
109 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
110 java.lang.String code) throws com.liferay.portal.SystemException;
111
112 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
113 java.lang.String code, boolean retrieveFromCache)
114 throws com.liferay.portal.SystemException;
115
116 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll()
117 throws com.liferay.portal.SystemException;
118
119 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
120 int start, int end) throws com.liferay.portal.SystemException;
121
122 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
123 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
124 throws com.liferay.portal.SystemException;
125
126 public void removeByGroupId(long groupId)
127 throws com.liferay.portal.SystemException;
128
129 public void removeByCode(java.lang.String code)
130 throws com.liferay.portal.SystemException,
131 com.liferay.portlet.shopping.NoSuchCouponException;
132
133 public void removeAll() throws com.liferay.portal.SystemException;
134
135 public int countByGroupId(long groupId)
136 throws com.liferay.portal.SystemException;
137
138 public int countByCode(java.lang.String code)
139 throws com.liferay.portal.SystemException;
140
141 public int countAll() throws com.liferay.portal.SystemException;
142 }