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 obc)
76 throws com.liferay.portal.SystemException;
77
78 public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_First(
79 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portlet.shopping.NoSuchCartException;
82
83 public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_Last(
84 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
85 throws com.liferay.portal.SystemException,
86 com.liferay.portlet.shopping.NoSuchCartException;
87
88 public com.liferay.portlet.shopping.model.ShoppingCart[] findByGroupId_PrevAndNext(
89 long cartId, long groupId,
90 com.liferay.portal.kernel.util.OrderByComparator obc)
91 throws com.liferay.portal.SystemException,
92 com.liferay.portlet.shopping.NoSuchCartException;
93
94 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
95 long userId) throws com.liferay.portal.SystemException;
96
97 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
98 long userId, int start, int end)
99 throws com.liferay.portal.SystemException;
100
101 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
102 long userId, int start, int end,
103 com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_First(
107 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
108 throws com.liferay.portal.SystemException,
109 com.liferay.portlet.shopping.NoSuchCartException;
110
111 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_Last(
112 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portlet.shopping.NoSuchCartException;
115
116 public com.liferay.portlet.shopping.model.ShoppingCart[] findByUserId_PrevAndNext(
117 long cartId, long userId,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException,
120 com.liferay.portlet.shopping.NoSuchCartException;
121
122 public com.liferay.portlet.shopping.model.ShoppingCart findByG_U(
123 long groupId, long userId)
124 throws com.liferay.portal.SystemException,
125 com.liferay.portlet.shopping.NoSuchCartException;
126
127 public com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U(
128 long groupId, long userId) throws com.liferay.portal.SystemException;
129
130 public com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U(
131 long groupId, long userId, boolean retrieveFromCache)
132 throws com.liferay.portal.SystemException;
133
134 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll()
135 throws com.liferay.portal.SystemException;
136
137 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll(
138 int start, int end) throws com.liferay.portal.SystemException;
139
140 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll(
141 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.SystemException;
143
144 public void removeByGroupId(long groupId)
145 throws com.liferay.portal.SystemException;
146
147 public void removeByUserId(long userId)
148 throws com.liferay.portal.SystemException;
149
150 public void removeByG_U(long groupId, long userId)
151 throws com.liferay.portal.SystemException,
152 com.liferay.portlet.shopping.NoSuchCartException;
153
154 public void removeAll() throws com.liferay.portal.SystemException;
155
156 public int countByGroupId(long groupId)
157 throws com.liferay.portal.SystemException;
158
159 public int countByUserId(long userId)
160 throws com.liferay.portal.SystemException;
161
162 public int countByG_U(long groupId, long userId)
163 throws com.liferay.portal.SystemException;
164
165 public int countAll() throws com.liferay.portal.SystemException;
166 }