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.ShoppingCart;
20
21
34 public interface ShoppingCartPersistence extends BasePersistence<ShoppingCart> {
35 public void cacheResult(
36 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart);
37
38 public void cacheResult(
39 java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> shoppingCarts);
40
41 public com.liferay.portlet.shopping.model.ShoppingCart create(long cartId);
42
43 public com.liferay.portlet.shopping.model.ShoppingCart remove(long cartId)
44 throws com.liferay.portal.kernel.exception.SystemException,
45 com.liferay.portlet.shopping.NoSuchCartException;
46
47 public com.liferay.portlet.shopping.model.ShoppingCart updateImpl(
48 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart,
49 boolean merge)
50 throws com.liferay.portal.kernel.exception.SystemException;
51
52 public com.liferay.portlet.shopping.model.ShoppingCart findByPrimaryKey(
53 long cartId)
54 throws com.liferay.portal.kernel.exception.SystemException,
55 com.liferay.portlet.shopping.NoSuchCartException;
56
57 public com.liferay.portlet.shopping.model.ShoppingCart fetchByPrimaryKey(
58 long cartId) throws com.liferay.portal.kernel.exception.SystemException;
59
60 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByGroupId(
61 long groupId)
62 throws com.liferay.portal.kernel.exception.SystemException;
63
64 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByGroupId(
65 long groupId, int start, int end)
66 throws com.liferay.portal.kernel.exception.SystemException;
67
68 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByGroupId(
69 long groupId, int start, int end,
70 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
71 throws com.liferay.portal.kernel.exception.SystemException;
72
73 public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_First(
74 long groupId,
75 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76 throws com.liferay.portal.kernel.exception.SystemException,
77 com.liferay.portlet.shopping.NoSuchCartException;
78
79 public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_Last(
80 long groupId,
81 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82 throws com.liferay.portal.kernel.exception.SystemException,
83 com.liferay.portlet.shopping.NoSuchCartException;
84
85 public com.liferay.portlet.shopping.model.ShoppingCart[] findByGroupId_PrevAndNext(
86 long cartId, long groupId,
87 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
88 throws com.liferay.portal.kernel.exception.SystemException,
89 com.liferay.portlet.shopping.NoSuchCartException;
90
91 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
92 long userId) throws com.liferay.portal.kernel.exception.SystemException;
93
94 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
95 long userId, int start, int end)
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
99 long userId, int start, int end,
100 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_First(
104 long userId,
105 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
106 throws com.liferay.portal.kernel.exception.SystemException,
107 com.liferay.portlet.shopping.NoSuchCartException;
108
109 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_Last(
110 long userId,
111 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
112 throws com.liferay.portal.kernel.exception.SystemException,
113 com.liferay.portlet.shopping.NoSuchCartException;
114
115 public com.liferay.portlet.shopping.model.ShoppingCart[] findByUserId_PrevAndNext(
116 long cartId, long userId,
117 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
118 throws com.liferay.portal.kernel.exception.SystemException,
119 com.liferay.portlet.shopping.NoSuchCartException;
120
121 public com.liferay.portlet.shopping.model.ShoppingCart findByG_U(
122 long groupId, long userId)
123 throws com.liferay.portal.kernel.exception.SystemException,
124 com.liferay.portlet.shopping.NoSuchCartException;
125
126 public com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U(
127 long groupId, long userId)
128 throws com.liferay.portal.kernel.exception.SystemException;
129
130 public com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U(
131 long groupId, long userId, boolean retrieveFromCache)
132 throws com.liferay.portal.kernel.exception.SystemException;
133
134 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll()
135 throws com.liferay.portal.kernel.exception.SystemException;
136
137 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll(
138 int start, int end)
139 throws com.liferay.portal.kernel.exception.SystemException;
140
141 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll(
142 int start, int end,
143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146 public void removeByGroupId(long groupId)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149 public void removeByUserId(long userId)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152 public void removeByG_U(long groupId, long userId)
153 throws com.liferay.portal.kernel.exception.SystemException,
154 com.liferay.portlet.shopping.NoSuchCartException;
155
156 public void removeAll()
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 public int countByGroupId(long groupId)
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162 public int countByUserId(long userId)
163 throws com.liferay.portal.kernel.exception.SystemException;
164
165 public int countByG_U(long groupId, long userId)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 public int countAll()
169 throws com.liferay.portal.kernel.exception.SystemException;
170 }