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